Re: dig md - Feature? Bug? What's going on?

2015-07-27 Thread Matthew Horsfall (alh)
On Mon, Jul 27, 2015 at 12:19 PM, Matthew Horsfall (alh)
wolfs...@gmail.com wrote:
 Attempting to 'dig' for 'md' does something really weird. What am I missing?

Ah, md is an obsolete RRTYPE. Nevermind! (Just like typing dig a.)

-- Matthew Horsfall (alh)
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: dig md - Feature? Bug? What's going on?

2015-07-27 Thread Tony Finch
Matthew Horsfall (alh) wolfs...@gmail.com wrote:
 On Mon, Jul 27, 2015 at 12:19 PM, Matthew Horsfall (alh) wolfs...@gmail.com 
 wrote:
  Attempting to 'dig' for 'md' does something really weird. What am I missing?

 Ah, md is an obsolete RRTYPE. Nevermind! (Just like typing dig a.)

Indeed. But why does it query for NS?

;; QUESTION SECTION:
;.  IN  NS

Tony.
-- 
f.anthony.n.finch  d...@dotat.at  http://dotat.at/
Irish Sea: Cyclonic 5 to 7, occasionally 4 in north, becoming northwesterly 4
or 5. Slight or moderate, but rough at first in south. Rain or showers. Good,
occasionally poor.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


dig md - Feature? Bug? What's going on?

2015-07-27 Thread Matthew Horsfall (alh)
Attempting to 'dig' for 'md' does something really weird. What am I missing?

mhorsfall@dumai:~$ dig m

  ;  DiG 9.9.5-4.3ubuntu0.2-Ubuntu  m
  ;; global options: +cmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 44519
  ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

  ;; QUESTION SECTION:
  ;m.INA

  ;; Query time: 2 msec
  ;; SERVER: 127.0.1.1#53(127.0.1.1)
  ;; WHEN: Mon Jul 27 12:17:38 EDT 2015
  ;; MSG SIZE  rcvd: 19

mhorsfall@dumai:~$ dig d

  ;  DiG 9.9.5-4.3ubuntu0.2-Ubuntu  d
  ;; global options: +cmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 22301
  ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

  ;; QUESTION SECTION:
  ;d.INA

  ;; Query time: 3 msec
  ;; SERVER: 127.0.1.1#53(127.0.1.1)
  ;; WHEN: Mon Jul 27 12:17:39 EDT 2015
  ;; MSG SIZE  rcvd: 19

mhorsfall@dumai:~$ dig md

  ;  DiG 9.9.5-4.3ubuntu0.2-Ubuntu  md
  ;; global options: +cmd
  ;; Got answer:
  ;; -HEADER- opcode: QUERY, status: NOERROR, id: 14960
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 1

  ;; OPT PSEUDOSECTION:
  ; EDNS: version: 0, flags:; udp: 1280
  ;; QUESTION SECTION:
  ;.INNS

  ;; ANSWER SECTION:
  .392353INNSl.root-servers.net.
  .392353INNSb.root-servers.net.
  .392353INNSg.root-servers.net.
  .392353INNSk.root-servers.net.
  .392353INNSi.root-servers.net.
  .392353INNSc.root-servers.net.
  .392353INNSh.root-servers.net.
  .392353INNSm.root-servers.net.
  .392353INNSa.root-servers.net.
  .392353INNSd.root-servers.net.
  .392353INNSj.root-servers.net.
  .392353INNSf.root-servers.net.
  .392353INNSe.root-servers.net.

  ;; Query time: 29 msec
  ;; SERVER: 127.0.1.1#53(127.0.1.1)
  ;; WHEN: Mon Jul 27 12:17:40 EDT 2015
  ;; MSG SIZE  rcvd: 239

-- Matthew Horsfall (alh)
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: dig md - Feature? Bug? What's going on?

2015-07-27 Thread Jaap Akkerhuis
 Matthew Horsfall (alh) writes:

  Attempting to 'dig' for 'md' does something really weird. What am I
  missing?

The dot. Use dig md. so dig doesn't take the md as the obsoleted
RR type md for mail destination.

There are more of those name clashes such as MX, CH  etc.

jaap
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: dig md - Feature? Bug? What's going on?

2015-07-27 Thread Evan Hunt
 Indeed. But why does it query for NS?

When you don't specify a name, dig looks up ./NS by default. 

When the code for this was originally written, I guess it didn't
occur to anyone that you might have specified a type but not a name.

-- 
Evan Hunt -- e...@isc.org
Internet Systems Consortium, Inc.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users