def use_tsig(self, keyring, keyname=None,
                 algorithm=dns.tsig.default_algorithm):
        self.keyring = keyring
        if keyname is None:
            self.keyname = self.keyring.keys()[0]
        else:
            self.keyname = keyname
        self.keyalgorithm = algorithm
Add a TSIG signature to the query.
dataset/ETHPy150Open catap/namebench/nb_third_party/dns/resolver.py/Resolver.use_tsig