LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-03-2009, 01:02 PM   #1
sharu99
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
Smile How to configure a reverse zone as forwarder type?


Hi All,

I have configured a linux DNS server. All the forward and reverse name resolutions seems to work fine. The forwarders are also mentioned for machines in remote locations and the forward configuration works fine there as well.... Can any of you please let me know if i can create a seperate reverse zone for the ip addresses in remote locations and then make it to forward the requests to the remote dns server? My named.conf file is attached below:-

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
forwarders {10.171.8.4;10.171.8.5;};
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};


zone "srnblr.nsn-rdnet.net" IN {
type master;
file "srnblr.for.db";
allow-update { none; };
};

zone "srnblr.net" IN {
type master;
file "srnblr.db";
};

zone "mnc99.mcc404.gprs" IN {
type master;
file "mnc99.mcc404.gprs.db";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "116.58.10.in-addr.arpa" IN {
type master;
file "srnblr.rev_116.db";
allow-update { none; };
};

zone "4.71.10.in-addr.arpa" IN {
type master;
file "srnblr.rev.db";
allow-update { none; };
};

zone "8.10.in-addr.arpa" {
type slave;
file "slave.10_8";
masters {10.8.195.6; 10.8.195.7; };

};


zone "9.10.in-addr.arpa" {
type slave;
file "slave.10.9";
masters {10.8.195.6; 10.8.195.7; };
};

include "/etc/rndc.key";

In the above file i have configured zones 8.10.in-addr.arpa and 9.10.in-addr.arpa as slaves. Please let me know what changes i have to do if i have to make their type as forwarder?
 
Old 06-03-2009, 02:28 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Quote:
Originally Posted by sharu99 View Post
Hi All,

Can any of you please let me know if i can create a seperate reverse zone for the ip addresses in remote locations and then make it to forward the requests to the remote dns server?
You can do that but why don't you do it on the remote DNS instead. The remote DNS is the one that correlates the number with the name. So why do it twice?
 
Old 06-04-2009, 05:29 AM   #3
sharu99
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by ramram29 View Post
You can do that but why don't you do it on the remote DNS instead. The remote DNS is the one that correlates the number with the name. So why do it twice?


We don't have any access to this remote DNS server. But we want to do reverse name resolutions for the servers which are a part of that remote DNS server. We already have forward name resolution working fine between these two servers. What can be done for the same. Please let me know if you need any further information.
 
Old 06-04-2009, 12:17 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I think in order for that to work you'll have to become the SOA for that remote domain by creating a new zone for that remote domain in your DNS servers. Only your internal clients will be able to query that remote domain using your default DNS servers. Then you can also create a reverse zone for the ip addresses that pertain to that remote domain and point the addresses to whatever remote name you need. However, only the clients in your network, which use your DNS servers resolve these changes.
 
Old 06-04-2009, 02:33 PM   #5
sharu99
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by ramram29 View Post
I think in order for that to work you'll have to become the SOA for that remote domain by creating a new zone for that remote domain in your DNS servers. Only your internal clients will be able to query that remote domain using your default DNS servers. Then you can also create a reverse zone for the ip addresses that pertain to that remote domain and point the addresses to whatever remote name you need. However, only the clients in your network, which use your DNS servers resolve these changes.
Will this need any configuration to be done on the remote server? Please share me some examples if you have..
 
Old 06-09-2009, 03:14 PM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
sharu99 all DNS does is resolve ip numbers to names. Humans have a very difficult time remembering numbers so that is why DNS was invented. For example, what is easier for you to remember 69.147.76.15 or yahoo.com?

Explain to me which ip numbers do you want to resolv with which name?
 
  


Reply



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
BIND forward zone OK, reverse zone NOT OK! n03x3c Linux - Server 2 11-05-2008 10:31 PM
reverse zone for ipv6 bas@giskit.nl Linux - Networking 0 02-09-2006 12:44 PM
named classless reverse zone jon3k Linux - Software 1 03-08-2005 09:57 PM
reverse zone mapping ssrikant Linux - Networking 2 04-28-2003 01:32 PM
The reverse zone?? eXor Linux - Networking 1 10-15-2002 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration