This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#$Id: keepalivepin,v 1.2 2006/02/27 07:30:41 hmy Exp hmy $ | |
#use dig check the powerdns's status. | |
#in the dns database,have a IN TXT RR keepalivepin.vmmatrix.net,content is "AaBbCcDdEeFf" | |
# Source: http://puppet-manifest-share.googlecode.com/svn/trunk/vmx-puppet/modules/lvs/files/keepalived.dns-pin | |
# | |
RR=keepalivepin.vmmatrix.net | |
[ $# -le 1 ]&&{ echo "usage: ${0} -h <ip>"; exit 126;} | |
while getopts "h:" OPT;do | |
case $OPT in |