Blame | Last modification | View Log | RSS feed
#!/bin/sh## This script provides support for dynamic DNS update in Microsoft Azure# cloud. To enable this feature, change the configuration variables below# and make the script executable.primary_interface="eth0"required_domain="mydomain.local"[ "$interface" == "$primary_interface" ] || exitcase "$reason" inBOUND|RENEW|REBIND|REBOOT)fqdn="`hostname`.$required_domain"nsupdate <<EOFupdate delete $fqdn aupdate add $fqdn 3600 a $new_ip_addresssendEOF;;esac