dns-ddns-and-dhcp-on-a-linu.../etc/bind/dhcpd.conf

34 lines
727 B
ISCdhcpd
Raw Permalink Normal View History

2022-07-15 12:23:09 +02:00
option domain-name "mydomain.com";
option domain-name-servers 10.199.200.1;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style standard;
update-static-leases on;
authoritative;
key "rndc-key" {
algorithm hmac-sha256;
secret "<thesecret>";
};
allow unknown-clients;
use-host-decl-names on;
zone mydomain.com. {
primary 10.199.200.1;
key rndc-key;
}
zone 200.199.10.in-addr.arpa. {
primary 10.199.200.1;
key rndc-key;
}
subnet 10.199.200.0 netmask 255.255.255.0 {
range 10.199.200.100 10.199.200.254;
option subnet-mask 255.255.255.0;
option routers 10.199.200.1;
option domain-name "mydomain.com";
ddns-domainname "mydomain.com.";
ddns-rev-domainname "in-addr.arpa.";
}