# # 2024-01-20 # # Nice to find 'nsupdate' ... something I'd have liked to know of earlier, given the typical inability # of ISPs to lend an internet address for a nice, healthy, long time. # # This is an example (for running in a shell) of using 'nsupdate' (from bind-utils) to tell a running # named (bind, nameserver) to make a dynamic update to a zone. # # It assumes that the /etc/named.conf (or equivalent file) defines a key for permitting # dynamic updates, such as #key keyname { # algorithm hmac-md5; # secret "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" #}; # # The below will feed a list of commands into stdin for 'nsupdate', to remove an existing A-record for # a specified host (without failure if not pre-existing), and add a new one (with a 600 s TTL). nsupdate <