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: connect failed: connection refused

Discussion in 'General Discussion' started by promak, Apr 30, 2003.

  1. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Just Setup New Server with 7.3

    when i reboot bind in WHM it show

    rndc: connect failed: connection refused

    what this poblem?
     
  2. Faldran

    Faldran Well-Known Member

    Joined:
    May 28, 2002
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    Login to root SSH and run the following:

    /scripts/fixndc
     
  3. CodyFrisch

    CodyFrisch Active Member

    Joined:
    Apr 3, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Helena, MT
    Or if you are like me and you could care less about scripts, you look in /etc/rndc.key find the

    key { ...
    .....
    };

    block, and copy it to your named.conf, and make sure the control section of named.conf says to use this key for localhost. And that the server section in rndc.key says to use this key for localhost.

    I never have bothered to learn what all these scripts do, i just do everything by hand since that was how i grew up :)
     
  4. djalpha

    djalpha Active Member

    Joined:
    Jan 20, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Problem From named.conf
    -----------------------------------wrong----------------
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };
    ----------------------------------wrong-----------------



    --------------------------------correct------------------

    controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; } keys { "rndc-key"; };
    };
    -----------------------------correct---------------------




    { rndckey; }; to { "rndc-key"; }; with actual your local IP and your port
    you can find in rndc.conf not in rndc.key !
     
  5. Sijo

    Sijo Registered

    Joined:
    Oct 22, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    backup existing named.conf and rndc.conf, execute command "rndc-confgen". try using this new conf
     
  6. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    We have a 7.3 server as our primary DNS and it uses the rndckey directive instead of the rndc-key our 9 and Enterprise servers use. Someone suggested that the secondaries be moved to match the primary of rndckey. Is this correct or should they all be rndc-key for Bind 9?

    We plan on updating all servers to Enterprise, just takes time.
     
Loading...

Share This Page