ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Gateway/dhclient-exit-hooks
(Generate patch)

Comparing FreeBSDAdmin/DNS/dhclient-exit-hooks.in (file contents):
Revision 934 by douglas, 2007-07-03T20:12:54-07:00 vs.
Revision 935 by douglas, 2007-07-03T23:09:59-07:00

# Line 11 | Line 11
11  
12   case $reason in
13   BOUND|RENEW|REBIND|REBOOT)
14 <        if [ "$old_ip_address" != "$new_ip_address" ]; then
15 <                nsupdate -d <<-EOF
16 <                key $key $secret
17 <                update delete $hostname A
18 <                update add $hostname 3600 A $new_ip_address
19 <                send
20 <                EOF
21 <        fi
14 >        nsupdate -d <<-EOF
15 >        key $key $secret
16 >        update delete $hostname A
17 >        update add $hostname 3600 A $new_ip_address
18 >        send
19 >        EOF
20          ;;
21   esac

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines