Mar-26-2017, 07:49 PM
http://www.dnspython.org/examples.html Wrote:import dns.query import dns.tsigkeyring import dns.update import sys keyring = dns.tsigkeyring.from_text({ 'host-example.' : 'XXXXXXXXXXXXXXXXXXXXXX==' }) update = dns.update.Update('dyn.test.example', keyring=keyring) update.replace('host', 300, 'a', sys.argv[1]) response = dns.query.tcp(update, '10.0.0.1')
Why is your key ring's value "keyname", instead of "host-example." like in the example? I'm not sure what the lib is supposed to do, so I don't know if those values are valid or not...