in reply to Re: NET::DNS
in thread NET::DNS
#/usr/bin/perl -w use warnings; use strict; use Net::DNS; my $rr; my $res = Net::DNS::Resolver->new; my $query = $res->query("http://www.yahoo.com", "NS"); if ($query) { foreach $rr ($query->answer) { next unless $rr->type eq "NS"; print $rr->nsdname, "\n"; } } else { print "query failed: ", $res->errorstring, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: NET::DNS
by Improv (Pilgrim) on Apr 28, 2003 at 18:19 UTC | |
by Anonymous Monk on Apr 28, 2003 at 18:31 UTC |