[Pdns-dev] Read rr from dns packet

bert hubert bert.hubert at netherlabs.nl
Tue Feb 10 11:59:28 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?

If you want to use C++, you could look into the PowerDNS sources and see how
the program 'sdig.cc' does it. It is not that hard, if a bit weird.

There are other libraries available as well, though, but nothing as general
as what is in PowerDNS.

Good luck!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-dev mailing list