[Pdns-dev] Read rr from dns packet

Stefan Schmidt zaphodb--pdns-dev at zaphods.net
Tue Feb 10 11:08:21 CET 2009

On Tue, Feb 10, 2009 at 10:37:13AM +0100, Alexander Gropp wrote:
> does anybody know how I can read the resource records (I need the
> records from the authority section) from  a  dns packet?

Well i'd say you choose a dns library of your choice and code away.
Popular examples for those are:
perl net-dns - http://www.net-dns.org/
python dnspython - http://www.dnspython.org/
python twisted names - http://twistedmatrix.com/trac/wiki/TwistedNames

I'll attach a dnspython script of mine that is totally unfinished but 
does at least access the authority section returned by a query.
Zorg : Honor's killed millions of people. Hasn't saved a single one. 
- The fifth Element
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkdns.py
Type: text/x-python
Size: 2822 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20090210/d90b784f/checkdns.py

More information about the Pdns-dev mailing list