The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I added the record is not valid with cpanel

Discussion in 'General Discussion' started by tomlion2707, Nov 17, 2010.

  1. tomlion2707

    tomlion2707 Registered

    Joined:
    Nov 4, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page