Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default 2 copies of zonefiles

    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. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by WebIdentity View Post
    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?
    Someone, or something, changed the ROOTDIR value in /etc/sysconfig/named. Do you happen to have the bind chroot RPM installed?
    Kenneth
    Product Manager
    cPanel, Inc.

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default

    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. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    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

Similar Threads & Tags
Similar threads

  1. Keep copies of email online?
    By thared33 in forum E-mail Discussions
    Replies: 2
    Last Post: 05-02-2010, 12:10 PM
  2. Resellers can create zonefiles without permission
    By h4f in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-07-2008, 03:23 PM
  3. Two copies of backup
    By willke in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-29-2005, 12:04 PM
  4. Zonefiles - DNS
    By sjat in forum New User Questions
    Replies: 0
    Last Post: 10-01-2004, 09:17 AM
  5. automaticly change all dns zonefiles in accounts
    By Ley in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-14-2004, 03:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube