Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 1936
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: sk [...] intertivity.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.31
Fixed in: (no value)



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?
From: quinlan [...] pathname.com
try installing Win32::Registry (if not already installed) and add this to your script: use Win32::Registry; I am able to use that with 0.33, although DNS definitely seems less happy than 0.12. Very slow timeouts are the main problem, see bug 2089 for more info.