From RHEL to CentOS BIND 9

Baird, Josh jbaird at follett.com
Wed Dec 5 16:47:47 UTC 2007


The point is to take all of the zones from your current RHEL primary,
and move them to the same location on your CentOS box.  If they are in
/var/named/chroot/var/named, fine.  Put them where ever your named.conf
is looking for them.  

Josh

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of isplist at logicore.net
Sent: Wednesday, December 05, 2007 10:32 AM
To: bind-users
Subject: RE: From RHEL to CentOS BIND 9

> I think that you are making this way too complicated.

I don't know that I've made it more complicated but it certainly got
that way. 
I'm starting from scratch so it's all clean again.
 
> Remove the bind packages that you have already installed and "yum
> install bind-chroot"
> This will install a chrooted bind in /var/named/chroot/.

Done. I'm running 9.3.3 on the new server. Note that the RPM did not
create a 
link in /etc for named.conf but has for rndc.key back to 
/var/named/chroot/etc.
 
> Copy the named.conf from your RHEL primary to
> /var/named/chroot/etc/named.conf on the new CentOS box.

Done.
 
> Copy the zones from your RHEL primary to /var/named/chroot/etc/xxx,
> where 'xxx' is the "directory" in global options.

There are no zone files in /var/named/chroot/etc;
# ls -la
total 44
drwxrwx---  2 root named 4096 Dec  5 10:28 .
drwxrwx---  6 root named 4096 Aug  9  2006 ..
-rw-r--r--  1 root root  1279 Jun  6  2006 localtime
-rw-r--r--  1 root named 9352 Dec  5 09:29 named.conf
-rw-r--r--  1 root named   76 Aug  9  2006 rndc.key

Do you mean in /var/named/chroot/var/named/xx?
There are files in the /var/named/chroot/var/named/ directory and 
/var/named/chroot/var/named/slaves directory.

The main zone files are in the slaves directory and a few along with
network 
files just above that.

# ls -la
total 72
-rw-r--r--  1 root  root  1413 Apr 24  2007 0
-rw-r--r--  1 root  root  1583 Oct 19 14:01 xx.xx.xx.in-addr.arpa
-rw-r--r--  1 root  root   230 May 25  2007 67.in-addr.arpa
-rw-r--r--  1 root  root  1630 Dec  4 15:26 xxx.com
drwxrwx---  2 named named 4096 Aug 25  2004 data
-rw-r--r--  1 root  root   888 Dec  4 14:50 xxx.net
-r--r--r--  1 root  root   405 Aug 15  2006 localhost.rev
-r--r--r--  1 root  root   284 Jun 15  2001 make-localhost
-r--r--r--  1 root  root     0 Apr 30  2006 xxx.com.lock
-rw-r--r--  1 root  root  2517 Aug  9  2006 named.root
-r--r--r--  1 root  root     0 Apr 30  2006 xxx.com.lock
-r--r--r--  1 root  root   397 Aug 12  2002 PROTO.localhost.rev
-rw-r--r--  1 root  root   698 Apr 24  2007 xxx.com
drwxrwx---  2 named named 4096 Dec  4 14:17 slaves

Mike







More information about the bind-users mailing list