[dns-operations] ANY request

Stephane Bortzmeyer bortzmeyer at nic.fr
Sun Feb 7 20:37:35 UTC 2010


On Sun, Feb 07, 2010 at 10:40:48AM +0100,
 Phil Regnauld <regnauld at nsrc.org> wrote 
 a message of 71 lines which said:

>       Also, answers to ANY are somewhat implementation dependent,

For a cache, yes, it is a well-known issue. But for an authoritative
name server? I cannot find anything in the RFC but I always assumed
that ANY, for such a name server, meant "send *all* the records for
this QNAME and, if you cannot, set the TC bit". Was I wrong?

And there is the second issue mentioned by Fabien. If it seems that
omitting some RR types when replying to QTYPE=* (ANY) is questionable,
truncating a RRset is, IMHO, always wrong. Yet, in some cases, I get
only some of the NS.

% dig @ns1.google.com +norec google.com ANY

; <<>> DiG 9.5.1-P3 <<>> @ns1.google.com +norec google.com ANY
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56439
;; flags: qr aa rd; QUERY: 1, ANSWER: 18, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;google.com.                    IN      ANY

;; ANSWER SECTION:
google.com.             300     IN      AAAA    2a00:1450:8006::63
google.com.             300     IN      A       209.85.229.147
google.com.             300     IN      AAAA    2a00:1450:8006::67
google.com.             300     IN      A       209.85.229.105
google.com.             300     IN      AAAA    2a00:1450:8006::93
google.com.             300     IN      A       209.85.229.106
google.com.             300     IN      AAAA    2a00:1450:8006::6a
google.com.             300     IN      AAAA    2a00:1450:8006::68
google.com.             300     IN      A       209.85.229.104
google.com.             300     IN      A       209.85.229.99
google.com.             300     IN      AAAA    2a00:1450:8006::69
google.com.             300     IN      A       209.85.229.103
google.com.             900     IN      MX      100 google.com.s9a1.psmtp.com.
google.com.             86400   IN      SOA     ns1.google.com. dns-admin.google.com. 1406194 7200 1800 1209600 300
google.com.             345600  IN      NS      ns1.google.com.
google.com.             345600  IN      NS      ns2.google.com.
google.com.             900     IN      MX      300 google.com.s9b1.psmtp.com.
google.com.             345600  IN      NS      ns3.google.com.

;; Query time: 20 msec
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Sun Feb  7 21:36:28 2010
;; MSG SIZE  rcvd: 462

ns4 is missing...

> Sample output -- SOA is always returned in my case.

Not for me. For me, the SOA is returned most of the time but not
always:

% dig +norec @ns1.google.com google.com any

; <<>> DiG 9.5.1-P3 <<>> +norec @ns1.google.com google.com any
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25078
;; flags: qr aa rd; QUERY: 1, ANSWER: 19, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;google.com.                    IN      ANY

;; ANSWER SECTION:
google.com.             300     IN      AAAA    2a00:1450:8006::69
google.com.             300     IN      A       209.85.229.99
google.com.             300     IN      A       209.85.229.103
google.com.             300     IN      A       209.85.229.106
google.com.             300     IN      AAAA    2a00:1450:8006::68
google.com.             300     IN      AAAA    2a00:1450:8006::6a
google.com.             300     IN      A       209.85.229.105
google.com.             300     IN      AAAA    2a00:1450:8006::67
google.com.             300     IN      AAAA    2a00:1450:8006::93
google.com.             300     IN      A       209.85.229.104
google.com.             300     IN      AAAA    2a00:1450:8006::63
google.com.             300     IN      A       209.85.229.147
google.com.             345600  IN      NS      ns1.google.com.
google.com.             900     IN      MX      300 google.com.s9b1.psmtp.com.
google.com.             900     IN      MX      200 google.com.s9a2.psmtp.com.
google.com.             900     IN      MX      100 google.com.s9a1.psmtp.com.
google.com.             345600  IN      NS      ns2.google.com.
google.com.             345600  IN      NS      ns4.google.com.
google.com.             345600  IN      NS      ns3.google.com.

;; Query time: 22 msec
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Sun Feb  7 21:33:37 2010
;; MSG SIZE  rcvd: 466

...

% dig @ns1.google.com +norec google.com any

; <<>> DiG 9.5.1-P3 <<>> @ns1.google.com +norec google.com any
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49540
;; flags: qr aa rd; QUERY: 1, ANSWER: 18, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;google.com.                    IN      ANY

;; ANSWER SECTION:
google.com.             300     IN      A       209.85.229.99
google.com.             300     IN      AAAA    2a00:1450:8006::6a
google.com.             300     IN      AAAA    2a00:1450:8006::68
google.com.             300     IN      AAAA    2a00:1450:8006::67
google.com.             300     IN      A       209.85.229.103
google.com.             300     IN      AAAA    2a00:1450:8006::63
google.com.             300     IN      AAAA    2a00:1450:8006::93
google.com.             300     IN      AAAA    2a00:1450:8006::69
google.com.             300     IN      A       209.85.229.104
google.com.             300     IN      A       209.85.229.147
google.com.             300     IN      A       209.85.229.105
google.com.             300     IN      A       209.85.229.106
google.com.             900     IN      MX      100 google.com.s9a1.psmtp.com.
google.com.             345600  IN      NS      ns1.google.com.
google.com.             345600  IN      NS      ns4.google.com.
google.com.             3600    IN      TXT     "v=spf1 include:_netblocks.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
google.com.             345600  IN      NS      ns3.google.com.
google.com.             900     IN      MX      300 google.com.s9b1.psmtp.com.

;; Query time: 21 msec
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Sun Feb  7 21:34:54 2010
;; MSG SIZE  rcvd: 510




More information about the dns-operations mailing list