Twinkie
October 4th, 2008, 09:42 AM
I have successfully setup my first linux server using Ubuntu and Bind9. All of my dns settings are working great until reverse dns checks. I am not a dns guru and think the fact that I am using a partial class C is the cause. Can someone review and show me my error. Thank you.
For this sample domain my IP range is 1.18.2.160/27
/etc/bind/zones/rev.160.2.18.1.in-addr.arpa
$ttl 38400
@ IN SOA nsa.sample.net. root.sample.net. (
2008091001;
28800;
604800;
604800;
86400;
)
@ IN NS nsa.sample.net.
171 IN PTR nsa.sample.net.
170 IN PTR smtp.sample.net. ; ‘future secondary for later’
161 IN PTR mail.sample.net.
Or maybe it should be:
171.160/27.2.18.1 IN PTR nsa.sample.net.
170.160/27.2.18.1 IN PTR smtp.sample.net. ; ‘future secondary for later’
161.160/27.2.18.1 IN PTR mail.sample.net.
vi /etc/bind/named.conf.local
zone "160.2.18.1.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/zones/rev.160.2.18.1.in-addr.arpa";
allow-transfer { 1.18.2.170; };
allow-update { none; };
allow-query { any; };
};
Thanks for any help
For this sample domain my IP range is 1.18.2.160/27
/etc/bind/zones/rev.160.2.18.1.in-addr.arpa
$ttl 38400
@ IN SOA nsa.sample.net. root.sample.net. (
2008091001;
28800;
604800;
604800;
86400;
)
@ IN NS nsa.sample.net.
171 IN PTR nsa.sample.net.
170 IN PTR smtp.sample.net. ; ‘future secondary for later’
161 IN PTR mail.sample.net.
Or maybe it should be:
171.160/27.2.18.1 IN PTR nsa.sample.net.
170.160/27.2.18.1 IN PTR smtp.sample.net. ; ‘future secondary for later’
161.160/27.2.18.1 IN PTR mail.sample.net.
vi /etc/bind/named.conf.local
zone "160.2.18.1.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/zones/rev.160.2.18.1.in-addr.arpa";
allow-transfer { 1.18.2.170; };
allow-update { none; };
allow-query { any; };
};
Thanks for any help