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!

2 copies of zonefiles

Discussion in 'General Discussion' started by WebIdentity, Oct 19, 2009.

  1. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Why has cpanel resorted to using this directory for its zone filing??

    /var/named/chroot/var/named/

    This is caused so much confusion and just want to know why only after i change entries there things start to work?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,565
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Someone, or something, changed the ROOTDIR value in /etc/sysconfig/named. Do you happen to have the bind chroot RPM installed?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    named 24413 0.2 0.3 34740 4796 ? Ssl Oct19 0:14 /usr/sbin/named -u named -t /var/named/chroot

    Yeah it looks like its in the sysconfig but no chroot

    root@srv03 [~]# yum list bind-chroot
    Error: No matching Packages to list
    root@srv03 [~]#
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Yum is likely not listing it because "bind-chroot" may be in its list of excluded packages.

    One easy way to resolve this is to temporarily install the bind-chroot RPM, then immediately remove it, both using yum, but to do this you would need to save a fresh backup of the "yum.conf" configuration file (as detailed below), temporarily edit the bind-chroot entry in the exclude list, then use yum to install and remove the package, followed by restoring the configuration from the backup created.

    Here is a basic corrective procedure you could use (if your system uses yum).

    1.) Backup:
    Code:
    # cp -pv /etc/yum.conf /etc/yum.conf.backup
    2.) Using your preferred command-line text editor via SSH, look for the line beginning with "exclude=" and revise "bind-chroot" to "bind-chroot-temp" where it has a few extra unique characters so it does not match the RPM we need to temporarily use.
    Code:
    /etc/yum.conf
    3.) Install "bind-chroot" via yum, then remove via yum:
    Code:
    # yum install bind-chroot
    # yum remove bind-chroot
    4.) Restore yum configuration from the backup saved in step 1:
    Code:
    # cp -pv /etc/yum.conf.backup /etc/yum.conf
    As a final precautionary step, you may want to check to verify named is started, and that chkconfig has named (BIND) configured to automatically start at boot.

    Verify status via init script:
    Code:
    # /etc/init.d/named status
    If needed, start or restart:
    Code:
    # /etc/init.d/named restart
    Verify "chkconfig" setting:
    Code:
    # chkconfig --list named
    If needed, correct "chkconfig" setting:
    Code:
    # chkconfig --level 35 named on
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - copies zonefiles
  1. rvdb
    Replies:
    3
    Views:
    427

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