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.

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:
    1
    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,458
    Likes Received:
    22
    Trophy Points:
    38
    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?
     
  3. WebIdentity

    WebIdentity Member

    Joined:
    Mar 27, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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
     
Loading...
Similar Threads - copies zonefiles
  1. flashweb
    Replies:
    6
    Views:
    236

Share This Page