I added the record is not valid with cpanel

tomlion2707

Registered
Nov 4, 2010
2
0
51
I use BIND9 and Cpanel v11.28 with CentOS 5.5

BIND 9`s default directory is:
named.conf is stored in the /var/named/chroot/etc/
Zone file is stored in the /var/named/chroot//var/named/

when I add dns zone and dns records with cpanel
Cpanel always increase my records to store in this directory:
named.conf is stored in the /etc/named.conf
Zone file is stored in the /var/named

So I added the record is not valid with cpanel !:confused:

How could I change the storage path with Cpanel?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
/var/named/chroot is only used if bind is configured for chroot in /etc/sysconfig/named. If BIND/named is not configured for chroot, then the DNS zone files are stored in /var/named.

You most likely have named configured for chroot, but the bind-chroot package is not installed. To fix this, follow these steps:


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

BiND/named will now be configured to store DNS zones in /var/named instead of /var/named/chroot. Unless you have a very specific need for a chroot environment, this is the simplest configuration and it works very well in the majority of cases.