Добрый день! Настроил DHCP+DNS, автоматическое обновление зон. При изменении айпишника одно и того же компа, прямая зона обновляется нормально, а из обратной не удаляется старая запись PTR. И для одного имени увеличивается количество записей PTR. Debian 7, bind 9.8.4 Направьте на путь, пжл… Вот лог:
Dec 29 14:01:07 jupiter dhcpd: DHCPREQUEST for 192.168.5.32 from 00:50:56:aa:aa:b3 via eth0: lease 192.168.5.32 unavailable.
Dec 29 14:01:07 jupiter dhcpd: DHCPNAK on 192.168.5.32 to 00:50:56:aa:aa:b3 via eth0
Dec 29 14:01:07 jupiter dhcpd: DHCPDISCOVER from 00:50:56:aa:aa:b3 via eth0
Dec 29 14:01:08 jupiter dhcpd: DHCPOFFER on 192.168.6.46 to 00:50:56:aa:aa:b3 (soft10) via eth0
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: updating zone 'ezsk.local/IN': update unsuccessful: soft10.ezsk.local: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Dec 29 14:01:08 jupiter dhcpd: DHCPREQUEST for 192.168.6.46 (192.168.0.22) from 00:50:56:aa:aa:b3 (soft10) via eth0
Dec 29 14:01:08 jupiter dhcpd: DHCPACK on 192.168.6.46 to 00:50:56:aa:aa:b3 (soft10) via eth0
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: signer "dhcp_updater" approved
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: updating zone 'ezsk.local/IN': deleting rrset at 'soft10.ezsk.local' A
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: updating zone 'ezsk.local/IN': adding an RR at 'soft10.ezsk.local' A
Dec 29 14:01:08 jupiter dhcpd: Added new forward map from soft10.ezsk.local to 192.168.6.46
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: signer "dhcp_updater" approved
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: updating zone '168.192.in-addr.arpa/IN': deleting rrset at '46.6.168.192.in-addr.arpa' PTR
Dec 29 14:01:08 jupiter named[5483]: client 127.0.0.1#38892: updating zone '168.192.in-addr.arpa/IN': adding an RR at '46.6.168.192.in-addr.arpa' PTR
Dec 29 14:01:08 jupiter dhcpd: Added reverse map from 46.6.168.192.in-addr.arpa. to soft10.ezsk.local
Почему-то удаляет запись с новым айпи из обратной зоны и потом ее добавляет…старую не трогает. конфиг dhcpd.conf
authoritative;
ddns-update-style interim;
deny client-updates;
option domain-name "tehsat.local";
option domain-name-servers ns.tehsat.local, ns2.tehsat.local;
default-lease-time 129600; # 36 hrs
max-lease-time 259200; # 72 hrs
# pxelinux-specified options
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.configfile code 209 = text;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;
log-facility local7;
#failover peer "om" {
# primary;
# address s1.tehsat.local;
# port 519;
# peer address s2.tehsat.local;
# peer port 519;
# max-response-delay 60;
# max-unacked-updates 10;
# mclt 3600;
# split 128;
# load balance max seconds 3;
#}
class ”proxy-direct” {
match pick-first-value (option dhcp-client-identifier, hardware);
}
subclass “proxy-direct” 1:00:50:56:aa:aa:b3; # soft10
subnet 192.168.0.0 netmask 255.255.248.0 {
option routers guard.tehsat.local;
option subnet-mask 255.255.248.0;
option nis-domain "tehsat.local";
option domain-name "tehsat.local";
option domain-name-servers ns.tehsat.local, ns2.tehsat.local;
option time-offset 10800; # +3 hrs
option ntp-servers time.tehsat.local;
option smtp-server mail.tehsat.local;
option netbios-name-servers ns.tehsat.local;
option x-display-manager axis.tehsat.local;
option font-servers axis.tehsat.local;
# Diskless-clients
next-server 192.168.0.22;
vendor-option-space pxelinux;
option pxelinux.magic f1:00:74:7e;
option pxelinux.configfile = concat("pxelinux.cfg/", binary-to-ascii(16, 8, ":", hardware));
filename "pxelinux.0";
pool {
# failover peer "om";
deny dynamic bootp clients;
deny-members of “proxy-direct”;
range 192.168.0.10 192.168.0.15;
default-lease-time 129600; # 36 hrs
max-lease-time 259200; # 72 hrs
}
pool {
deny dynamic bootp clients;
allow-members of “proxy-direct”;
range 192.168.6.45 192.168.6.150;
default-lease-time 129600; # 36 hrs
max-lease-time 259200; # 72 hrs
}
# DDNS update zones
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "M+vizWjgx/EpMiIifvRjTw==";
};
zone tehsat.local. {
primary 127.0.0.1l;
key DHCP_UPDATER;
}
zone 168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
}
named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "M+vizWjgx/EpMiIifvRjTw==";
};
zone "tehsat.local" {
type master;
file "tehsat.local";
allow-update { key DHCP_UPDATER; };
};
zone "168.192.in-addr.arpa" {
type master;
file "168.192.in-addr.arpa";
allow-update { key DHCP_UPDATER; };
};
zone "tehsat.ru" {
type master;
file "tehsat.ru";
};