Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mynamewasgone [...] gmail.com
stella [...] rider.edu
Cc:
AdminCc:

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



Subject: make test fails on test 10
Hi, using perl 5.8.0 i'm trying to install Net::DNS-0.48 make test TEST_VERBOSE=1 says: ok 5 - got a packet ok 6 - answer has RRs ok 7 - got a packet ok 8 - anwer section had RRs Server [192.168.1.6] did not give answers at /root/.cpan/build/Net-DNS-0.48/blib/lib/Net/DNS/Resolver/Recurse.pm line 73. Server [192.168.1.6] did not give answers at /root/.cpan/build/Net-DNS-0.48/blib/lib/Net/DNS/Resolver/Recurse.pm line 73. # Failed test (t/10-recurse.t at line 63) # got: undef # expected: '3' # Looks like you planned 12 tests but only ran 9. not ok 9 dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 9-12 Failed 4/12 tests, 66.67% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/10-recurse.t 4 1024 12 4 33.33% 9-12 1 test and 7 subtests skipped. Failed 1/20 test scripts, 95.00% okay. 4/872 subtests failed, 99.54% okay. make: *** [test_dynamic] Error 2 I ran the tests again, but edited the t/10-recurse.t file to add a new line at about line 53, just before $res->recursion_callback(sub { that says $res->debug(1). The new output is: t/10-recurse...............1..12 ok 1 - use Net::DNS::Resolver::Recurse; ok 2 - The object isa Net::DNS::Resolver::Recurse ok 3 - hints() set ok 4 - sanity check worked ok 5 - got a packet ok 6 - answer has RRs ok 7 - got a packet ok 8 - anwer section had RRs ;; hints() ;; hints(192.168.1.6) ;; verifying (root) zone... ;; query(., NS, IN) ;; send_udp(192.168.1.6:53) Server [192.168.1.6] did not give answers at /root/.cpan/build/Net-DNS-0.48/blib /lib/Net/DNS/Resolver/Recurse.pm line 73. ;; answer from 192.168.1.6:53 : 228 bytes ;; HEADER SECTION ;; id = 38091 ;; qr = 1 opcode = QUERY aa = 0 tc = 0 rd = 1 ;; ra = 1 ad = 0 cd = 0 rcode = NOERROR ;; qdcount = 1 ancount = 13 nscount = 0 arcount = 0 ;; QUESTION SECTION (1 record) ;; . IN NS ;; ANSWER SECTION (13 records) . 514507 IN NS I.ROOT-SERVERS.NET. . 514507 IN NS E.ROOT-SERVERS.NET. . 514507 IN NS D.ROOT-SERVERS.NET. . 514507 IN NS A.ROOT-SERVERS.NET. . 514507 IN NS H.ROOT-SERVERS.NET. . 514507 IN NS C.ROOT-SERVERS.NET. . 514507 IN NS G.ROOT-SERVERS.NET. . 514507 IN NS F.ROOT-SERVERS.NET. . 514507 IN NS B.ROOT-SERVERS.NET. . 514507 IN NS J.ROOT-SERVERS.NET. . 514507 IN NS K.ROOT-SERVERS.NET. . 514507 IN NS L.ROOT-SERVERS.NET. . 514507 IN NS M.ROOT-SERVERS.NET. ;; AUTHORITY SECTION (0 records) ;; ADDITIONAL SECTION (0 records) ;; FOUND HINT: i.root-servers.net ;; 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 ;; verifying (root) zone... ;; query(., NS, IN) ;; send_udp(192.168.1.6:53) ;; send_udp(192.168.1.6:53) ;; send_udp(192.168.1.6:53) ;; send_udp(192.168.1.6:53) Server [192.168.1.6] did not give answers at /root/.cpan/build/Net-DNS-0.48/blib/lib/Net/DNS/Resolver/Recurse.pm line 73. ;; _dorecursion() depth=[0] known_zone=[.] ;; _dorecursion() Failed to extract nameserver IPs: $VAR1 = [ {}, {} ]; ;; _dorecursion() No authority information could be obtained. not ok 9 # Failed test (t/10-recurse.t at line 65) # got: undef # expected: '3' # Looks like you planned 12 tests but only ran 9. dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 9-12 Failed 4/12 tests, 66.67% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/10-recurse.t 4 1024 12 4 33.33% 9-12 1 test and 7 subtests skipped. Failed 1/20 test scripts, 95.00% okay. 4/872 subtests failed, 99.54% okay. make: *** [test_dynamic] Error 2
Subject: Make test fails (t/10-recurse)
t/10-recurse...............1..12 ok 1 - use Net::DNS::Resolver::Recurse; ok 2 - The object isa Net::DNS::Resolver::Recurse Server [198.41.0.4] did not give answers at /usr/local/src/cpan/build/Net-DNS-0. 48/blib/lib/Net/DNS/Resolver/Recurse.pm line 73. ok 3 - hints() set not ok 4 - sanity check worked # Failed test (t/10-recurse.t at line 30) not ok 5 - got a packet # Failed test (t/10-recurse.t at line 36) Can't call method "answer" on an undefined value at t/10-recurse.t line 37. # Looks like you planned 12 tests but only ran 5. # Looks like your test died just after 5. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-12 Failed 9/12 tests, 25.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/10-recurse.t 255 65280 12 16 133.33% 4-12 2 tests and 7 subtests skipped. Failed 1/20 test scripts, 95.00% okay. 9/825 subtests failed, 98.91% okay. make: *** [test_dynamic] Error 2
Please ignore - Firewall was blocking outgoing UDP, therefore it could not reach ROOT DNS, which is what this test does...
Show quoted text
> ;; send_udp(192.168.1.6:53) > Server [192.168.1.6] did not give answers at /root/.cpan/build/Net- > DNS-0.48/blib /lib/Net/DNS/Resolver/Recurse.pm line 73. > ;; answer from 192.168.1.6:53 : 228 bytes
(...) Show quoted text
> . 514507 IN NS M.ROOT-SERVERS.NET. > > ;; AUTHORITY SECTION (0 records) > > ;; ADDITIONAL SECTION (0 records) > ;; FOUND HINT: i.root-servers.net > ;; 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 > ;; verifying (root) zone... > ;; query(., NS, IN) > ;; send_udp(192.168.1.6:53) > ;; send_udp(192.168.1.6:53) > ;; send_udp(192.168.1.6:53) > ;; send_udp(192.168.1.6:53)
Show quoted text
> ;; _dorecursion() Failed to extract nameserver IPs:
This error occurs because no addresses of the root servers can be found. These addresses are obtained from the "glue" record from the so called priming query. This query should have A RRs in the Additional section. I think this error is caused because you are using a forwarder (on private IP 193.168/16 block) that does not properly deal with glue. Could it be you are talking to a "NAT" box? If so, that may be the cause of all your trouble" --Olaf