dig response

is this good?

ENT$ dig dns.papakilo.net

; <<>> DiG 9.6.0-APPLE-P2 <<>> dns.papakilo.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13482
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;dns.papakilo.net. IN A

;; AUTHORITY SECTION:
papakilo.net. 10800 IN SOA ns1.secure.net. hostmaster.secure.net. 2006091708 86400 7200 2592000 86400

;; Query time: 673 msec
;; SERVER: 213.221.144.240#53(213.221.144.240)
;; WHEN: Wed Mar 17 20:18:23 2010
;; MSG SIZE rcvd: 92


Anthony

server, Mac OS X (10.6)

Posted on Mar 17, 2010 12:19 PM

Reply
13 replies

Mar 17, 2010 12:41 PM in response to Anthony Mellor

or is this better:

ENT$ dig @10.0.1.2 -x 10.0.1.2

; <<>> DiG 9.6.0-APPLE-P2 <<>> @10.0.1.2 -x 10.0.1.2
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47499
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;2.1.0.10.in-addr.arpa. IN PTR

;; ANSWER SECTION:
2.1.0.10.in-addr.arpa. 10800 IN PTR news.papakilo.net.

;; AUTHORITY SECTION:
1.0.10.in-addr.arpa. 10800 IN NS news.papakilo.net.

;; ADDITIONAL SECTION:
news.papakilo.net. 10800 IN A 10.0.1.2

;; Query time: 2 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Wed Mar 17 20:30:55 2010
;; MSG SIZE rcvd: 100


strikes me my first attempt was querying the WAN whereas the test was supposed to be querying the LAN.

?
with thanks to MrHoffman for the dig dig.

Anthony

Mar 17, 2010 1:20 PM in response to Anthony Mellor

Here's what a DNS forward translation for an A record (machine record) would look like with dig:


$ dig hostname.example.net
; <<>> DiG 9.6.0-APPLE-P2 <<>> hostname.example.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35339
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;hostname.example.net. IN A
;; ANSWER SECTION:
hostname.example.net. 10800 IN A 192.168.21.9
;; AUTHORITY SECTION:
example.net. 10800 IN NS hostname.example.net.
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 17 16:12:21 2010
;; MSG SIZE rcvd: 68
$


This example case shows a query for a host that also happens to be the DNS server.

Paraphrasing and simplifying the sections slightly, this dig shows some details from the response, the question you asked of DNS, the answer that you have received (if any), and the DNS server that returned the information, and the timing of the response.

Mar 17, 2010 1:23 PM in response to MrHoffman

so this:
dig @10.0.1.2 news.papakilo.net

; <<>> DiG 9.6.0-APPLE-P2 <<>> @10.0.1.2 news.papakilo.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42160
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;news.papakilo.net. IN A

;; ANSWER SECTION:
news.papakilo.net. 10800 IN A 10.0.1.2

;; AUTHORITY SECTION:
papakilo.net. 10800 IN NS news.papakilo.net.

;; Query time: 9 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Wed Mar 17 21:22:41 2010
;; MSG SIZE rcvd: 65

Mar 17, 2010 2:00 PM in response to MrHoffman

in fact, now looking at my original post with fresh eyes, I recognise all the information: things like ns1.namerserver (in USA) and the DNS pair lower down are my isp (in CH); and dns.papakilo.net is not an existing canonical, so I was surprised to get any response.

edit: and here's the thing: ANSWER: 0

I guess that means the canonical requested does not exist and the rest means the domain does.

Edit 2
SOA means Start of Authority - data about the domain.
http://rscott.org/dns/soa.html

so another guess is that's the dig default when a canonical fails.

Message was edited by: Anthony Mellor

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

dig response

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.