LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS Reverse Resolution Problem (http://www.linuxquestions.org/questions/linux-networking-3/dns-reverse-resolution-problem-832669/)

itsecx@gmail.com 09-16-2010 05:19 PM

DNS Reverse Resolution Problem
 
Environment:
- Running **bind-chroot-9.7.1-2.P2.fc13.i686** on F13.
- Forward resolution working fine
============================================
Problem & Questions
- Reverse *not* working.
- I have a class-B internal IP address (172.16.0.0/16), in the
reverse zone file, how do I distinguish between the following
two machines IP address:
Machine-1: 172.16.10.1
Machine-2: 172.16.100.1
Since you only specify the last octet.
============================================
=====Now for my configuration files=====
Here's the named.conf *snip*:
------------named.conf---------------
zone "home.tomatoketchup.com" IN {
type master;
file "/var/named/zones/internal/home.tomatoketchup.zone";
allow-update { none; };
allow-query { 172.16.0.0/16; };
};
zone "0.0.16.172.in-addr.arpa" IN {
type master;
file "/var/named/zones/internal/172.16.0.0.zone";
allow-update { none; };
allow-query { 172.16.0.0/16; };
};
------------172.16.0.0.zone---------------------
@ IN SOA securebot.home.tomatoketchup.com. admin.home.tomatoketchup.com. (
201009161 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds

IN NS ns1.home.tomatoketchup.com. ;NS Address

3 IN PTR dc.home.tomatoketchup.com.
251 IN PTR ddwrt.home.tomatoketchup.com.
-----------------------------------------------

bathory 09-17-2010 02:12 AM

Hi,

Use the following zone name in named.conf:
Code:

zone "16.172.in-addr.arpa" IN {
type master;
file "/var/named/zones/internal/172.16.0.0.zone";
allow-update { none; };
allow-query { 172.16.0.0/16; };
};

And modify the zone file using $ORIGIN like this:
Code:

$TTL 86400
@ IN SOA securebot.home.tomatoketchup.com. admin.home.tomatoketchup.com. (
201009161 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds

      IN NS ns1.home.tomatoketchup.com. ;NS Address

$ORIGIN 0.16.172.in-addr.arpa.
3 IN PTR dc.home.tomatoketchup.com.
251 IN PTR ddwrt.home.tomatoketchup.com.
1 IN PTR foo.home.tomatoketchup.com.

$ORIGIN 100.16.172.in-addr.arpa.
1 IN PTR bar.home.tomatoketchup.com.

Regards

itsecx@gmail.com 09-18-2010 11:03 AM

Thanks, @bathory!! The reverse resolution works!


All times are GMT -5. The time now is 11:02 PM.