Programmer n. - An ingenious device that turns caffeine into code.
#
# Global Settings
#
# Turn on Dynamic DNS:
ddns-domainname "domain.lan";
ddns-update-style interim;
ddns-updates on;
# Don't allow clients to update DNS, make the server do it
# based on the hostname passed by the DHCP client:
deny client-updates;
allow unknown-clients;
#
# 10.0.0.0/255.255.255.0 Scope Settings
#
subnet 10.0.0.0 netmask 255.255.255.0 {
# Range of DHCP assigned addresses for this scope
range 10.0.0.100 10.0.0.200;
# 1 day
default-lease-time 86400;
# 2 days
max-lease-time 172800;
# Configure the client's default Gateway:
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.2;
# Configure the client's DNS settings:
option domain-name "domain.lan";
option domain-name-servers 10.0.0.1;
}daemon /usr/sbin/dhcpd ${DHCPDARGS}/sbin/route add -host 255.255.255.255 dev eth0 2> /dev/null daemon /usr/sbin/dhcpd eth0
# make sure this line is has no settings on it! DEVICE=eth0 BOOTPROTO=dhcp HWADDR=01:01:01:01:01:01 ONBOOT=yes TYPE=Ethernet DHCP_HOSTNAME=host USERCTL=no PEERDNS=yes