dig command questions DNS
# dig -x 127.0.0.1
; <<>> DiG 9.2.3rc2 <<>> -x 127.0.0.1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52363 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;1.0.0.127.in-addr.arpa. IN PTR ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Sep 24 17:39:59 2004 ;; MSG SIZE rcvd: 40 when used dig command why not it gives me any ANSWER SECTION as it is given tldp.org docs below and even no AUTHORITY SECTION.... ------------------------------------------ for reference through tldp.org $ dig -x 127.0.0.1 ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26669 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;1.0.0.127.in-addr.arpa. IN PTR ;; ANSWER SECTION: 1.0.0.127.in-addr.arpa. 259200 IN PTR localhost. ;; AUTHORITY SECTION: 0.0.127.in-addr.arpa. 259200 IN NS ns.linux.bogus. ;; Query time: 3 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun Dec 23 02:26:17 2001 ;; MSG SIZE rcvd: 91 |
; <<>> DiG 9.2.3rc2 <<>> -x 127.0.0.1
;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52363 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 Your first part indicates says status: SERVFAIL so you might want to recheck the /etc/named.conf for starters. Also, it's pretty handy to use the webmin tool for setting up dns and dhcp. Here's what mine looks like. ; <<>> DiG 9.2.2-P3 <<>> -x 127.0.0.1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36515 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 |
i think it's ok to not get an answer section when querying localhost. my bind9 doesn't give me one.
why would you need it? sl mritch. |
All times are GMT -5. The time now is 01:28 AM. |