djbdns
[Top] [All Lists]

dnsq and host give inconsistent results for MX query

To: dns@list.cr.yp.to
Subject: dnsq and host give inconsistent results for MX query
From: "Matthew R. Dempsky" <mrd@alkemio.org>
Date: Wed, 31 Jan 2007 17:53:43 -0600
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
Mail-followup-to: dns@list.cr.yp.to
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
I'm moving my DNS services for twomuffins.com from everydns.net to
dreamhost.com.  Before changing the registrar information from
ns[1-4].everydns.net to ns[1-3].dreamhost.com, I want to make sure the
MX records are working correctly to prevent mail delays/bounces.

twomuffins.com should have a single MX record for 0 odin.dempsky.org.
`host' implies that dreamhost.com is correctly setup:

    $ host -t mx twomuffins.com ns1.dreamhost.com
    Using domain server:
    Name: ns1.dreamhost.com
    Address: 66.33.206.206#53
    Aliases: 
    
    twomuffins.com mail is handled by 0 odin.dempsky.org.

but `dnsq's output seems to imply otherwise:

    $ dnsq mx twomuffins.com ns1.dreamhost.com
    15 twomuffins.com:
    106 bytes, 1+0+1+0 records, response, authoritative, noerror
    query: 15 twomuffins.com
    authority: twomuffins.com 14400 SOA ns1.dreamhost.com 
hostmaster.dreamhost.com 2007013103 15675 1800 1814400 14400

I have this same output on two separate OpenBSD 4.0 machines and a
Debian GNU/Linux 3.1 machine (all on separate networks, using host
from BIND 9 and dnsq from djbdns 1.05).

Can anyone explain the discrepency to me?

Thanks.

P.S.  For comparison, the output of the same two commands against
ns1.everydns.net are:

    $ host -t mx twomuffins.com ns1.everydns.net
    Using domain server:
    Name: ns1.everydns.net
    Address: 209.131.97.97#53
    Aliases: 
    
    twomuffins.com mail is handled by 0 odin.dempsky.org.

and

    $ dnsq mx twomuffins.com ns1.everydns.net
    15 twomuffins.com:
    228 bytes, 1+1+4+5 records, response, authoritative, noerror
    query: 15 twomuffins.com
    answer: twomuffins.com 3600 MX 0 odin.dempsky.org
    authority: twomuffins.com 86400 NS ns1.everydns.net
    authority: twomuffins.com 86400 NS ns2.everydns.net
    authority: twomuffins.com 86400 NS ns3.everydns.net
    authority: twomuffins.com 86400 NS ns4.everydns.net
    additional: odin.dempsky.org 3600 A 76.185.92.143
    additional: ns1.everydns.net 120 A 209.131.97.97
    additional: ns2.everydns.net 120 A 204.152.184.150
    additional: ns3.everydns.net 120 A 216.218.240.206
    additional: ns4.everydns.net 120 A 64.158.219.3

<Prev in Thread] Current Thread [Next in Thread>