Just recently switch my home server from Win2K3 to Ubuntu. So far I am very happy with it, the only outstanding issue appears to be with the reverse lookup zone. Maybe a BIND guru here can help me out and spot the issue.
This is the first time i've configured BIND - been using guides on the internet s go easy on me
named.conf
CODE
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/named.conf.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/named.conf.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
named.conf.local
CODE
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "rrsj.lan" {
type master;
file "/etc/bind/zones/rrsj.lan.db";
};
zone "254.16.172.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.254.16.172.in-addr.arpa";
};
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "rrsj.lan" {
type master;
file "/etc/bind/zones/rrsj.lan.db";
};
zone "254.16.172.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.254.16.172.in-addr.arpa";
};
rrsj.lan.db
CODE
rrsj.lan. IN SOA ns1.rrsj.lan. rrsj-fs-01.rrsj.lan. (
2006081401
28800
3600
604800
38400 )
rrsj.lan. IN NS ns1.rrsj.lan.
IN A 172.16.254.20
rrsj-mac-02 IN A 172.16.254.40
rrsj-epc-01 IN A 172.16.254.35
rrsj-lt-02 IN A 172.16.254.25
rrsj-fs-01 IN A 172.16.254.20
rrsj-lt-01 IN A 172.16.254.15
rrsj-mac-01 IN A 172.16.254.10
rrsj-gw-02 IN A 172.16.254.5
2006081401
28800
3600
604800
38400 )
rrsj.lan. IN NS ns1.rrsj.lan.
IN A 172.16.254.20
rrsj-mac-02 IN A 172.16.254.40
rrsj-epc-01 IN A 172.16.254.35
rrsj-lt-02 IN A 172.16.254.25
rrsj-fs-01 IN A 172.16.254.20
rrsj-lt-01 IN A 172.16.254.15
rrsj-mac-01 IN A 172.16.254.10
rrsj-gw-02 IN A 172.16.254.5
rev.254.16.172.in-addr.arpa
CODE
@ IN SOA rrsj.lan. rrsj-fs-01.rrsj.lan. (
2006081401
28800
604800
604800
86400 )
IN NS ns1.rrsj.lan.
20 IN PTR rrsj.lan.
5 IN PTR rrsj-gw-01.rrsj.lan.
10 IN PTR rrsj-mac-01.rrsj.lan.
15 IN PTR rrsj-lt-01.rrsj.lan.
20 IN PTR rrsj-fs-01.rrsj.lan.
25 IN PTR rrsj-lt-02.rrsj.lan.
30 IN PTR SPARE.rrsj.lan.
35 IN PTR rrsj-epc-01.rrsj.lan.
40 IN PTR rrsj-mac-02.rrsj.lan.
2006081401
28800
604800
604800
86400 )
IN NS ns1.rrsj.lan.
20 IN PTR rrsj.lan.
5 IN PTR rrsj-gw-01.rrsj.lan.
10 IN PTR rrsj-mac-01.rrsj.lan.
15 IN PTR rrsj-lt-01.rrsj.lan.
20 IN PTR rrsj-fs-01.rrsj.lan.
25 IN PTR rrsj-lt-02.rrsj.lan.
30 IN PTR SPARE.rrsj.lan.
35 IN PTR rrsj-epc-01.rrsj.lan.
40 IN PTR rrsj-mac-02.rrsj.lan.
Forward resolution works fine. However when I do an nslookup on an IP from my Mac I get the below (similar errors come from other boxes)
CODE
RRSJ-MAC-01:~ srockett$ nslookup 172.16.254.10
;; Got SERVFAIL reply from 172.16.254.20, trying next server
;; Got SERVFAIL reply from 172.16.254.20, trying next server
Server: 172.16.254.5
Address: 172.16.254.5#53
** server can't find 10.254.16.172.in-addr.arpa: SERVFAIL
;; Got SERVFAIL reply from 172.16.254.20, trying next server
;; Got SERVFAIL reply from 172.16.254.20, trying next server
Server: 172.16.254.5
Address: 172.16.254.5#53
** server can't find 10.254.16.172.in-addr.arpa: SERVFAIL
EDIT: semicolons removed from reverse lookup conf file.