Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    BIND on Mandrake 10. rndc causing trouble!!


    Hello ppl,

    I installed BIND on Mandrake 10 using Mandrake rpms. Everything went fine and BIND was successfully installed. Now the only problem i am having is that whenever I try to restart named it gives me a problem:

    Stopping named: rndc: connect failed: connection refused

    And I am getting nowhere in setting up a functional caching nameserver.
    . I am clueless as to what I am missing. please help!!!

  2. #2
    It may be as simple as an extra } bracket in your named.conf. When you run
    Code:
    tail -f /var/log/system
    do you see any errors?

    rndc needs a controls statement like
    Code:
    controls {
      inet 127.0.0.1 allow &#123; localhost; &#125; keys &#123; <key-name>; &#125;;
    &#125;;
    to connect. The <key-name> value relates to the key statement, also in the named.conf file, something like
    Code:
    key "<key-name>" &#123;
      algorithm hmac-md5;
      secret "<key-value>";
    &#125;;
    Does your named.conf file have these? The <key-value statement is an hmac-md5 key. To create your own hmac-md5 key, use
    Code:
    dnssec-keygen -a hmac-md5 -b <bit-length> -n HOST <key-file-name>
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  3. #3
    Thanx a lot bud. Enerythign i up and running now!! This forum roxx big time

  4. $spacer_open
    $spacer_close
  5. #4
    Which one was the fix? Just so the next guy can search and find it.
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  6. #5
    The missing rndc key was causing trouble. Fixed that up by creating a new key and everything was on track!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •