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.

BIND issue on a fresh server

Discussion in 'Bind / DNS / Nameserver Issues' started by Indianets, Jan 8, 2011.

  1. Indianets

    Indianets Well-Known Member

    Joined:
    Jun 13, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    I am getting this on a new fresh server.

    Code:
    # /scripts/rebuilddnsconfig
    Copying /etc/rndc.key to /var/named/chroot/etc/rndc.key
    /etc/rndc.key already exists in chroot environment.
    
    Some relevant info below -

    Code:
    # rpm -q bind
    bind-9.3.6-4.P1.el5_5.3
    
    # uname -a
    Linux host.servers.tld 2.6.18-194.26.1.el5 #1 SMP Fri Oct 29 14:21:16 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    
    # cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
    
    Any insight?

    Vijay
     
  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
    In /etc/sysconfig/named, BIND/named is set to run in a chroot environment, but the bind-chroot package is not installed. To fix this, do the following:

    • Edit /etc/yum.conf and remove bind-chroot from the exclude= line.
    • Run the following commands:
      Code:
      # yum install -y bind-chroot
      # yum remove -y bind-chroot
    • Edit /etc/yum.conf and add bind-chroot back to the exclude= line.

    BIND/named will now be configured in a non-chroot environment, and cPanel utilities such as /scripts/rebuilddnsconfig will work as expected. For most cPanel installations, chrooting BIND/named is not needed and we recommend a regular, non-chrooted nameserver installation.
     
  3. Indianets

    Indianets Well-Known Member

    Joined:
    Jun 13, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page