View Full Version : [SOLVED] problems starting DHCP server

September 24th, 2010, 11:08 PM
I have previously set up DHCP server to dynamically update BIND9 DNS server using ubuntu 8.04 several time without a problem, mainly using this method:

Trying to do the same on Ubuntu 10.04 but keep getting this error when starting the dchp server

/etc/init.d/dhcp3-server restart
dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Can't open /etc/bind/rndc.key: Permission denied

here are the permissions for the /etc/bind/rndc.key file:

root@Server64:~# ls -l /etc/bind/rndc.key
-rw-r--r-- 1 bind bind 71 2010-09-24 22:58 /etc/bind/rndc.key

I really can't see why this is a problem?:confused:

September 24th, 2010, 11:25 PM
This might help.


September 25th, 2010, 03:13 PM

I added the following lines to the dhcp3 apparmor profile as per the link provided:

/etc/bind/ r,
/etc/bind/** r,

Now works without a problem:popcorn: