2009/10/20 rocku <rock...@gmail.com>:
> So my question is - how to query a specific nameserver about a DNS 'A'
> record?

See the first example in the Net::DNS manpage:

http://search.cpan.org/~olaf/Net-DNS-0.65/lib/Net/DNS.pm#EXAMPLES

Just change:

    my $res = Net::DNS::Resolver->new;

to:

    my $res = Net::DNS::Resolver->new(nameservers=>[$nameserver]) or die;

where $nameserver is the IP address of your name server.

Rafał Pocztarski
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to