Hi guys.
I'm having this problem that's driving me nuts.
Basically I've set up 2 virtual DNS servers.
1. Master on fictive domain "domain.xx".
2. Master of fictive domain "sub.domain.xx"
DNS 1 delegated sub. zone-space to the DNS 2.
Everything works except for reverse lookup on sub-domain.
For instance. 172.16.0.101 should resolve to my fictive mail.sub.domain.xx
If I try to resolve it with 'host 172.16.0.101' from domain.xx I get:
Host 101.0.16.172.in-addr.arpa not found: 2(SERVFAIL)
If I do the same from the actual sub.domain.xx I get:
Host 101.0.16.172.in-addr.arpa. not found: 3(NXDOMAIN).
If I, on the other hand, try to resolve a hostname both from domain.xx or sub.domain.xx with 'host mail.sub.domain.xx' I get the proper address as the answer: 172.16.0.101
I've delegated the in-addr.arpa space to sub.domain.xx dns-server according to RFC 2317 specification, at least I think...
Please note this is a virtual network address 172.16.0.0/24
Here are the excerpts of the in-arpa-files on both domain.xx and the sub.domain.xx server.
domain.xx server in-addr.arpa zone:
Code:
$TTL 12h
$ORIGIN 0.16.172.IN-ADDR.ARPA.
@ IN SOA @ root (
2010033101 ; serial num
5m ; refresh
15m ; retry
3w ; expiry
2h20m ; minimum
)
IN NS centos-server1.domain.xx.
10 IN PTR centos-server1.domain.xx.
11 IN PTR mail.domain.xx.
; delegated space bellow. We use 172.16.0.0/26 subnetting and
; sub.domain.xx will get 172.16.0.64/26 network space.
64/26 IN NS centos-server2.sub.domain.xx.
100 IN CNAME 100.64/26
101 IN CNAME 101.64/26
On the master for the delegated zone, sub.domain.xx, named.conf and in-addr.arpa zone looks like this:
Code:
zone "64/26.0.16.172.IN-ADDR.ARPA" in {
type master;
file "sub.domain.xx.rev";
};
Code:
$TTL 12h
$ORIGIN 64/26.0.16.172.in-addr.arpa.
@ IN SOA centos-server2.sub.domain.xx. root.sub.domain.xx. (
2010033005 ; serial num
5m ; refresh
15m ; retry
3w ; expiry
2h20m ; minimum
)
IN NS centos-server2.sub.domain.xx.
100 IN PTR centos-server2.sub.domain.xx.
101 IN PTR mail.sub.domain.xx.
This has been driving me nuts for two days now. Reversed lookup simply won't work from either end, for sub.domain.xx . I get no error messages in logs / or when running named-checkzone/checkconfig.
Any feedback is appreciated!
Thanks in advance!
M.