Добрый день!
Не могу настроить связку bind9 и DHCP для локальной сети.
Исходные данные такие: файл /etc/dhcp/dhcpd.conf
# dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name-servers 192.168.1.1;
option domain-name "home.local";
range 192.168.1.2 192.168.1.50;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
}
default-lease-time 600;
max-lease-time 7200;
ddns-updates on;
ddns-update-style interim;
update-static-leases on;
authoritative;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret "xxx";
}
zone home.local {
primary 192.168.1.1;
key DHCP_UPDATER;
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.1;
key DHCP_UPDATER;
}
#----HOME LOCAL NETWORK
host mac-mini {
hardware ethernet 00:16:cb:a6:d0:2e;
fixed-address 192.168.1.2;
}
host ps4 {
hardware ethernet f8:46:1c:a7:f7:58;
fixed-address 192.168.1.4;
options {
directory "/var/cache/bind";
forwarders {
4.4.4.4;
8.8.8.8;
};
listen-on {
127.0.0.1;
192.168.1.1;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "xxx";
};
zone "home.local" IN {
type master;
file "/var/lib/bind/forward.bind";
allow-update { key DHCP_UPDATER; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "/var/lib/bind/reverse.bind";
allow-update { key DHCP_UPDATER; };
};
domain home.local
search home.local
nameserver 127.0.0.1
nameserver 192.168.1.1
nameserver (ip-dns провайдера)
nameserver (ip-dns провайдера)
21-Nov-2017 16:08:26.620 general: info: managed-keys-zone: journal file is out of date: removing journal file
21-Nov-2017 16:08:26.725 general: info: managed-keys-zone: loaded serial 47
21-Nov-2017 16:08:26.814 general: info: zone 1.168.192.in-addr.arpa/IN: loaded serial 2
21-Nov-2017 16:08:26.843 general: info: zone 255.in-addr.arpa/IN: loaded serial 1
21-Nov-2017 16:08:26.864 general: info: zone home.local/IN: loaded serial 2
21-Nov-2017 16:08:27.089 general: info: zone 0.in-addr.arpa/IN: loaded serial 1
21-Nov-2017 16:08:27.089 general: info: zone localhost/IN: loaded serial 2
21-Nov-2017 16:08:27.090 general: info: zone 127.in-addr.arpa/IN: loaded serial 1
21-Nov-2017 16:08:27.092 general: notice: all zones loaded
21-Nov-2017 16:08:27.092 general: notice: running
21-Nov-2017 16:08:28.305 general: info: managed-keys-zone: Key 19036 for zone . acceptance timer complete: key now trusted
21-Nov-2017 16:08:28.305 general: info: managed-keys-zone: Key 20326 for zone . acceptance timer complete: key now trusted