Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone recall what version of Net::DNS will work on win machines?

Replies are listed 'Best First'.
Re: Net::DNS for Windows
by Aragorn (Curate) on Apr 29, 2003 at 06:41 UTC
Re: Net::DNS for Windows
by phydeauxarff (Priest) on Apr 29, 2003 at 12:51 UTC
    There was a thread about this just yesterday in which jand indicated that "Net::DNS has been broken in Windows for a while" and he suggested trying older versions from the Net::DNS Website
      Can someone tell me why I'm getting premature end of script header warnings while running this?
      #/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"; }