dig default question
Mark Andrews
Mark_Andrews at isc.org
Tue Aug 30 22:47:51 UTC 2005
> Dig looks for A records by default (I am using bind 9.2.5 from debian).
> Why is that ?
>
> Example:
> $ dig metaboli.goa.com @ns1.bavoila.net
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 37158
>
> People would tend to think this entry does not exist, where in fact, i
> does:
>
> $ dig -t any metaboli.goa.com @ns1.bavoila.net
> ;; ANSWER SECTION:
> metaboli.goa.com. 43200 IN CNAME goa.metaboli.fr.
>
> --
> Xavier Nicollet - FT/SCR/HDI/DDPO/POO/DTQ/Hebex
The REFUSED is because you asked the server to recurse for
you and it would have had to recurse to complete the query
(to follow the CNAME).
Ask the query again with recursion off.
Mark
; <<>> DiG 8.3 <<>> +norec metaboli.goa.com @ns1.bavoila.net
; (1 server found)
;; res options: init defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51123
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;; metaboli.goa.com, type = A, class = IN
;; ANSWER SECTION:
metaboli.goa.com. 12H IN CNAME goa.metaboli.fr.
;; Total query time: 322 msec
;; FROM: drugs.dv.isc.org to SERVER: 193.252.118.130
;; WHEN: Wed Aug 31 08:44:28 2005
;; MSG SIZE sent: 34 rcvd: 63
--
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