LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-13-2010, 09:08 AM   #1
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
Reverse DNS question/problem.


I'm having issues with reverse DNS, and I do have a solution, but it seems klunky, so I wanted to pass it by you folks here. Hopefully there's a more elegant way around it.

I've got a central DNS server at my main office (company.com), and another at each other facility, serving up a subdomain (plantN.company.com). The central DNS server is the master for company.com, and a slave for all of the plantN.company.com subdomains.

Forward lookups work properly against any of the DNS servers.

Against the main DNS server reverse lookups work properly for its IP ranges only.

Against the slave DNS servers, reverse lookups work properly for their own IP ranges, and ranges on the main DNS server only. (Not really a problem for me, but it may give clues...)

If I explicitly tell the main DNS server that it's a slave for a reverse zone, it works, but I need to create an entry for each triplet (ie: 172.27.24 ) in the block. There are 4 location specific DNS servers, each serving unique ranges covering 8 triplets. I know I can do it this way, but it seems, well, ugly.

The setup looks something like this:

main DNS server:
company.com (master)
plant1.company.com (slave)
...
plant4.company.com (slave)

plant1 DNS server (uses main DNS server as a forwarder):
plant1.company.com (master)
company.com (slave)

...

plant4 DNS server (uses main DNS server as a forwarder):
plant4.company.com (master)
company.com (slave)


And the relevant snippets from the main DNS servers named.conf look like this:
zone "company.com" {
type master;
file "company.com.zone";
};

zone "plant1.company.com" {
type slave;
masters { 172.27.24.100; };
};
#Which would need all this for reverse lookups to work for ONE subdomain
#works, but is ugly.
zone "24.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "25.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "26.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "27.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "28.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "29.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "30.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};

zone "31.27.172.in-addr.arpa" {
type slave;
masters { 172.27.24.100; };
};
 
Old 04-13-2010, 03:23 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

A more elegant solution is the subdomain delegation for the forward zone and the
classless in-addr.arpa delegation for the reverse zone.

Regards
 
  


Reply

Tags
bind, dns, named, reverse


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 lookup question schapman43 Linux - Server 1 08-21-2009 03:19 PM
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
Reverse DNS question pk21 Linux - Networking 8 08-04-2002 02:53 PM


All times are GMT -5. The time now is 03:59 PM.

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