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!

rndc error

Discussion in 'General Discussion' started by maunic, Aug 18, 2006.

  1. maunic

    maunic Member

    Aug 18, 2006
    Likes Received:
    Trophy Points:
    Hi, I dind´t find any rndc info about an error I have with cpanel
    but doing some google I found the solution.

    So, I´m posting it here:

    ** THE ERROR *******************************************

    Bind reconfiguring on server using rndc
    Error reconfiguring bind on server: rndc: connection to remote host closed
    This may indicate that the remote server is using an older version of
    the command protocol, this host is not authorized to connect,
    or the key is invalid.

    ** THE SOLUTION *****************************************

    root@server [/scripts]# /scripts/fixndc
    Controls keyname does not match rndc.conf keyname
    Creating /etc/rndc.key ...
    Adding controls clause ...
    Starting named: [ OK ]

    ** MORE INFO ********************************************

    Fixing rndc error in WHM/cPanel (ndc: connection failed: connection refused)
    It is quite a common occurence in cPanel to receive such an error as rndc:

    connect failed: connection refused

    To get your name servers working, you will need to eliminate this error, it
    is quite a simple fix and can be completed in a few minutes via the
    standard cPanel /scripts

    1. Login to your server as root via SSH
    2. Run: /scripts/updatenow
    3. Run: /scripts/fixndc

    This will fix your problems some of the time, but if it does not, do the
    following steps:

    1. Login to your server as root via SSH
    2. Run: vi /etc/rndc.conf (or vi /etc/namedb/rndc.conf on FreeBSD)
    replace all instances of "rndc-key" with "rndckey"
    3. Run: vi /etc/named.conf (or vi /etc/namedb/named.conf on FreeBSD)
    replace all instances of "rndc-key" with "rndckey"
    4. Run: /scripts/fixnamed
    5. Run: /scripts/fixndc
    6. If you received an error in the last step, run /scripts/fixndc another
    7. Restart named (on RH this is service named restart)

    ** THANKS TO ********************************************

    I hope this info to be useful to anybody who gets the same error

    cheers, [ maunic ]
  2. tweakservers

    tweakservers Well-Known Member

    Mar 30, 2006
    Likes Received:
    Trophy Points:
    Very nice How-to which provide a basic troubleshooting for users who are having problems to diagnose the issue.:D
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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