DHCP -сервер за 5 минут (на сервере FreeBSD)

в портах FreeBSD это тут /usr/ports/net/isc-dhcp42-server
устанавливаем по умолчанию. правим только конфиг
конфиг
# ee /usr/local/etc/dhcpd.conf
# option definitions общее для всех option domain-name "local.******.**";
option domain-name-servers *.*.*.105, 8.8.8.8;
default-lease-time 6000;
max-lease-time 72000;
# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none; ddns-update-style interim;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
authoritative;
# Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection).
log-facility local7;
subnet *.*.*.0
netmask 255.255.255.0 {
range *.*.*.30 *.*.*.199;
option routers *.*.*.1;
option netbios-name-servers *.*.*.105;
option domain-name-servers *.*.*.105;
option domain-name "***.***.***"; }
# This is a very basic subnet declaration.
host badfactory {
hardware ethernet 00:30:48:90:86:7f;
fixed-address *.*.*.53; }
host host-wifi {
hardware ethernet f0:7d:68:9a:f7:6a;
fixed-address *.*.*.92; }
host host2 {
hardware ethernet 20:cf:30:ee:b4:18;
fixed-address *.*.*.91; }

После правки конфига правим /etc/rc.conf
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_ifaces="em0"
запускаем
#/usr/local/etc/rc.d/isc-dhcpd start

в Windows DNS : оснастка DNS => свойства зоны нашего домена (local.domain.ua) и изменяем тип динамического обновления на `Небезопасные и безопасные". Теперь наш сервер ДНС сможет обновляться по информации с нашего DHCP.