Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member alrock's Avatar
    Join Date
    May 2004
    Posts
    34

    Default Error reloading bind on server1: rndc: connect failed: connection refused

    When attempting to add an A entry for the hostname, this is the error I get:

    Error reloading bind on server1: rndc: connect failed: connection refused

    None of the available fixes work.

    I tried:

    cd /scripts
    ./updatenow
    ./fixndc

    Twice. It did not work. So I tried:

    cd /scripts
    ./upcp --force

    It did not work either.

    I verified that the 'rndc' key file existed.

    Restarted the server. Still not working.

    I am at a loss. This is the second freshly loaded Cpanel server in the last day that has had this problem. The other one I fixed by manually adding the hostname to the named.conf file. That did not work with this server and I am out of ideas.

  2. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Would try running:
    /scripts/fixnamed
    /scripts/fixndc
    /scripts/fixndc

    What OS?

  3. #3
    Member alrock's Avatar
    Join Date
    May 2004
    Posts
    34

    Default

    I already tried those fixes, as I stated. They did not work.

    I am running CentOs 3.3

  4. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    See that you got it solved at WHT. Have pasted that info here for someone else to use.

    Here is the first portion of named.conf

    // generated by named-bootconf.pl

    options {
    directory "/var/named";
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    //
    // a caching only nameserver config
    //
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };
    zone "." IN {
    type hint;
    file "/var/named/named.ca";
    };

    zone "localhost" IN {
    type master;
    file "/var/named/localhost.zone";
    allow-update { none; };
    };

    zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "/var/named/named.local";
    allow-update { none; };
    };



    Make a backup
    cp /etc/named.conf /etc/named.conf-old

    Open it up and take this out

    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };

    save it, then type

    service named restart

    then run /scripts/fixndc

    see if that helps

    also make sure it has the right permissions sometimes cpanel mucks that up example

    -rw-r--r-- 1 root root 22037 Dec 8 20:00 /etc/named.conf

  5. #5
    Member alrock's Avatar
    Join Date
    May 2004
    Posts
    34

    Default

    Yup. That worked like a charm. Credit to Digicrime for that!

  6. #6
    Member
    Join Date
    Apr 2003
    Posts
    112

    Default

    This method did not fix my occurance of this problem.

    Fedora Core 2. " rndc: connect failed: connection refused " every time I try to create new accounts, make dns changes, etc...

    Quote Originally Posted by sawbuck
    See that you got it solved at WHT. Have pasted that info here for someone else to use.

    Here is the first portion of named.conf

    // generated by named-bootconf.pl

    options {
    directory "/var/named";
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    //
    // a caching only nameserver config
    //
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };
    zone "." IN {
    type hint;
    file "/var/named/named.ca";
    };

    zone "localhost" IN {
    type master;
    file "/var/named/localhost.zone";
    allow-update { none; };
    };

    zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "/var/named/named.local";
    allow-update { none; };
    };



    Make a backup
    cp /etc/named.conf /etc/named.conf-old

    Open it up and take this out

    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };

    save it, then type

    service named restart

    then run /scripts/fixndc

    see if that helps

    also make sure it has the right permissions sometimes cpanel mucks that up example

    -rw-r--r-- 1 root root 22037 Dec 8 20:00 /etc/named.conf

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    1

    Default

    I too have the same thing, have never been able to fix it
    Fedora core 2 also

    tryed all stated methods ive seen.

    another thing is in the /var/log/messages there is

    Feb 14 00:36:40 ds named[16716]: couldn't add command channel 127.0.0.1#953: not found
    Feb 14 00:36:40 ds named[16716]: couldn't add command channel ::1#953: not found
    Feb 14 00:36:40 ds named[16716]: running
    Feb 13 16:36:40 ds named: named startup succeeded

    ---
    FOUND THE FIX!!
    Looks like cpanel is managing the chroot'ed named wrong.

    http://www.fedoraforum.org/forum/arc...hp/t-2998.html

    If you're running bind in a chroot, you need to give the location of the chroot directory in /etc/sysconfig/named:

    ROOTDIR=/var/named/chroot

    The simplest way to handle the rndc key is to put it in its own file, and include that file in both named.conf and rndc.conf. To avoid confusion between files in /etc and files in /var/named/chroot/etc, make some symlinks:

    /etc/named.conf should be a symlink to /var/named/chroot/etc/named.conf.
    /etc/rndc.key should be a symlink to /var/named/chroot/etc/rndc.key.
    /etc/rndc.conf doesn't involve chroot, so it stays put.

    rndc.key should look like this:


    key "rndckey" {
    algorithm hmac-md5;
    secret "q3k3SzpxASgKHCZpG1LeMw==";
    };


    /etc/rndc.conf should look like this:


    options {
    default-server localhost;
    default-key "rndckey";
    };

    server localhost {
    key "rndckey";
    };

    // This should be a symlink to the chrooted key file:
    include "/etc/rndc.key";


    named.conf should look like this:


    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };

    include "/etc/named.custom";

    include "/etc/rndc.key";

    zone "0.0.127.in-addr.arpa" {
    type master;
    file "0.0.127.in-addr.arpa.zone";
    };

    ...
    after the symlinks and editing the empty files in /var/named/chroot it worked.

    ##BEFORE##
    root@ds [/scripts]# service named restart
    Stopping named: rndc: connect failed: connection refused
    [ OK ]
    Starting named: [ OK ]

    ##AFTER##
    root@ds [/scripts]# service named restart
    Stopping named: [ OK ]
    Starting named: [ OK ]
    root@ds [/scripts]#
    Last edited by nitroburn; 02-13-2005 at 06:52 PM.

  8. #8
    Member
    Join Date
    Apr 2005
    Posts
    7

    Question

    This seems to be dup thread or something, but to get a reply, I'll dup my reply.........sorry
    I see a lot of same type problems accross the net and always points back to "Cpanel/WHM.
    Shouldn't cPanel put in a fix for this so all people using their software dont have to go to SSH to do a fix?, I mean, isn't that why we use a GUI?, so it will be easier to manage your server.
    This package sure costs enough. If cPanel has corrected this type error, then which release will it be found in, and "IF Not" then "why"
    This was my only holdup, snag, whatever so far using cPanel, and I hope this is the most of it.
    These instructions vary slightly from post to post, and which one is truly correct. I dont want a bunch of headaches, trying this and that till it gets fixed or have to Pay someone to do it after I have paid dearly for this software.
    I appoligize for sounding a little gruff, but I spent my weekend trying to setup the server for my hosting Co. and ofcourse, no tech support from the data center on weekends, less its an emergency, like crashing, then to find that seems to be a cPanel fault.
    How do I get this fixed without having to SSH the server, is their a patch for this problem?

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You will have to go to the shell to fix it. Remember that cPanel is not a server management tool, you still have to do that yourself, cPanel is an application that allows you to easily provide web hosting on a server that you maintain. The problem with bind not working is usually down to a faulty installation from the OS vendor. You still need to understand how DNS and bind work to run a DNS name server on the internet.

    If you have a reproducable bug on a particualr OS, then log a bugzilla entry so that cPanel are aware of the problem if one doesn't already exist.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    As Jonathan said, you must SSH to your server and tweak few conf files. If you don't know how, I suggest hiring a sys admin.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  11. #11
    Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    you must SSH to your server and tweak few conf files. If you don't know how, I suggest hiring a sys admin.
    Well today I learned it fixed this problem
    funny thing was I mentioned this to people who installed everything, man did they get upset
    The problem with bind not working is usually down to a faulty installation from the OS vendor.

Similar Threads & Tags
Similar threads

  1. Replies: 27
    Last Post: 04-01-2009, 05:13 AM
  2. rndc: connect failed: connection refused
    By xWho in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 08-15-2006, 01:40 PM
  3. Replies: 10
    Last Post: 12-07-2004, 11:00 AM
  4. Replies: 1
    Last Post: 08-27-2004, 03:00 PM
  5. Error reloading bind on server: rndc: recv failed: connection reset
    By AusJeff in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-17-2004, 11:51 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube