+ Post New Thread
Results 1 to 8 of 8
*nix Thread, dhcp3 talking to bind using rndc.key problem in Technical; have got dns bind and dhcp working separately, when I try and make dhcp talk to dns as per general ...
  1. #1
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40

    dhcp3 talking to bind using rndc.key problem

    have got dns bind and dhcp working separately, when I try and make dhcp talk to dns as per general net instructions. it has a problem with the key file

    whether I have
    include "/etc/bind/rndc.key";


    or copy the key to /etc/dhcp3

    when i restart dhcp it says

    line 11 unknown key rndc.key

    line 11 is the key line in dhcp3.conf

    zone local.net {
    primary 127.0.0.1;
    key rndc.key; # line 11
    }

    the permissions on /etc/bind/rndc.key are
    -rw-r----- bind bind

    and the one i copied is

    -rw-r----- root root

    I just noticed the key file seems to be lacking an "r" that all the other files have.. e.g

    -rw-r--r--- bind bind named.conf

    maybe this has something to do with it but I dont know why the key file is different to the rest....

    I'm a bit stuck on what to do to make it work. thanks

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Understanding Linux file permissions

    Hint: do NOT grant all users access to the rndc.key. Instead, change its owner flags to be user: bind group: bind, which is what bind9 runs as on a Debian system.

  3. #3
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40
    Quote Originally Posted by powdarrmonkey View Post
    Understanding Linux file permissions

    Hint: do NOT grant all users access to the rndc.key. Instead, change its owner flags to be user: bind group: bind, which is what bind9 runs as on a Debian system.
    yes but the rndc.key in /etc/bind/ already has bind bind permissions, and that missing r means other accounts cant read it i think. whatever account dhcp runs as, isnt a member of the bind group. but then apparently it doesnt run as root either...and there isnt a dhcpd user...

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    One of my plans for tonight is to move DHCP+DDNS from my current router at home onto another box, so when I've done that I'll see if I can see why.

  5. #5
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40
    k thx
    just had a thought, if the dhcp clients have no reason to talk to one-another, is there actually any point in having this functionality, since the dns is really just for caching internet related dns queries...?
    Last edited by browolf; 2nd February 2009 at 05:11 PM.

  6. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Depends if you want to be able to do local lookups or not. If you don't care, then why waste time doing it? (It's really cool when it works though.)

  7. #7
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40
    I cant see any need for local lookups and havent really got time for cool lol, Im out on a limb making this thing, so its figure it out as I go along. linux is good in this respect that it makes you think why you're doing things whereas windows does it all for you and you assume if it's there it must be there for a good reason. :-)

  8. #8

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by browolf View Post
    it makes you think why you're doing things whereas windows does it all for you and you assume if it's there it must be there for a good reason. :-)
    Couldn't have put it better. Why waste time making it work if you're never going to use it?

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 26th April 2010, 02:13 PM
  2. Bind Mac to OD
    By techie08 in forum Mac
    Replies: 1
    Last Post: 15th October 2008, 07:58 PM
  3. Bind Mac to OD
    By techie08 in forum Mac
    Replies: 1
    Last Post: 13th October 2008, 06:52 PM
  4. Replies: 1
    Last Post: 14th August 2008, 06:33 PM
  5. Strange HD Problem on Debian machine
    By crc-ict in forum *nix
    Replies: 5
    Last Post: 27th January 2006, 08:43 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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