Problem with BIND - Can't resolve hostnames unless listen-on is set to the IP range
Hi,
I'd never run into problems with BIND before. Well, OK, I have run into problem with BIND numerous times but this one is a bit wierd... The server can resolve hostnames properly (with /etc/resolv.conf pointing to 127.0.0.1) but other computers on the same (private) subnet cannot. At first I thought that maybe I should set allow-query to "any". This didn't work. What did work however, was including my subnet in the listen-on configuration option: Code:
listen-on-v6 { none; }; Here's my named.conf config anyway (in fact it's the default one after emerging BIND in gentoo. And yes, I did uncomment the allow-query part when testing) Code:
options { George |
listen-on { 10.2.24.0/27; 127.0.0.1; };
I have always specifed the ip address for the listen-on statement. Do the other hosts ip addresses on your lan IP fall within .1 ->30... Code:
[root@excelsior etc]# ipcalc --netmask --network --broadcast 10.2.24.0/27 |
Thanks for your answer
I consider it highly unlikely to be a routing/subneting problem. Yes all hosts fall into the 10.2.24.0/27 subnet. Here's the output of netstat -rn: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 213.142.137.128 0.0.0.0 255.255.255.224 U 0 0 0 eth0 10.2.24.0 0.0.0.0 255.255.255.224 U 0 0 0 eth1 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo 0.0.0.0 213.142.137.144 0.0.0.0 UG 0 0 0 eth0 And if there were a problem with hosts not being part of the same subnet, then why did the listen-on statement solve the problem? The question is, why is it that I have to set listen-on to my subnet range? |
All times are GMT -5. The time now is 07:47 PM. |