I just set up my first ever bind9 DNS server running on ubuntu server 10.04. This server is also my gateway/dhcp server.
Here is what is weird:
If I do a dig @8.8.8.8 dschuett-lmtl.scs.local from any of my clients it resolves?!?! Dig shows that it got the answer from MY Bind9 DNS server (and NOT Google's of course), but why is it still resolving when I'm telling it to use and external DNS server?
The other weird thing is that the SAME EXACT dig command above does NOT resolve internal host names if I do it from the Bind9 DNS server. - Which is what i would expect SHOULD be happening if done from the client machines...
Here are the dig results:
From any internal client:
Code:
dig @8.8.8.8 dschuett-lmtl.scs.local
; <<>> DiG 9.7.0-P1 <<>> @8.8.8.8 dschuett-lmtl.scs.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49041
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;dschuett-lmtl.scs.local. IN A
;; ANSWER SECTION:
dschuett-lmtl.scs.local. 259200 IN A 192.168.0.202
;; AUTHORITY SECTION:
scs.local. 259200 IN NS gateway.scs.local.
;; ADDITIONAL SECTION:
gateway.scs.local. 259200 IN A 192.168.0.1
;; Query time: 0 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Feb 6 01:18:09 2011
;; MSG SIZE rcvd: 95
From Bind9 DNS server:
Code:
dig @8.8.8.8 dschuett-lmtl.scs.local
; <<>> DiG 9.7.0-P1 <<>> @8.8.8.8 dschuett-lmtl.scs.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9279
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;dschuett-lmtl.scs.local. IN A
;; AUTHORITY SECTION:
. 1800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011020501 1800 900 604800 86400
;; Query time: 77 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Feb 6 01:28:57 2011
;; MSG SIZE rcvd: 116
Any ideas why this is happening?