Пытаюсь подружить dhcpd на freebsd(8.2-RELEASE-p3) и dns на контроллере домена (Windows server 2008 sp2)
dhcpd - isc-dhcp42-server-4.2.2
dhcpd.conf
Код: Выделить всё
default-lease-time 86400;
max-lease-time 86400;
authoritative;
#ddns
ddns-updates on;
ddns-update-style interim;
ddns-domainname "domain.local";
ddns-rev-domainname "1.168.192.in-addr.arpa";
log-facility local7;
#класс телефонов
class "tel" {
match if binary-to-ascii(16,8,":",substring(option dhcp-client-identifier,0,4)) = "1:0:e:8"
or binary-to-ascii(16,8,":",substring(option dhcp-client-identifier,0,4)) = "1:e8:b7:48";
}
#класс ПК
class "comp" {
match if binary-to-ascii(16,8,":",substring(option dhcp-client-identifier,0,4)) = "1:1c:6f:65"
or binary-to-ascii(16,8,":",substring(option dhcp-client-identifier,0,4)) = "88:AE:1D:2A"
and substring(option host-name, 0, 4) = "comp";
}
#класс виртуалок
class "v" {
match if binary-to-ascii(16,8,":",substring(option dhcp-client-identifier,0,4)) = "1:0:15:5d" or binary-to-ascii(16,8,":",substring(option dhcp-client-identi
fier,0,4)) = "1:8:0:27";
}
subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name "domain.local";
option domain-name-servers 192.168.1.2, dc;
option netbios-name-servers 192.168.1.2;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
#пул ПК
pool {
range 192.168.1.100 192.168.1.150;
allow members of "comp";
deny members of "v";
deny members of "tel";
}
#пул телефонов
pool {
range 192.168.1.31 192.168.1.80;
allow members of "tel";
deny members of "v";
deny members of "comp";
}
#пул виртуалок
pool {
range 192.168.1.151 192.168.1.200;
allow members of "v";
deny members of "tel";
deny members of "comp";
}
}
#пул для всех остальных
pool {
range 192.168.1.220 192.168.1.240;
max-lease-time 3600;
deny members of "tel";
deny members of "comp";
deny members of "v";
}
}
в /var/log/messages
Код: Выделить всё
Nov 1 11:39:52 proxy dhcpd: Unable to add forward map from tel7001.domain.local to 192.168.1.53: not found
Nov 1 11:25:45 proxy dhcpd: Unable to add reverse map from 110.1.168.192.in-addr.arpa. to comp.domain.local: not found