On 24 Feb 2010, at 15:06, Jon Brisbin wrote:
>
> keyring = dns.tsigkeyring.from_text({
> "cloud-ns": "eX97eFoppBqH8kAGP0pNbw=="
> })
so far, so good...
> ...
> upd = dns.update.Update(dns_name, keyring=keyring)
> upd.add(dns_name, 1, "A", ipaddr)
> resp = dns.query.tcp(upd, "172.23.0.11")
> print resp
NOTAUTH means the server is not authoritative for the zone. (I don't think
it's a TSIG problem since a TSIG-related NOTAUTH should have raised an
exception.)
This actually makes sense, since you're using the name (dns_name) of the data
you want to update, rather than the name of the zone when creating the update
object.
By contrast, here's a snippet from dnspython's example/ddns.py:
#
# Replace "example." with your domain, and "host" with your hostname.
#
update = dns.update.Update('example.', keyring=keyring)
update.replace('host', 300, 'A', sys.argv[1])
So, change dns_name to zone_name (whatever it is :)) when calling
dns.update.Update()
/Bob
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users