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