Net::DNS and Net::DNS::SEC

What is Net::DNS

Net::DNS is a DNS resolver implemented in Perl. It allows the programmer to perform nearly any type of DNS query from a Perl script. For details and examples, please read the Net::DNS manual pages. To read about the latest features, see the Changes file. To find out about known bugs and to see what's planned for future versions, see the TODO file. To discuss and share experiences with other users of Net::DNS, subscribe to the mailing-list.

Net::DNS does not depend on any C libraries. However, if possible Net::DNS tries to link to the libresolv library. This provides a notable speed increase.

The author invites feedback on Net::DNS. If there's something you'd like to have added, please let me know. If you find a bug, please follow the instructions below.

The current release version of Net::DNS is: 1.11

New releases and developments are announced on the "Blog" (which is syndicated through an RSS feed).


In case you would like to add DNSSEC support to Net::DNS please check out Net::DNS::SEC, an add-on to this package, available thought CPAN

Net::DNS::SEC is tightly integrated with Net::DNS but distributed separately because its dependency on libraries that may not port to all platforms.

The current release version of Net::DNS::SEC is: 1.03.

New releases and developments are announced on the same "Blog" as Net::DNS.


If you have a bug report, drop it by CPAN's RT installation. Your problem will be assigned a ticketnumber and can be tracked.

Here's a direct link to the Net::DNS bug reporting form.

If you find a bug, please report it to the author along with the following information:

  • version of Perl (output of 'perl -V' is best)
  • version of Net::DNS
  • operating system type and version
  • version of nameserver (if known)
  • exact text of error message or description of problem
  • the shortest possible program that exhibits the problem
  • the specific queries you're making, if the data is available to Internet nameservers

If I don't have access to a system similar to yours, I may ask you to insert some debugging lines and report back on the results. The more help and information you can provide, the better.


Several operating systems provide a Net::DNS package. An incomplete list of those packages is available.

Rob Brown was nice enough to make some RPMs of Net::DNS.