DHCP server: ISC DHCP

Table of Contents

Configuration
dhcpd.conf

dhcpd.conf

by ross at 06:55:33 on October 8, 2012

/usr/local/etc/dhcpd.conf

authoritative;
local-address 192.168.10.1;

option domain-name "local";
option domain-name-servers 192.168.10.1;

default-lease-time 86400;
max-lease-time 259200;

ddns-updates on;
ddns-update-style interim;
ddns-domainname "local.";
ddns-rev-domainname "in-addr.arpa.";
one-lease-per-client on;
use-host-decl-names on;
update-static-leases on;

# Might help with "Has record but no DHCID, not mine":
#update-conflict-detection off;

# Uncomment if you are running WINS server
#netbios-name-servers 192.168.10.1;
#netbios-node-type 8;

log-facility local7;

ddns-hostname = pick-first-value(
        lcase(option fqdn.hostname),
        lcase(option host-name),
        concat("dhcp-", binary-to-ascii(10, 8, "-", leased-address))
);

subnet 192.168.10.0 netmask 255.255.255.0 {
        range 192.168.10.100 192.168.10.200;
        option routers 192.168.10.1;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.10.255;
}

host striker {
        hardware ethernet 00:1a:92:cd:ee:fe;
        fixed-address 192.168.10.10;
}

include "/etc/namedb/named.key";

zone local. {
     primary 127.0.0.1;
     key rndc-key;
}
zone 10.168.192.in-addr.arpa. {
     primary 127.0.0.1;
     key rndc-key;
}

Start dhcpd:

# service isc-dhcpd start

 

Comments