Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    101

    Default Fedora fix for rndc error

    I was going nuts trying to figure out the rndc error on a new Fedora box. None of the fixes posted here were working. Here is the fix that worked for me.



    named was running chrooted. This is a install bug in Fedora, the fix for this is to comment out the 'ROOTDIR=' line in /etc/sysconfig/named.

    Hope this saves someone hours of looking like I had to do.

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default

    Actually, I found the problem is in the named.conf

    Find this:

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


    Replace to this:

    controls {
    inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
    };


    then do:

    service named stop

    now start the service:

    service named start

    No more errors about the rndckey.

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    101

    Default

    This has worked on some of my RH boxes, however this was not the case on this Fedora box. My above post is what fixed it.
    Originally posted by SiteShack
    Actually, I found the problem is in the named.conf

    Find this:

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


    Replace to this:

    controls {
    inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
    };


    then do:

    service named stop

    now start the service:

    service named start

    No more errors about the rndckey.

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    16

    Default

    thanks for the heads up. That fixed an issue I had; although I had changed all instances of rndc-key to rndc.key previously, I had missed that important entry. Not bind starts up with all zones and no errors.

    Also, found this thread helpful:
    http://forums.cpanel.net/showthread....ht=reverse+ptr

  5. #5
    GOT
    GOT is offline
    Get Proactive! GOT's Avatar
    Join Date
    Apr 2003
    Posts
    898

    Default

    Thank you. This solved my problem today.
    Proactive Server Monitoring and Management
    http://got-management.com

  6. #6
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Thank you

    Quote Originally Posted by bonnmac
    I was going nuts trying to figure out the rndc error on a new Fedora box. None of the fixes posted here were working. Here is the fix that worked for me.



    named was running chrooted. This is a install bug in Fedora, the fix for this is to comment out the 'ROOTDIR=' line in /etc/sysconfig/named.

    Hope this saves someone hours of looking like I had to do.

    Thaank you, Thank you!!

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default

    Thanks over a year later bonnmac , was racking my brains out, worked like a charm.

  8. #8
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Quote Originally Posted by bonnmac
    I was going nuts trying to figure out the rndc error on a new Fedora box. None of the fixes posted here were working. Here is the fix that worked for me.
    named was running chrooted. This is a install bug in Fedora, the fix for this is to comment out the 'ROOTDIR=' line in /etc/sysconfig/named.
    Hope this saves someone hours of looking like I had to do.
    Hello,

    This is not a bug in fedora. The advantage of the chroot feature is that, when ever a hacker enters in to your system through a bind exploit, the hacker's can access only the named files located in the /var/named/chroot directory. He can't access any other files on your system.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  9. #9
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default

    So it it very unsafe to comment this out, if so, how to fix the problem with named, without commenting it out I get:

    root@host [~]# /usr/sbin/rndc reload
    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.

    Thanks

    Quote Originally Posted by bijo
    Hello,

    This is not a bug in fedora. The advantage of the chroot feature is that, when ever a hacker enters in to your system through a bind exploit, the hacker's can access only the named files located in the /var/named/chroot directory. He can't access any other files on your system.

  10. #10
    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

    It's not unsafe. It's just a single layer of security. Bind still uses privelege separation, so the risk is usually acceptable if it gets things working for you. cPanel have improved the support for chroot bind in the CURRENT and EDGE trees so you may be able to revert in the future if you want.
    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

  11. #11
    Member
    Join Date
    Aug 2005
    Posts
    5

    Default Bingo we have a winner

    Thanks for the help on this even though I hadnt asked and yes you did save me many hours of racking the brain


Similar Threads & Tags
Similar threads

  1. Fix for ndc and rndc get key definition: not found errors
    By jumpdomain in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-08-2007, 05:54 AM
  2. DNS is down on Fedora core 5 & rndc
    By aldalil in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-11-2007, 04:21 PM
  3. My RNDC Bind Fix
    By Infernus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-18-2004, 08:08 AM
  4. RNDC Error
    By Tom Cairns in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 07-12-2004, 11:21 AM
  5. rndc Error reloading bind - rndc: get key: not found
    By rodstewart in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-05-2004, 05:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube