Hi guys... I've got bind running on a secondary internal network for the domain "demon.local" on a debian box. Works great.
However on my ubuntu laptop which also has bind running I'm trying to set it so any queries for demon.local go to this server.
If I do a dig from my laptop it works.
Code:
root@happytop:/etc/bind# dig @192.168.122.71 gitserver.demon.local
; <<>> DiG 9.9.5-3-Ubuntu <<>> @192.168.122.71 gitserver.demon.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30097
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;gitserver.demon.local. IN A
;; ANSWER SECTION:
gitserver.demon.local. 10800 IN A 192.168.122.72
;; AUTHORITY SECTION:
demon.local. 10800 IN NS ns1.demon.local.
;; ADDITIONAL SECTION:
ns1.demon.local. 10800 IN A 192.168.122.71
;; Query time: 1 msec
;; SERVER: 192.168.122.71#53(192.168.122.71)
;; WHEN: Sun Aug 10 12:41:04 BST 2014
;; MSG SIZE rcvd: 100
I've put the following in /etc/bind/named.conf.local
Code:
zone "demon.local." { type forward; forward only; forwarders { 192.168.122.71; }; };
and my named.conf.options (with comments removed) looks like so..
Code:
options {
directory "/var/cache/bind";
forwarders {
192.168.76.249;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
listen-on { any; };
};
So basically my router is 192.168.76.249 so that's where it'll get the main DNS from for the caching side but any demon.local queries I want to go off to 192.168.122.71.
Here's what happens when I do a dig on my config on my laptop:
Code:
root@happytop:/etc/bind# dig @127.0.0.1 gitserver.demon.local
; <<>> DiG 9.9.5-3-Ubuntu <<>> @127.0.0.1 gitserver.demon.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31032
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;gitserver.demon.local. IN A
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 10 12:46:22 BST 2014
;; MSG SIZE rcvd: 50
ie: nowt.
What have I missed out / done wrong?