Since I've never committed a package request for Ubuntu before, I'm not sure exactly what you folks require. To provide a test case for this, one would need a BIND server running and configured to accept DDNS updates for a particular zone with TSIG keys for authentication.
The test I did was running my python script against the Ubuntu-provided python-dnspython package and the compiled-from-git-checkout that contains the above code fix from the module author. With the former package my script showed the above traceback. With the compiled-from-git package, it worked as expected.
Since I've never committed a package request for Ubuntu before, I'm not sure exactly what you folks require. To provide a test case for this, one would need a BIND server running and configured to accept DDNS updates for a particular zone with TSIG keys for authentication.
The test I did was running my python script against the Ubuntu-provided python-dnspython package and the compiled- from-git- checkout that contains the above code fix from the module author. With the former package my script showed the above traceback. With the compiled-from-git package, it worked as expected.
The script I used on both tests was:
add_dnsrecord.py: ------- ------- ------- ------
-------
#!/usr/bin/env python
import dns.query
import dns.tsigkeyring
import dns.update
import sys
keyring = dns.tsigkeyring .from_text( { JXF/rUkFuFSKQ= ="
'ddns-key.' : "kzz766iy/
})
update = dns.update. Update( 'test.mydomaint est.net. ', keyring = keyring) replace( 'host4' , 300, 'A', sys.argv[1])
update.
response = dns.query. tcp(update, '10.10. 0.1') ------- ------- ------
-------
executed as: add_dnsrecord.py 10.30.0.4