LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-16-2010, 05:19 PM   #1
itsecx@gmail.com
LQ Newbie
 
Registered: Aug 2010
Posts: 19

Rep: Reputation: 0
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.
-----------------------------------------------
 
Old 09-17-2010, 02:12 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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
 
1 members found this post helpful.
Old 09-18-2010, 11:03 AM   #3
itsecx@gmail.com
LQ Newbie
 
Registered: Aug 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks, @bathory!! The reverse resolution works!
 
  


Reply

Tags
bind, chroot, dns, nameserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse DNS question/problem. kschmitt Linux - Server 1 04-13-2010 03:23 PM
Postfix reverse name resolution problem Sheridan Linux - Server 0 01-29-2008 04:19 AM
DNS Reverse lookup problem pazvant Linux - Networking 3 10-10-2005 06:36 AM
Reverse DNS problem guanyu Linux - Networking 6 12-21-2003 03:47 AM
Reverse Dns Problem Hein-ZA Linux - Networking 2 07-15-2003 07:01 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration