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({
    'ddns-key.' : "kzz766iy/JXF/rUkFuFSKQ=="
})

update = dns.update.Update('test.mydomaintest.net.', keyring = keyring)
update.replace('host4', 300, 'A', sys.argv[1])

response = dns.query.tcp(update,'10.10.0.1')
---------------------------
executed as: add_dnsrecord.py 10.30.0.4

-- 
update to python-dnspython needed for code bug fix
https://bugs.launchpad.net/bugs/660749
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to