From RHEL to CentOS BIND 9

Chris Buxton cbuxton at menandmice.com
Tue Dec 4 16:53:11 UTC 2007


Since they're basically the same operating system (but possibly  
different versions - you didn't say), my guess would be to start by  
comparing named.conf on each system. They should be similar at the  
beginning, but then your existing (old) server will have zone  
statements (possibly in one or more included files). You can probably  
just copy over named.conf and all of its includes to the new master  
server. Then copy over the zone files.

If you're using the chroot environment package on one server but not  
the other, be aware that the paths will be a bit different. Without  
the chroot environment:

/etc/named.conf
/etc/rndc.{conf,key}
/var/named/

With the chroot environment:

/var/named/chroot/etc/named.conf
/var/named/chroot/etc/rndc.{conf,key}
/var/named/chroot/var/named/

As you can see, aside from the chroot environment's path, the paths  
are the same. [N.B.: You probably don't need to copy over the rndc  
configuration, since it's usually brought into named.conf using an  
include.]

As for setting up a slave, well, you'll need a similar named.conf as  
on the master (but with a different rndc configuration). Just change  
all the zone types from master to slave, and add a masters line to  
each one pointing to the new master server. Oh, and you may want to  
adjust the path of your zone files, to put them in a slaves directory;  
wherever they're going, make sure the named user can write to the  
directory. (But then, that's generally true of a master server these  
days, too.)

If you want to avoid some of the hassle, there are software solutions  
that will make this easier. Men & Mice makes one such. Feel free to  
contact me off-list if you're interested.

Chris Buxton
Professional Services
Men & Mice
Address: Noatun 17, IS-105, Reykjavik, Iceland
Phone:   +354 412 1500
Email:   cbuxton at menandmice.com
www.menandmice.com

Men & Mice
We bring control and flexibility to network management

This e-mail and its attachments may contain confidential and  
privileged information only intended for the person or entity to which  
it is addressed. If the reader of this message is not the intended  
recipient, you are hereby notified that any retention, dissemination,  
distribution or copy of this e-mail is strictly prohibited. If you  
have received this e-mail in error, please notify us immediately by  
reply e-mail and immediately delete this message and all its attachment.



On Dec 4, 2007, at 8:18 AM, isplist at logicore.net wrote:

> I need to move my RHEL BIND DNS over to a CentOS BIND 9 server along  
> with
> building a secondary. Both new machines are RPM installs so no source.
>
> The machine are ready to go but I can't figure out how to migrate  
> the records
> over to the new machine along with creating a secondary from the  
> first machine
> once it's done.
>
> I've looked everywhere I can and find tons of documentation but of  
> course,
> nothing which matches what I'm doing. Can someone lend me a hand  
> with this and
> give me some input on what I need to do next.
>
> Thanks.
>
> Mike
>
>
>



More information about the bind-users mailing list