Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Copied zone files in Linux

Posted on 2004-08-13
Medium Priority
Last Modified: 2012-05-05
I'm running RH7.2

I already had another linux box running 7.2 which has been my DNS server for a while.

I'm finally building a secondary DNS server, but I'm having trouble with the zone files.

I just want to setup another primary DNS server, I don't care about slave and auto replication.

I copied all the zone files from /var/named  and I copied the /etc/named.conf

On the new box i'm trying to use the Bindconfig utility which doesn't see the zone files when I load it, if I save the config in Bind it overwrites my named.conf

I've read that you can't use bind config after you've edited the zone files, but I'm just copying zone files that were created with the same version of bind config.  It would be helpful if I didn't have to manually do this.

Your help is appreciated.
Question by:ITDharam
  • 2
LVL 40

Accepted Solution

jlevie earned 1000 total points
ID: 11795994
As I recall Bindconfig and manual manipulation of the Bind config/data are mutually exclusive. One has to do everything manually or everything with Bindconfig. And if memory serves, that's because Bindconfig has a private area that holds the data necessary to build named.conf & the zone files. Changes made manually to either are lost when Bindconfig is run.

The easiset, and best thing to do would be to set up the second box as a replicated secondary.  That's a very simple config and easy to do.

Author Comment

ID: 11796670
So then how do you setup a Master/Slave relationship using bindconfig gui?
LVL 40

Expert Comment

ID: 11797137
I have no idea how you'd do that with Bindconfig, or even if it is possible. What I'd do is to get the named.conf from the primary server and change it to be a slave for all zones other than the root servers "hint" zone and localhost zones. Then I'd get a copy of the root zone and create the local host zones. I'd also have to allow the slave access to the zone data on the master. And that's all there is to it.

Maintaining a DNS server probably isn't best done by a Gui. On the other hand it isn't difficult to learn how to do this manually. A Gui can handle the simple case of a single server quite well, but fancier things like secondaries or split views are probably outside of its reach.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question