Solved

Copied zone files in Linux

Posted on 2004-08-13
3
235 Views
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.
0
Comment
Question by:ITDharam
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 250 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.
0
 
LVL 8

Author Comment

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

Expert Comment

by:jlevie
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.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now