#!/bin/sh # DHCP Client Exit Hooks # # Douglas Thrift # # $Id$ %%key%% %%secret%% %%hostname%% case $reason in BOUND|RENEW|REBIND|REBOOT) if [ "$old_ip_address" != "$new_ip_address" ]; then nsupdate -d <<-EOF key $key $secret update delete $hostname A update add $hostname 3600 A $new_ip_address send EOF fi ;; esac