So I figured out the problem - windows-side for some reason I've not yet
found out, the nameserver defaults to localhost. Becasue there is at least
one nameserver in the arrray it does not quit give a warning that there are
no nameservers. Because my localhost doens't work as a nameserver it can't
look anything up so all queries fail automatically and quietly. It does
work when I set RES_NAMESERVERS and does complain (lack of nameservers) if
the variable RES_NAMESERVERS is set to something bad.
I don't know if the defaulting to 127.0.0.0 as a nameserver qualifies as a
bug but I figured as long as I was correcting myself I might as well point
it out
sorry for the not-quite-a-bug report
-Alyssa
"Net-DNS"
<bug-Net-DNS@rt.c To: Alyssa Wolf/Cambridge/IBM@IBMUS
pan.org> cc:
Subject: [cpan #1699] AutoReply: 'unknown error'
10/21/2002 04:48
PM
Please respond to
bug-Net-DNS
Greetings,
This message has been automatically generated in response to your
bug report about Net-DNS, a summary of which appears below.
There is no need to reply to this message right now. Your bug in Net-DNS
has been assigned an ID of [cpan #1699]. Please include the string:
[cpan #1699]
in the subject line of all future correspondence about this issue. To do
so,
you may reply to this message.
Thank you,
bug-Net-DNS@rt.cpan.org
-------------------------------------------------------------------------
any use of the search call seems to fail in my version of ActivePerl.
my $res = Net::DNS::Resolver->new;
if ($res->search("www.google.com") == 0) {
print "$!\n";
print $res->errorstring,"\n";
die;
}
results in:
Bad file descriptor
Unknown error
this all works perfectly on linux. unfortunately my code has to work on
windows servers *sigh*
the rest of the details:
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 633 provided by ActiveState Corp.
http://www.ActiveState.com
Built 21:33:05 Jun 17 2002
# $Id: DNS.pm,v 1.14 1997/10/02 05:32:53 mfuhr Exp $
running on win2k professional sp2
if you need any other info, drop me a line
-Alyssa