I'm using Red Hat AS 4 and have installed DNS and DHCP.
My DNS setup works fine on the static defined machines (i.e. I can do nslookup on both IP or hostname and they resolve correctly) but I'm having problems with dynamic clients.
My Windows 2003 client gets a DHCP assigned IP address OK and the ddns is updated -
I can do nslookup on the machine name and get its IP but if I try nslookup on its IP it can't resolve it and I get a SERVFAIL message.
I'm fairly new to linux so may be have made a schoolboy error somewhere so any help appreciated.
The log looks like:
Code:
Mar 21 14:42:49 ns0 dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Mar 21 14:42:49 ns0 dhcpd: Copyright 2004 Internet Systems Consortium.
Mar 21 14:42:49 ns0 dhcpd: Wrote 1 leases to leases file
Mar 21 14:42:49 ns0 dhcpd: Wrote 1 leases to leases file
Mar 21 14:42:49 ns0 dhcpd:
Mar 21 14:42:49 ns0 dhcpd: Listening on LPF/eth0/00:0c:29:6e:6e:81/192.168.11/24
Mar 21 14:42:49 ns0 dhcpd: Listening on LPF/eth0/00:0c:29:6e:6e:81/192.168.11/24
Mar 21 14:42:49 ns0 dhcpd: Sending on LPF/eth0/00:0c:29:6e:6e:81/192.168.11/24
Mar 21 14:42:49 ns0 dhcpd: Sending on Socket/fallback/fallback-net
Mar 21 14:42:49 ns0 dhcpd:
Mar 21 14:42:49 ns0 dhcpd: Sending on LPF/eth0/00:0c:29:6e:6e:81/192.168.11/24
Mar 21 14:42:49 ns0 dhcpd: Sending on Socket/fallback/fallback-net
Mar 21 14:42:38 ns0 dhcpd: dhcpd startup succeeded
Mar 21 14:42:48 ns0 dhcpd: DHCPDISCOVER from 00:0c:29:c7:2e:ae via eth0
Mar 21 14:42:49 ns0 dhcpd: DHCPOFFER on 192.168.11.254 to 00:0c;29:c7:2e:ae (DHCPTEST) via eth0
Mar 21 14:42:49 ns0 named[4199]: client 192.168.11.2#32785: updating zone 'vprolab.com/IN': adding an RR
Mar 21 14:42:49 ns0 named[4199]: client 192.168.11.2#32785: updating zone 'vprolab.com/IN': adding an RR
Mar 21 14:42:49 ns0 named[4199]: zone vprolab.com/IN: sending notifies (serial 200703245)
Mar 21 14:42:49 ns0 dhcpd: Added new forward map from DHCPTEST.vprolab.com to 192.168.11.254
Mar 21 14:42:49 ns0 dhcpd: unable to add reverse map from 254.11.168.192.in-addr.arpa to DHCPTEST.vprolab.com: timed out
Mar 21 14:42:49 ns0 dhcpd: DHCPREQUEST for 192.168.11.254 (192.168.11.2) from 00:0c:29:c7:2e:ae (DHCPTEST) via eth0
Mar 21 14:42:49 ns0 dhcpd: DHCPACK on 192.168.11.254 to 00:0c:29:c7:2e:ae (DHCPTEST) via eth0
dhcp.conf:
Code:
#
# DHCP Server Configuration File
#
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
ddns-domainname "vprolab.com";
ddns-rev-domainname "in-addr.arpa";
authoritative;
include "/etc/rndc.key";
zone vprolab.com. {
primary 192.168.11.2;
key "rndc.key";
}
zone 11.168.192.in-addr.arpa. {
primary 192.168.11.2;
}
default-lease-time 360000;
max-lease-time 720000;
option domain-name-servers 192.168.11.2;
option domain-name "vprolab.com";
option subnet-mask 255.255.255.0;
subnet 192.168.11.0 netmask 255.255.255.0 {
range 192.168.11.32 192.168.11.144;
range 192.168.11.145 192.168.11.254;
option routers 192.168.11.1;
}
subnet 192.168.12.0 netmask 255.255.255.0 {
range 192.168.12.2 192.168.12.127;
range 192.168.12.128 192.168.12.254;
option routers 192.168.12.1;
}
named.conf:
Code:
//
// named.conf for Red Hat nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
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.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "vprolab.com" IN {
type master;
file "vprolab.com.zone;
allow-update { key "rndc-key"; };
};
zone "11.168.192.in-addr.arpa" IN {
type master;
file "11.168.192.in-addr.arpa.zone";
allow-update { key "rndc-key"; };
};
zone:
Code:
$TTL 86400
@ IN SOA ns0.vprolab.com root.localhost (
200703211 ; serial
28800 ; refresh
14400 ; retry
360000 ; expiry
86400 ; ttl
)
NS 192.168.11.2
ns0 IN A 192.168.11.2
dc0 IN A 192.168.11.3
radius0 IN A 192.168.11.4
ca0 IN A 192.168.11.5
rev zone:
Code:
$TTL 86400
$ORIGIN 11.168.192.in-addr.arpa.
@ IN SOA ns0.vprolab.com root.localhost (
200703211 ; serial
28800 ; refresh
14400 ; retry
360000 ; expiry
86400 ; ttl
)
@ IN NS ns0.vprolab.com.
2 IN PTR ns0.vprolab.com.
3 IN PTR dc0.vprolab.com.
4 IN PTR radius0.vprolab.com.
5 IN PTR ca0.vprolab.com.