LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-20-2010, 10:38 AM   #1
aceone
Member
 
Registered: Apr 2009
Posts: 55

Rep: Reputation: 15
role of zone files in bind9 dns


i am trying to setup a minimal bind9 dns on RHEL5.in /var/named/chroot/var/named/etc i have following files,after installing bind and caching-nameserver:

----------------------------
localdomain.zone
localhost.zone
named.broadcast
named.ca
named.ip6.local
named.local
named.zero
data and slave directories.

----------------------

if I am right,correct me if I am wrong
-named.ca is list of root servers.
-localhost.zone is for forward mapping of 127.0.0.1
-named.local is for reverse mapping of 127.0.0.1


can someone plz explain what role do other files play??

Thanks & regards
 
Old 12-20-2010, 01:31 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,894

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

Have a look at /etc/named.rfc1912.zones to see what these zone files are about.

Regards
 
Old 12-20-2010, 11:26 PM   #3
aceone
Member
 
Registered: Apr 2009
Posts: 55

Original Poster
Rep: Reputation: 15
I have done that.its just shows configurations.Now I am clueless about only one file -localdomain.zone, what it is used for?

I copied localdomain.zone as forward.zone as forward zone file and named.local as reverse.zone for as reverse zone file.added all the RR.I now have a working DNS.

I tried removing localdomain.zone but it throws error on restarting named.what I have learned so far is ,we need following file for DNS:

1.A forward mapping zone file ---->forward.zone (as i created)
2.A reverse mapping zone file ---->reverse.zone (-----"------)
3.A root.server file ------------->named.ca (provided by the pkg)
4.forward mapping file for local host --->localhost.zone (provided by the pkg)
5.reverse mapping file for localhost ---->named.local (provided by the pkg)

so i would appreciate if someone tell me what localdomain.zone does?

Thanks & regards

Last edited by aceone; 12-20-2010 at 11:48 PM. Reason: added more info
 
Old 12-21-2010, 04:05 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,894

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

Your box fqdn could be localhost.localdomain, as it's very usual in various linux distros. That's why the localdomain.zone is used.
BTW for a caching dns, the only file needed is the named.ca. The rest is used for your convenience

Regards
 
  


Reply


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
[SOLVED] BIND9 conf and zone files - Need help felipefv Linux - Server 7 10-07-2010 11:43 AM
dns: bind9: cascading server sub-zone polemon Linux - Networking 1 11-18-2009 07:30 AM
Windows 03 DNS zone transfer to BIND9 on Suse 10 Enterprise clincoln Linux - Networking 11 08-15-2008 01:03 AM
deleted master dns zone and messed bind9 up :\ steve51184 Linux - Server 23 03-24-2008 06:07 AM
DNS Zone x-fer - From one zone to another / Debian 3.1 + BIND9 kenwoodgt Linux - Software 0 11-01-2006 10:28 AM


All times are GMT -5. The time now is 06:53 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