Installing and testing the Net::DNS Perl package on a Debian setup

All you need to do is to issue the following command:
apt-get install libnet-dns-perl

To test whether it works or not, try one of the demo scripts that come with libnet-dns-perl. In Debian they reside in the following location: /usr/share/doc/libnet-dns-perl/examples/demo/*