Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Copied zone files in Linux

Posted on 2004-08-13
3
240 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP File Transfer Failure 13 177
Linux : when to add the entries in /etc/hosts file 22 99
Help needed with BIND9 DNS on Ubuntu. 22 102
Squid Authentication 7 75
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

791 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