Copy/Modify the configuration files
apt update
apt install bind9 isc-dhcp-server git
git clone https://github.com/shad0wuser/ddns_dhcp.git
cp -r ddns_dhcp/dhcp /etc/
cp -r ddns_dhcp/bind /etc/
cp -r ddns_dhcp/etc/* /etc/
chown -R bind:bind /etc/bind
Generate your secret key.
dnssec-keygen -a HMAC-MD5 -b 128 -r /dev/urandom -n USER DDNS_UPDATE
It will generate two key files. Just copy the key in Kddns_update.+157+57083.private
and paste to secret case on ddns.key
file.
The both files /etc/bind/ddns.key
and /etc/dhcp/ddns.key
must be identical.
services bind9 restart
service isc-dhcp-server restart