Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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?
     
  2. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice