authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack to complete the redirection). I don’t think that they are that bad and personally I don’t have any problem editing them after that bind has rewritten them.The TCP/IP protocol is an Active Directory operational requirement.The scripts above are rather lengthy, so I won't post them here, but the basic steps are: Generate a keytab using ktutil.
option domain-name "home.lan"; option domain-name-servers lan; default-lease-time 600; max-lease-time 7200; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. Some people have mentioned that they think that bind messes up these files so that they are impossible to maintain.
i'm trying to dynamically update DNS records when DHCP give out addresses.
but even though I have specified allow-update with a key in /etc/bind/local and specified the same key in /etc/dhcp/ i also tried to set a ip address in allow update instead, but this doesen't seem to work either. tail -f /var/log/syslog client 127.0.0.1#53398: update 'dirks.crtn/IN' denied due to allow-query dhcpd: unable to add forward map from sysadmin.
to 192.1: timed out dhcpd: DHCPREQUEST for 192.1 from : (sysadmin) via eth1 dhcpd: DHCPACK on 192.1 to : (sysadmin) via eth1 ddns-updates on; ddns-update-style interim; update-static-leases on; authoritative; key "update-key" ; allow unknown-clients; use-host-decl-names on; default-lease-time 1814400; #21 days max-lease-time 1814400; #21 days log-facility local7; zone
(Obtained as is from: The steps in this post shows how to configure the DHCP server to automatically update the DNS records when giving out a new lease to a client computer.
We will start by copying the files so we have a backup remaining if anything goes wrong: 1.1 Copy the zone database files: We now need to add the key to the bind configuration and tell it what zones that we want it to allow updates on.