Subject: | Net-DNS is not working on Win32 |
Modul: Net::DNS Version 0.31
Perl: This is perl, v5.6.1 built for MSWin32-x86-multi-thread
OS: Win2k - CYGWIN_NT-5.0 INTERTIV-TL36QX 1.3.15(0.63/3/2) 2002-11-06 22:41 i686 unknown
#!/usr/bin/perl
use Net::DNS;
my $name = "perl.de";
my $res = Net::DNS::Resolver->new;
my @mx = mx($res, $name);
if(@mx)
{
foreach $rr (@mx)
{
print $rr->preference, " ", $rr->exchange, "\n";
}
}
else
{
print "can't find MX records for $name: ", $res->errorstring, "\n";
}
Is not working on a Win32 maschine!
@mx is always empty!
Why?