Click to See Complete Forum and Search --> : DHCPD and Red Hat 8 problems
RedHat 8 Newbie
02-19-2003, 03:28 PM
Hi,
Can soimeone pease help me with an error that I am experiencing with Red Hat 8 and DHCPD. When I try to load DHCPD it states that i need to add a ddns-update-style line to the config file. I already have one as suggested by the readme.
Thanks in advance for your help,
RedHat 8 Newbie
could you post your dhcpd.conf?
bwkaz
02-19-2003, 07:49 PM
What's your line say? It should be ddns-update-style none; (or interim rather than none, but do NOT use ad-hoc anymore, it is BROKEN).
And it has to be at the top level as well, not in a "subnet" (or other) declaration.
If you can't figure it out, yeah, post the config file.
RedHat 8 Newbie
02-20-2003, 01:05 AM
Here is a copy of my dhcpd.conf
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.0.0.10 10.0.0.110;
option subnet-mask 255.0.0.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
option domain-name "qld.optushome.com.au";
option netbios-node-type 8;
ddns-update-style none;
max-lease-time 86400;
default-lease-time 86400;
}
Also adding the ddns-update-style none didn't work. Neither did interim. I have version V3.0pl1 of dhcpd.
Thanks,
Red Hat 8 Newbie
bwkaz
02-20-2003, 11:36 AM
ddns-update-style, max-lease-time, and default-lease-time should all be moved outside the "subnet" block. Move them to the start of the file.
Your broadcast address is also not quite right; since your subnet mask is 255.0.0.0, you need to take the binary NOT of that (you get 0.255.255.255) and then OR that value with the address of any machine on this subnet (you'll get 10.255.255.255) to get the broadcast address. Change the middle zeros to 255. But that shouldn't cause the error you're seeing; that error is because the ddns-update-style line is in the wrong place.
RedHat 8 Newbie
02-21-2003, 01:51 AM
Thanks for your help, but it still doesn't work. Does anyone else have any ideas?
Thanks,
RedHat 8 Newibe
bwkaz
02-21-2003, 10:31 AM
Are you still getting the same error?
Try a dhcpd -t to parse the config file for syntax, then exit. It's easier than restarting the service just to find out the config file still has errors...
And post the new config file.
Here is my configure file on my server. It's working for me.
#This is the setting for dhcp server
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
ddns-update-style ad-hoc;
option domain-name-servers 192.168.1.1;
option netbios-name-servers 192.168.1.1;
option domain-name "cojo-online.com";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
Hope this will help. BTW, make sure you restart the service when you make changed to the config. file.
bwkaz
02-21-2003, 01:47 PM
Ah, duh, that'd be a good idea. Here's mine that also works:
default-lease-time 10800; # 3 hours
max-lease-time 86400; # 1 day
log-facility local0;
always-broadcast false;
ddns-update-style interim;
key DHCP-UPDATER {
algorithm hmac-md5;
secret "xxxxxxx"; # security; can't have you people updating my DNS, now, can I? ;)
}
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
option broadcast-address 192.168.2.255;
option domain-name mydomain;
option domain-name-servers 192.168.2.1;
authoritative;
ignore client-updates;
host alpha {
hardware ethernet 00:50:22:82:B8:4E;
fixed-address alpha.mydomain;
option host-name "alpha";
}
zone mydomain. {
primary 127.0.0.1;
key DHCP-UPDATER;
}
zone 2.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP-UPDATER;
}
range 192.168.2.2 192.168.2.254;
}