Hello,
I've been trying to solve the following issue for the past week but I've been unable to:
I have set a DNS server on my home network server to resolve hostnames. Internet resolving works fine, as does resolving hostnames for my domain, gdnet.awmn
I also participate in a community wireless metropolitan network (AWMN) which also uses DNS extensively. Thus, I set up BIND to request DNS info from the master servers. I added a slave section in named.conf and zone transfer works fine. However not all info is included in the zone file that end up on my HD. It includes info on which name servers are authoritative for some subdomains, and my server is expected to query them should a request be made. However this doesn't work for some reason:
Code:
irouter bind # dig www.awmn
;; Truncated, retrying in TCP mode.
; <<>> DiG 9.2.5 <<>> www.awmn
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42324
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 228, ADDITIONAL: 228
;; QUESTION SECTION:
;www.awmn. IN A
;; ANSWER SECTION:
www.awmn. 3600 IN A 10.19.143.13
;; AUTHORITY SECTION:
awmn. 3600 IN NS ns0.andreas.ns.awmn.
awmn. 3600 IN NS ns0.apoikos.ns.awmn.
[...]
;; ADDITIONAL SECTION:
ns0.ee.ns.awmn. 3600 IN A 10.31.176.1
ns0.gd.ns.awmn. 3600 IN A 10.2.24.253
[...]
;; Query time: 32 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 3 06:36:42 2006
;; MSG SIZE rcvd: 9326
This works fine. However:
Code:
irouter bind # dig winner.awmn
; <<>> DiG 9.2.5 <<>> winner.awmn
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58672
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;winner.awmn. IN A
;; AUTHORITY SECTION:
winner.awmn. 3600 IN NS ns0.winner.ns.awmn.
winner.awmn. 3600 IN NS ns0.bliz.ns.awmn.
;; ADDITIONAL SECTION:
ns0.bliz.ns.awmn. 3600 IN A 10.2.13.131
ns0.winner.ns.awmn. 3600 IN A 10.2.12.70
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 3 06:39:29 2006
;; MSG SIZE rcvd: 112
The answer section is void!
I suppose this is what I should get:
Code:
irouter bind # dig winner.awmn @10.2.12.70
; <<>> DiG 9.2.5 <<>> winner.awmn @10.2.12.70
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58108
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;winner.awmn. IN A
;; ANSWER SECTION:
winner.awmn. 3600 IN A 10.2.12.72
;; Query time: 97 msec
;; SERVER: 10.2.12.70#53(10.2.12.70)
;; WHEN: Tue Jan 3 06:40:15 2006
;; MSG SIZE rcvd: 45
Why doesn't BIND contact winner's DNS server which is authoritative for the winner.awmn domain to get an answer? Any ideas? This is my named.conf (largely based on gentoo-wiki's how-to):
Code:
irouter bind # cat /etc/bind/named.conf
options {
directory "/var/bind";
statistics-file "/var/bind/named.stats";
dump-file "/var/bind/named.dump";
zone-statistics yes;
allow-recursion { 10.0.0.0/8; };
allow-transfer { 10.0.0.0/8; };
transfer-format many-answers;
// uncomment the following lines to turn on DNS forwarding,
// and change the forwarding ip address(es) :
forward first;
forwarders {
194.219.227.2;
193.92.150.3;
};
listen-on-v6 { none; };
listen-on { 10.2.24.30; 10.2.24.189; 127.0.0.1; };
// to allow only specific hosts to use the DNS server:
//allow-query {
// 127.0.0.1;
//};
// if you have problems and are behind a firewall:
//query-source address * port 53;
pid-file "/var/run/named/named.pid";
};
// Includes
include "/var/bind/conf/logging.conf";
include "/var/bind/conf/acls.conf";
zone "." IN { type hint; file "named.ca"; };
zone "localhost" IN { type master; file "pri/localhost.zone"; allow-update { none; }; notify no; };
zone "127.in-addr.arpa" IN { type master; file "pri/127.zone"; allow-update { none; }; notify no; };
zone "gdnet.awmn" IN { type master; file "pri/gdnet.zone"; allow-query { our-networks; }; notify yes; };
zone "24.2.10.in-addr.arpa" IN { type master; file "reverse/24.2.10.zone"; allow-query { our-networks; }; notify yes; };
zone "awmn" IN { type slave; file "sec/awmn.zone"; masters { 10.19.143.12; }; };
zone "10.in-addr.arpa" IN { type slave; file "sec/10.zone"; masters { 10.19.143.12; }; };
Sorry for the long post... And thanks in advance. Any help would be greatly appreciated...
George