Skip Menu |

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

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

People
Owner: rt-cpan [...] triv.org
Requestors: donatas [...] viesulas.ktu.lt
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.45
Fixed in: (no value)



Subject: Net::DNS does not work for me
$ perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=hpux, osvers=11.00, archname=PA-RISC2.0 uname='hp-ux quioch b.11.00 a 9000780 2012209406 two-user license ' config_args='-d -e -Dcc=gcc -Dprefix=/usr/local useposix=true' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE', optimize='', cppflags='-D_HPUX_SOURCE -D_HPUX_SOURCE -fno-strict-aliasing' ccversion='', gccversion='3.2', gccosandvers='hpux11.00' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, prototype=define Linker and Libraries: ld='/usr/bin/ld', ldflags =' -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred ' cccdlflags='-fPIC', lddlflags='-b -L/usr/local/lib -L/opt/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under hpux Compiled at Aug 29 2002 16:13:57 @INC: /usr/local/lib/perl5/5.8.0/PA-RISC2.0 /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0 /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl . Net::DNS is version 0.45 $uname -a HP-UX viesulas B.11.00 A 9000/777 2005262251 two-user license Problem description: make test fails recursive tests. $ make test TEST_VERBOSE=1 <...> t/10-recurse.............1..8 ok 1 - use Net::DNS::Resolver::Recurse; ok 2 - new() works ;; hints(198.41.0.4) ;; verifying (root) zone... ;; query(., NS, IN) ;; send_udp(198.41.0.4:53) ;; answer from 198.41.0.4:53 : 436 bytes ;; HEADER SECTION ;; id = 19991 ;; qr = 1 opcode = QUERY aa = 1 tc = 0 rd = 1 ;; ra = 0 ad = 0 cd = 0 rcode = NOERROR ;; qdcount = 1 ancount = 13 nscount = 0 arcount = 13 ;; QUESTION SECTION (1 record) ;; . IN NS ;; ANSWER SECTION (13 records) . 518400 IN NS E.ROOT-SERVERS.NET. . 518400 IN NS D.ROOT-SERVERS.NET. . 518400 IN NS A.ROOT-SERVERS.NET. . 518400 IN NS H.ROOT-SERVERS.NET. . 518400 IN NS C.ROOT-SERVERS.NET. . 518400 IN NS G.ROOT-SERVERS.NET. . 518400 IN NS F.ROOT-SERVERS.NET. . 518400 IN NS B.ROOT-SERVERS.NET. . 518400 IN NS J.ROOT-SERVERS.NET. . 518400 IN NS K.ROOT-SERVERS.NET. . 518400 IN NS L.ROOT-SERVERS.NET. . 518400 IN NS M.ROOT-SERVERS.NET. . 518400 IN NS I.ROOT-SERVERS.NET. ;; AUTHORITY SECTION (0 records) ;; ADDITIONAL SECTION (13 records) E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10 D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90 A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4 H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53 C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12 G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4 F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241 B.ROOT-SERVERS.NET. 3600000 IN A 128.9.0.107 J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30 K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129 L.ROOT-SERVERS.NET. 3600000 IN A 198.32.64.12 M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33 I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17 ;; FOUND HINT: e.root-servers.net ;; FOUND HINT: d.root-servers.net ;; FOUND HINT: a.root-servers.net ;; FOUND HINT: h.root-servers.net ;; FOUND HINT: c.root-servers.net ;; FOUND HINT: g.root-servers.net ;; FOUND HINT: f.root-servers.net ;; FOUND HINT: b.root-servers.net ;; FOUND HINT: j.root-servers.net ;; FOUND HINT: k.root-servers.net ;; FOUND HINT: l.root-servers.net ;; FOUND HINT: m.root-servers.net ;; FOUND HINT: i.root-servers.net ;; ADDITIONAL: E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10 ;; STORING IP: e.root-servers.net IN A 192.203.230.10 ;; ADDITIONAL: D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90 ;; STORING IP: d.root-servers.net IN A 128.8.10.90 ;; ADDITIONAL: A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4 ;; STORING IP: a.root-servers.net IN A 198.41.0.4 ;; ADDITIONAL: H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53 ;; STORING IP: h.root-servers.net IN A 128.63.2.53 ;; ADDITIONAL: C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12 ;; STORING IP: c.root-servers.net IN A 192.33.4.12 ;; ADDITIONAL: G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4 ;; STORING IP: g.root-servers.net IN A 192.112.36.4 ;; ADDITIONAL: F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241 ;; STORING IP: f.root-servers.net IN A 192.5.5.241 ;; ADDITIONAL: B.ROOT-SERVERS.NET. 3600000 IN A 128.9.0.107 ;; STORING IP: b.root-servers.net IN A 128.9.0.107 ;; ADDITIONAL: J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30 ;; STORING IP: j.root-servers.net IN A 192.58.128.30 ;; ADDITIONAL: K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129 ;; STORING IP: k.root-servers.net IN A 193.0.14.129 ;; ADDITIONAL: L.ROOT-SERVERS.NET. 3600000 IN A 198.32.64.12 ;; STORING IP: l.root-servers.net IN A 198.32.64.12 ;; ADDITIONAL: M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33 ;; STORING IP: m.root-servers.net IN A 202.12.27.33 ;; ADDITIONAL: I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17 ;; STORING IP: i.root-servers.net IN A 192.36.148.17 ;; USING THE FOLLOWING HINT IPS: ;; 202.12.27.33 ;; 193.0.14.129 ;; 192.112.36.4 ;; 198.41.0.4 ;; 192.5.5.241 ;; 128.9.0.107 ;; 128.63.2.53 ;; 128.8.10.90 ;; 192.203.230.10 ;; 192.58.128.30 ;; 192.36.148.17 ;; 192.33.4.12 ;; 198.32.64.12 ok 3 - hints() set ok 4 - sanity check worked ;; _dorecursion() depth=[0] known_zone=[.] ;; _dorecursion() cutting deck of (13) authorities... ;; _dorecursion() First nameserver [192.5.5.241] ;; send_udp(192.5.5.241:53) ;; send_udp(128.9.0.107:53) ;; send_udp(128.63.2.53:53) ;; send_udp(128.8.10.90:53) ;; send_udp(192.203.230.10:53) ;; send_udp(192.58.128.30:53) ;; send_udp(192.36.148.17:53) ;; send_udp(192.33.4.12:53) ;; send_udp(198.32.64.12:53) ;; send_udp(202.12.27.33:53) ;; send_udp(193.0.14.129:53) ;; send_udp(192.112.36.4:53) ;; send_udp(198.41.0.4:53) ;; send_udp(192.5.5.241:53) # Failed test (t/10-recurse.t at line 35) Can't call method "answer" on an undefined value at t/10-recurse.t line 36. # Looks like you planned 8 tests but only ran 5. # Looks like your test died just after 5. not ok 5 - got a packet dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-8 Failed 4/8 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------------------------------------------------------------- t/08-online.t 255 65280 52 33 63.46% 16 21-52 t/10-recurse.t 255 65280 8 4 50.00% 5-8 1 test and 7 subtests skipped. Failed 2/19 test scripts, 89.47% okay. 37/756 subtests failed, 95.11% okay. *** Error exit code 2 Stop.
Date: Sat, 17 Jan 2004 00:17:45 -0500 (EST)
From: Chris Reinhardt <chris [...] dyndns.org>
To: Guest via RT <bug-Net-DNS [...] rt.cpan.org>
Subject: Re: [cpan #4945] Net::DNS does not work for me
RT-Send-Cc:
On Thu, 15 Jan 2004, Guest via RT wrote: Show quoted text
> Can't call method "answer" on an undefined value at t/10-recurse.t line 36. > # Looks like you planned 8 tests but only ran 5. > # Looks like your test died just after 5. > not ok 5 - got a packet > dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 5-8 > Failed 4/8 tests, 50.00% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > ----------------------------------------------------------------------------------------------------------------------------- > t/08-online.t 255 65280 52 33 63.46% 16 21-52 > t/10-recurse.t 255 65280 8 4 50.00% 5-8 > 1 test and 7 subtests skipped. > Failed 2/19 test scripts, 89.47% okay. 37/756 subtests failed, 95.11% okay.
Looks like either Net::DNS can't get the resolver configuration information, or it could not talk over the network to the remote nameservers. What does this command produce? perl -MNet::DNS -MData::Dumper -e 'print Dumper(Net::DNS::Resolver->new)' -- Chris Reinhardt -- chris@dyndns.org -- http://www.dyndns.org/ A man is a success if he gets up in the morning and gets to bed at night, and in between he does what he wants to do. --Bob Dylan
[donatas@viesulas.ktu.lt - Fri Jan 23 09:56:39 2004]: Show quoted text
> So is is the bug in Net-DNS perl module or in my resolver > configuration? > I sent you the output of that command two days ago, but didn't hear > anything from you...
My apologies, I will endevor to have less of a life in the future. I am doubtful that it is a bug, Net::DNS is a widely used module, and hp-ux is not a very eclectic platform. Your resolver configuration appears to be determined correctly by Net::DNS and I cannot think of any reason why you are seeing the errors that you are. At this point I would hold a local problem (such as your DNS server or resolver configuration) as the most likely suspect. -- Chris Reinhardt -- chris@dyndns.org -- http://www.dyndns.org/ I won't insult your intelligence by suggesting that you really believe what you just said. --William Buckley, Jr.