Windows dhcp not updating dns records
The default profile suggests that these files should be put in /var/lib/bind.
If you have followed the steps in my previous post you might have your zone database files in /etc/bind/zones.
3.1 Edit /etc/bind/local: # # Make sure to change the ddns update style to interim: ddns-update-style interim; ignore client-updates; # Overwrite client configured FQHNs ddns-domainname ""; ddns-rev-domainname ""; # option definitions common to all supported networks... subnet 192.168.0.0 netmask 255.255.255.0 The configuration files now contains our secret key. We also have to give the DHCP-server the permission to read and write it’s own file.
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. 5.1 Remove the general read rights from the configuration files: The dns database files are now being rewritten by the bind service.
However, these "dynamic" DNS records expire after some time (a few weeks)...
How can the DHCP be configured to refresh the DNS records after a given time interval?
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.
When using the dnssec-keygen to generate the secret key I passed it the parameter “-r /dev/urandom”.
I’m not sure how often that bind rewrites these files, but at least it seems to always happen when you stop the bind service.