Using Python to send a DNS update packet

Kirk Strauser kirk at strauser.com
Sat Dec 27 00:40:06 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 2003-12-24T18:29:03Z, "Matt Whiteley" <matt at cynetix.co.uk> writes:

> Hello all,
>
> I want to use Python to send a request to a Microsft DNS server to tell it
> to update an A record. Ideally, this would be a secure update but primarily,
> an unsecure one would do. Are there any python modules that will let me do
> it or is there some code knocking around I could use ?
>
> Thanks
> Matt
>
>

The NSUpdate class from my Newtrino project at:

    http://subwiki.honeypot.net/cgi-bin/view/Freebsd/NewTrino

uses the Unix `nsupdate' command to send TSIG-authenticated update messages
to a BIND 9 DNS.  It may or may not work with an MS DNS - I haven't tested
it in that configuration - but it should be easy enough to adapt it to do
so.
- -- 
Kirk Strauser
The Strauser Group
Open. Solutions. Simple.
http://www.strausergroup.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/7RpS5sRg+Y0CpvERAsl/AJ4tk5uAQCXesYFWIjke/EB+rVhUuwCfShfC
5rtqJbqOKR5XfY0KfhXO9fk=
=/+K8
-----END PGP SIGNATURE-----




More information about the Python-list mailing list