Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    5

    Default Named rndc.key

    Hello (excuseme for my english) I post this message in Español but without answers
    In last six days 1:30 hour Argentina(GMT -3)
    I recibed messages

    named failed @ Sun Feb 11 01:34:52 2007. A restart was attempted automagicly.
    And after some minutes the named failes.

    I restart named --> failed

    The Adm say: failure de conf del rndc



    Feb 8 16:50:59 server named[7505]: /etc/rndc.key:1: configuring key 'rndc-key': bad base64 encoding
    Feb 8 16:50:59 server named[7505]: loading configuration: bad base64 encoding
    I solution the problem with

    cp /etc/rndc.key /etc/rndc.key.old
    rndc-confgen -a -b 128 -c /etc/rndc.key -k rndc-key chown named:named
    /etc/rndc.key service named restart
    but in next day at same hour the problem repeat

    Solution?

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    93

    Default

    Have you tried /scripts/fixrndc ?

  3. #3
    Member
    Join Date
    Feb 2007
    Posts
    5

    Default

    Yes.
    Alfer run /scripts/fixrndc the named--> failed

    Too when edit zone DNS or add new account

    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.

  4. #4
    Member Shinichi Kato's Avatar
    Join Date
    Mar 2005
    Location
    Saitama-ken,japan
    Posts
    73

    Wink

    /scripts/fixndc
    /scripts/fixrndc
    /scripts/fixnamed
    Service of my company is "free web server" "shared web server" "dedicated web server" in Japan.
    [ADSV.JP]FREE WEB SERVER
    Total Media Studio Help Forum
    TMS at GoogleMap

  5. #5
    Member
    Join Date
    Feb 2007
    Posts
    5

    Default

    No run named--> Failed


    root@server [~]# /scripts/fixndc
    Creating /etc/rndc.key ...
    Starting named: [FAILED]
    root@server [~]# /scripts/fixrndc
    Starting named: [FAILED]
    root@server [~]# /scripts/fixnamed

  6. #6
    Member
    Join Date
    Feb 2007
    Posts
    5

    Default

    All days the same problema


    Feb 14 01:34:30 server named[20655]: invalid command from 127.0.0.1#34501: bad auth
    Feb 14 01:34:30 server named[20655]: invalid command from 127.0.0.1#34502: bad auth
    Feb 14 01:34:30 server named[20655]: shutting down
    Feb 14 01:34:30 server named[20655]: stopping command channel on 127.0.0.1#953
    Feb 14 01:34:30 server named[20655]: no longer listening on 127.0.0.1#53
    Feb 14 01:34:30 server named[20655]: no longer listening on XXXXXXXXX#53
    Feb 14 01:34:30 server named[20655]: exiting
    Feb 14 01:34:30 server named: named -TERM succeeded
    Feb 14 01:34:30 server named: succeeded
    Feb 14 01:34:31 server named[21728]: starting BIND 9.2.4 -u named
    Feb 14 01:34:31 server named[21728]: using 1 CPU
    Feb 14 01:34:31 server named[21728]: loading configuration from '/etc/named.conf'
    Feb 14 01:34:31 server named[21728]: listening on IPv4 interface lo, 127.0.0.1#53
    Feb 14 01:34:31 server named[21728]: listening on IPv4 interface eth0, XXXXXXXX#53
    Feb 14 01:34:31 server named[21728]: /etc/rndc.key:1: configuring key 'rndc-key': bad base64 encoding
    Feb 14 01:34:31 server named[21728]: loading configuration: bad base64 encoding
    Feb 14 01:34:31 server named[21728]: exiting (due to fatal error)
    Feb 14 01:34:31 server named[21728]: loading configuration: bad base64 encoding
    Feb 14 01:34:31 server named[21728]: exiting (due to fatal error)
    Feb 14 01:34:31 server named: named startup failed

  7. #7
    Member
    Join Date
    Jan 2006
    Posts
    6

    Default

    I got this problem too.. I had to write my own config file. Cpanel keeps inserting an invalid key.

  8. #8
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by Rich43 View Post
    I got this problem too.. I had to write my own config file. Cpanel keeps inserting an invalid key.
    You'll need to fix the key in /etc/rndc.key

  9. #9
    Member
    Join Date
    Jan 2006
    Posts
    6

    Default

    Yeah I do, but I wish cpanel wouldnt generate a dodgy key, its an annoyance!

    Heres an example of a crap key cpanel makes on centos 5 64bit:
    key "rndc-key" {
    algorithm hmac-md5;
    secret "Sk4oeqLWoeifi8A1e
    ";
    };

    yes it puts the speech marks on next line too.. whats up with that?

  10. #10
    Registered User
    Join Date
    Jun 2008
    Posts
    2

    Default

    I had the same problem.
    To fix this do the following:
    cd /etc
    mv rndc.conf _rndc.conf
    /scripts/fixrndc

    It seems that the source of the problem is the /etc/rndc.conf

    To test that the problem has been fixed, run /scripts/upcp(this is the script that runs every day and by calling the /scripts/fixrndc, creates a corrupt /etc/rndc.key) and then check if named is still running and /etc/rndc.key secret is valid.

  11. #11
    Member
    Join Date
    Sep 2008
    Location
    Cherryvale, KS
    Posts
    5

    Default

    Code:
    /scripts/fixrndc
    warn [fixrndc] /usr/sbin/rndc status failed: rndc: recv failed: connection reset
    warn [fixrndc] rndc.conf not located on system
    warn [fixrndc] rndc.conf not located on system
    Creating rndc.conf
    Creating /etc/rndc.key
    Including rndc key file to named.conf
    Adding controls clause
    warn [fixrndc] /usr/sbin/rndc status failed: rndc: recv failed: connection reset
    Restarting named
    warn [fixrndc] /usr/sbin/rndc status failed: rndc: recv failed: connection reset
    /scripts/fixrndc failed to fix the rndc key (or named is otherwise broken), please investigate manually
    Time to call support, eh?
    Don Bledsoe
    AON Hosting :: Forefront Internet

  12. #12
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default

    If you have not already done so, please submit a support ticket so that we may investigate this problem directly on your server.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Named rndc.key
    By supersoft in forum Discusión en Español
    Replies: 1
    Last Post: 03-07-2007, 08:11 AM
  2. rm: cannot lstat `/etc/rndc.key': Input/output error
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-09-2006, 04:32 PM
  3. rndc Error reloading bind - rndc: get key: not found
    By rodstewart in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-05-2004, 04:35 PM
  4. changed rndc key and .cc tld's quit working
    By concreteman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-05-2004, 08:32 AM
  5. rndc: get config key list: not found
    By sentry in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2003, 10:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube