Net::DNS::Resolver::Recurse - Perform recursive dns lookups
use Net::DNS::Resolver::Recurse; my $res = Net::DNS::Resolver::Recurse->new;
This module is a super class of Net::DNS::Resolver. So the methods for Net::DNS::Resolver still work for this module as well. There are just a couple methods added:
Initialize the hint servers. Recursive queries need a starting name server to work off of. This method takes a list of IP addresses to use as the starting servers. These name servers should be authoritative for the root (.) zone.
$res->hints( @ips );
If no hints are passed, the default nameserver is asked for the hints. Normally these IPs can be obtained from the following location:
ftp://ftp.internic.net/domain/named.root
This method is much like the normal query() method except it disables the recurse flag in the packet and explicitly performs the recursion.
$packet = $res->query_dorecursion( "www.netscape.com.", "A");
Rob Brown, bbb@cpan.org
Net::DNS::Resolver,
Copyright (c) 2002, Rob Brown. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: Recurse.pm,v 1.3 2003/05/22 06:19:49 ctriv Exp $
To install Net::DNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS
CPAN shell
perl -MCPAN -e shell install Net::DNS
For more information on module installation, please visit the detailed CPAN module installation guide.