Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
95 - 1
#!/bin/sh
2
#
3
# This script provides support for dynamic DNS update in Microsoft Azure
4
# cloud. To enable this feature, change the configuration variables below
5
# and make the script executable.
6
 
7
primary_interface="eth0"
8
required_domain="mydomain.local"
9
 
10
[ "$interface" == "$primary_interface" ] || exit
11
 
12
case "$reason" in
13
BOUND|RENEW|REBIND|REBOOT)
14
    fqdn="`hostname`.$required_domain"
15
    nsupdate <<EOF
16
update delete $fqdn a
17
update add $fqdn 3600 a $new_ip_address
18
send
19
EOF
20
    ;;
21
esac