Using Python to send a DNS update packet

M

Matt Whiteley

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
 
S

Sean 'Shaleh' Perry

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

twisted is a project to give easy networking support to python. Should get
you up and running pretty quickly.
 
K

Kirk Strauser

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

Matt Whiteley said:
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-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top