Subject: | MX queries in t/08-online.t fails with dnsmasq |
Hello,
I am running a dnsmasq caching dns setup in my home network, and this
test consistently fails. I tested it with a server in a datacenter, and
it resolved just fine. I suspect there's something going on in dnsmasq,
but being a newbie when it comes to DNS queries, I can't help much!
[MSG] Extracted 'Net-DNS-0.66/contrib/README'
[MSG] Extracted 'Net::DNS' to '/root/.cpanplus/5.10.0/build/Net-DNS-0.66'
[MSG] 'Makefile' already exists, not running '/usr/bin/perl Makefile.PL'
again unless you force
[MSG] Already ran '/usr/bin/make' for this module [Net::DNS] -- not
running again unless you force
Running [/usr/bin/make test]...
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
#
# These tests were ran with:
# Net::DNS::VERSION: 0.66
# set environment variable NET_DNS_DEBUG to get all versions
t/00-load.t ................ ok
t/00-pod.t ................. ok
t/00-version.t ............. ok
#
#
# Executing heuristic to see if have unlimited view of the Internet
# If the heuristic fails this could have various reasons probably having
# nothing to do with bugs in Net::DNS
#
#
t/001-connection-checks.t .. ok
t/01-resolver-env.t ........ ok
t/01-resolver-file.t ....... ok
t/01-resolver-flags.t ...... ok
t/01-resolver-opt.t ........ ok
t/01-resolver.t ............ ok
# character encoding: ISO-8859-1
# Net::DNS::Domain is included for testing only. Failures can safely be
ignored
t/02-domain.t .............. ok
t/02-header.t .............. ok
t/03-question.t ............ ok
t/04-packet-unique-push.t .. ok
t/04-packet.t .............. ok
t/05-apl.t ................. ok
t/05-rr-opt.t .............. ok
t/05-rr-rrsort.t ........... ok
t/05-rr-sshfp.t ............ skipped: Digest::BubbleBabble not installed.
t/05-rr-txt.t .............. ok
t/05-rr-unknown.t .......... ok
t/05-rr-various.t .......... ok
# Number of RRs: 33 Number of methods: 127
t/05-rr.t .................. ok
t/06-update.t .............. ok
t/07-misc.t ................ ok
# Failed test 'Got an answer for mx.t.net-dns.org IN MX'
# at t/08-online.t line 52.
Can't call method "header" on an undefined value at t/08-online.t line 53.
# Looks like you planned 95 tests but ran 14.
# Looks like you failed 1 test of 14 run.
# Looks like your test exited with 255 just after 14.
t/08-online.t ..............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 82/95 subtests
t/09-tkey.t ................ ok
t/10-recurse.t ............. skipped: Cannot run these tests from this
IP:192.168.0.199
# Using the XS compiled dn_expand function
#
# disabling XS based dns_expand for a moment.
#
# Continuing to use the XS based dn_expand()
t/11-escapedchars.t ........ ok
t/11-inet6.t ............... skipped: Online tests disabled.
123456789112345678921234567893123456789412345678951234567896123...
truncated to 63 octets (RFC1035 2.3.1) at t/12-compression.t line 56
t/12-compression.t ......... ok
# Testing availability of 127.0.0.1
t/13-udp-trunc.t ........... ok
# Cleaning
t/99-cleanup.t ............. ok
Test Summary Report
-------------------
t/08-online.t (Wstat: 65280 Tests: 14 Failed: 1)
Failed test: 14
Non-zero exit status: 255
Parse errors: Bad plan. You planned 95 tests but ran 14.
Files=32, Tests=1721, 158 wallclock secs ( 0.63 usr 0.14 sys + 5.97
cusr 0.40 csys = 7.14 CPU)
Result: FAIL
Failed 1/32 test programs. 1/1721 subtests failed.
make: *** [test_dynamic] Error 255
[ERROR] MAKE TEST failed: Bad file descriptor PERL_DL_NONLAZY=1
/usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
#
I even tried it with dig and it returns an empty result too!
apoc@blackhole:~$ dig -q mx t.net-dns.org
; <<>> DiG 9.6.1-P2 <<>> -q mx t.net-dns.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 11345
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mx. IN A
;; Query time: 1 msec
;; SERVER: 192.168.0.200#53(192.168.0.200)
;; WHEN: Tue Nov 30 19:15:31 2010
;; MSG SIZE rcvd: 20
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30803
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;t.net-dns.org. IN A
;; AUTHORITY SECTION:
net-dns.org. 300 IN SOA ns1.net-dns.org. domain.dacht.net. 2010070610
450 600 345600 300
;; Query time: 275 msec
;; SERVER: 192.168.0.200#53(192.168.0.200)
;; WHEN: Tue Nov 30 19:15:31 2010
;; MSG SIZE rcvd: 87
apoc@blackhole:~$
Here's on the server in the datacenter: ( returns right result! )
apoc@server:~$ dig -q mx t.net-dns.org
; <<>> DiG 9.7.0-P1 <<>> -q mx t.net-dns.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55416
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;mx. IN A
;; AUTHORITY SECTION:
mx. 1800 IN SOA m.mx-ns.mx. hostmaster.nic.mx. 96319 900 300 604800 1800
;; Query time: 4 msec
;; SERVER: 74.207.241.5#53(74.207.241.5)
;; WHEN: Wed Dec 1 02:15:56 2010
;; MSG SIZE rcvd: 79
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18518
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;t.net-dns.org. IN A
;; AUTHORITY SECTION:
net-dns.org. 300 IN SOA ns1.net-dns.org. domain.dacht.net. 2010070610
450 600 345600 300
;; Query time: 242 msec
;; SERVER: 74.207.241.5#53(74.207.241.5)
;; WHEN: Wed Dec 1 02:15:56 2010
;; MSG SIZE rcvd: 87
apoc@server:~$
If it's any help, the dnsmasq version I am running is 2.50. Please let
me know if you want me to do anything to help you resolve this! Thanks
again for your work!
--
~Apocalypse