Indianets

Well-Known Member
PartnerNOC
Jun 13, 2008
69
0
56
cPanel Access Level
Root Administrator
Hello,

I am getting this on a new fresh server.

Code:
# /scripts/rebuilddnsconfig
Copying /etc/rndc.key to /var/named/chroot/etc/rndc.key
/etc/rndc.key already exists in chroot environment.
Some relevant info below -

Code:
# rpm -q bind
bind-9.3.6-4.P1.el5_5.3

# uname -a
Linux host.servers.tld 2.6.18-194.26.1.el5 #1 SMP Fri Oct 29 14:21:16 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Any insight?

Vijay
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
In /etc/sysconfig/named, BIND/named is set to run in a chroot environment, but the bind-chroot package is not installed. To fix this, do the following:

  • Edit /etc/yum.conf and remove bind-chroot from the exclude= line.
  • Run the following commands:
    Code:
    # yum install -y bind-chroot
    # yum remove -y bind-chroot
  • Edit /etc/yum.conf and add bind-chroot back to the exclude= line.

BIND/named will now be configured in a non-chroot environment, and cPanel utilities such as /scripts/rebuilddnsconfig will work as expected. For most cPanel installations, chrooting BIND/named is not needed and we recommend a regular, non-chrooted nameserver installation.