Here goes:
We have a /16 network: 10.203.x.x/255.255.0.0
Hosts are seporated into various groups.
10.203.0.x - routers and switches
10.203.1.x - Servers
10.203.2.x - Printers
10.203.3.x - static devices
10.203.4.x - dhcp
Now the problems I'm having is due to bind breaking.
named.conf
Code:
include "/etc/namedb/rndc.key";
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 10.203.1.7; };
};
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
zone "enodis.com" {
type slave;
masters {
10.0.1.1;
};
file "/etc/namedb/enodis.com.hosts";
};
zone "viscount-catering.co.uk" {
type master;
file "/etc/namedb/viscount-catering.co.uk.hosts";
allow-update { 127.0.0.1; 10.203.1.7/32; };
};
zone "203.10.in-addr.arpa" {
type master;
file "/etc/namedb/10.203.rev";
};
Forward Zone
Code:
$ttl 3600
@ IN SOA intranet.viscount-catering.co.uk. joel.intranet.viscount-catering.co.uk. (
2006022667
3h
15m
3w
3h )
@ IN NS intranet.viscount-catering.co.uk.
intranet IN A 10.203.1.7
notesserver IN A 10.203.1.6
filestore IN A 10.203.1.5
bdc IN A 10.203.1.4
server1 IN A 10.203.1.3
baanilo IN A 10.203.1.1
baan IN A 10.203.1.2
marpr IN A 10.203.2.1
salpr IN A 10.203.2.2
finpr IN A 10.203.2.3
serpr IN A 10.203.2.5
propr IN A 10.203.2.4
conplot IN A 10.203.2.6
proplot IN A 10.203.2.7
itpr IN A 10.203.2.8
ap1 IN A 10.203.3.1
ap2 IN A 10.203.3.2
ap3 IN A 10.203.3.3
ap4 IN A 10.203.3.4
ap5 IN A 10.203.3.5
pix IN A 10.203.0.1
reverse Zone
Code:
$ttl 38400
@ IN SOA intranet.viscount-catering.co.uk. joel.intranet.viscount-catering.co.uk. (
2006053001
10800
3600
604800
38400 )
@ IN NS intranet.viscount-catering.co.uk.
7.1 12H IN PTR intranet.
Now the problem is that nslookup doesnt work either on the local machine, or the windows machines that use it for DNS, either using the name of the machine, or the FQDN of the host being looked up.
[joel@intranet ~]$ nslookup intranet
Server: 10.203.1.7
Address: 10.203.1.7#53
** server can't find intranet: NXDOMAIN
But, on the DNS server, I can ping everything that has an entry and is in the 10.203.1.x range, but nothing else, the same happens on the windows machines. The host command fails point blank.
[joel@intranet ~]$ ping server1
PING server1.viscount-catering.co.uk (10.203.1.3): 56 data bytes
64 bytes from 10.203.1.3: icmp_seq=0 ttl=128 time=0.382 ms
^C
--- server1.viscount-catering.co.uk ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.382/0.382/0.382/0.000 ms
[joel@intranet ~]$ host server1
Host server1 not found: 3(NXDOMAIN)
Despite not being able to nslookup the hosts, i can still get to them via
http://host, but still, only if the host is on the 10.203.1.x range.
Any ideas what is causing this, and how to solve it?
Joel