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.

rndc error

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

  1. maunic

    maunic Member

    Joined:
    Aug 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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
    time.
    7. Restart named (on RH this is service named restart)


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

    http://www.crucialp.com/resources/t...el-rndc-connect-failed-connection-refused.php
    http://www.google.com

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

    cheers, [ maunic ]
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    Very nice How-to which provide a basic troubleshooting for users who are having problems to diagnose the issue.:D
     
Loading...

Share This Page