Wildcard MX not working correctly
Mark Andrews
Mark_Andrews at isc.org
Thu Jun 1 03:03:43 UTC 2006
>
> > > > What am i missing? Many thanks.
> > >
> > > Posting the full zone file and the real query that is failing.
> >
> > [ip addresses replaced to protect the innocent]
> > ___________________________________
> >
> > x.com. IN SOA ns1.w.y. info.x.y. (
> > 2006050529
> > 7200
> > 7200
> > 604800
> > 86400 )
> > ;
> > NS ns1.w.y.
> > NS ns2.w.y.
> > NS ns3.w.y.
> >
> > IN A 1.2.3.4
> >
> > www1 IN A 1.2.3.4
> >
> > list IN A 5.6.7.8
> >
> > time IN A 5.6.7.8
> >
> > email IN A 3.4.5.6
> >
> > x.com. IN MX 10 a.b.c.d.
> > list.x.com. IN MX 10 a.b.c.d.
> > *.x.com. IN MX 10 email
> > ___________________________________
> >
> > $ dig test.x.com MX
> >
> > ; <<>> DiG 9.2.5 <<>> test.x.com MX
> > ;; global options: printcmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21778
> > ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
> >
> > ;; QUESTION SECTION:
> > ;test.x.com. IN MX
> >
> > ;; Query time: 49 msec
> > ;; SERVER: 62.6.253.69#53(62.6.253.69)
> > ;; WHEN: Wed May 31 10:15:16 2006
> > ;; MSG SIZE rcvd: 37
>
> Try querying the authoritative nameserver. There is no
> "aa" in the flags above.
>
> You should get something like this. Note there is no way
> to tell named to not add the SOA record. This was done
> with "minimal-response yes;" against BIND 9.3.1 using your
> test zone as posted above.
>
> ; <<>> DiG 9.3.2 <<>> @127.0.0.2 test.x.com
> ; (1 server found)
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31525
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;test.x.com. IN A
>
> ;; AUTHORITY SECTION:
> x.com. 86400 IN SOA ns1.w.y. info.x.y. 2006
> 050529 7200 7200 604800 86400
>
> ;; Query time: 6 msec
> ;; SERVER: 127.0.0.2#53(127.0.0.2)
> ;; WHEN: Thu Jun 1 12:33:31 2006
> ;; MSG SIZE rcvd: 78
and the response to the mx query
; <<>> DiG 9.3.2 <<>> @127.0.0.2 test.x.com mx
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59937
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;test.x.com. IN MX
;; ANSWER SECTION:
test.x.com. 86400 IN MX 10 email.x.com.
;; Query time: 3 msec
;; SERVER: 127.0.0.2#53(127.0.0.2)
;; WHEN: Thu Jun 1 13:03:06 2006
;; MSG SIZE rcvd: 50
>
>
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
>
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list