Quote:
Originally Posted by bathory
If you don't use 192.168.2.0/24 you'll be ok.
Take a look here for the explanation and solution of this problem.
Regards
|
I don't use 192.168.2.0 to do lookups I use 127.0.0.1 in my resolv.conf as my nameserver. I read the link you provided and created a file "empty.zone" consisting of:
$TTL 86400
@ 10800 IN SOA localhost. root.localhost. (
1
3600
1200
604800
10800 )
@ 10800 IN NS localhost.
and placed it in /var/lib/named/var/named/master and in
/var/lib/named/var/lib/named/master. I've added this to my /etc/named.conf:
zone "10.IN-ADDR.ARPA" {
type master;
file "/var/lib/named/var/lib/named/empty";
};
zone "16.172.IN-ADDR.ARPA" {
type master;
file "/var/lib/named/var/lib/named/empty";
};
zone "31.172.IN-ADDR.ARPA" {
type master;
file "/var/lib/named/var/lib/named/empty";
};
zone "168.192.IN-ADDR.ARPA" {
type master;
file "/var/lib/named/var/lib/named/empty";
};
stopped and started named again with no problems noted. When starting syslog shows:
Mar 17 19:11:48 localhost named[25776]: starting BIND 9.5.0-P2 -u named -t /var/lib/named
Mar 17 19:11:48 localhost named[25776]: found 1 CPU, using 1 worker thread
Mar 17 19:11:48 localhost named[25776]: loading configuration from '/etc/named.conf'
Mar 17 19:11:48 localhost named[25776]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 17 19:11:48 localhost named[25776]: listening on IPv4 interface eth1, 192.168.2.2#53
Mar 17 19:11:48 localhost named[25776]: default max-cache-size (33554432) applies
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 127.IN-ADDR.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 254.169.IN-ADDR.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: D.F.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 8.E.F.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: 9.E.F.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: A.E.F.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: automatic empty zone: B.E.F.IP6.ARPA
Mar 17 19:11:48 localhost named[25776]: default max-cache-size (33554432) applies: view _bind
Mar 17 19:11:48 localhost named[25776]: command channel listening on 127.0.0.1#953
Does it all look as it should now? It appears to be working at least the cache does when I ran dig against my domain:
; <<>> DiG 9.5.0-P2 <<>> toadnet.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45495
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;toadnet.com. IN A
;; ANSWER SECTION:
toadnet.com. 14395 IN A 208.78.40.140
;; AUTHORITY SECTION:
toadnet.com. 86395 IN NS ns1.usdcservers.net.
toadnet.com. 86395 IN NS ns2.usdcservers.net.
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 17 19:16:05 2009
;; MSG SIZE rcvd: 96
[chris@localhost ~]$ dig toadnet.com
; <<>> DiG 9.5.0-P2 <<>> toadnet.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40608
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;toadnet.com. IN A
;; ANSWER SECTION:
toadnet.com. 14386 IN A 208.78.40.140
;; AUTHORITY SECTION:
toadnet.com. 86386 IN NS ns1.usdcservers.net.
toadnet.com. 86386 IN NS ns2.usdcservers.net.
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 17 19:16:14 2009
;; MSG SIZE rcvd: 96
Hopefully this is the end to my endless questions. I appreciate your patience and assistance.
Chris