Updating bind dns records Best dating hot free
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.
I’ve included the whole contents of my file here and marked the changes that I’ve made in bold.
This How To is based on a Debian OS install, the paths given may be different if you use another OS. /bin/bash # /usr/local/bin/# This script is for secure DDNS updates on Samba 4 # Version: 0.8.9 # Uncomment the next line if using a self compiled Samba and adjust for your PREFIX #PATH="/usr/local/samba/bin:/usr/local/samba/sbin:$PATH" BINDIR=$(samba -b | grep 'BINDIR' | grep -v 'SBINDIR' | awk '') WBINFO="$BINDIR/wbinfo" # DNS domain domain=$(hostname -d) if [ -z $ ]; then logger "Cannot obtain domain name, is DNS set up correctly? Exiting." exit 1 fi # Samba 4 realm REALM=$(echo $) # Additional nsupdate flags (-g already applied), e.g.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.