Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#/usr/bin/perl -w use warnings; use strict; use lib qw(/home/public_html/lib/); use CGI::Carp 'fatalsToBrowser'; use Net::DNS; use POSIX; use CGI; use CGI qw(:standard); print header, start_html; 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: Premature End of Script Headers
by hv (Prior) on Apr 30, 2003 at 03:35 UTC | |
|
Re: Premature End of Script Headers
by jkahn (Friar) on Apr 30, 2003 at 03:39 UTC | |
|
Re: Premature End of Script Headers
by hardburn (Abbot) on Apr 30, 2003 at 04:09 UTC | |
|
Re: Premature End of Script Headers
by ScooterQ (Pilgrim) on Apr 30, 2003 at 13:19 UTC |