Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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

Posted
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...

Posted (edited)

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...?

Edited by browolf
Posted
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. :-)
Posted
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? :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...