yum -y install epel-release && yum -y update
yum -y install ddclient
mv /etc/ddclient.conf /etc/ddclient.conf.original
cat > /etc/ddclient.conf <<EOF
daemon=300 # Time, in seconds, to check for IP change and to send update
ssl=yes # Whether to use ssl to send update; you want this
use=web, web=checkip.dyndns.com/, web-skip='IP Address' # Leave these settings as is
protocol=namecheap # This tells ddclient that we are using namecheap
server=dynamicdns.park-your-domain.com # Server name for namecheap's dynmic dns service; do not modify
login=your-domain-name.com # Your root domain name that you want to update dynamic dns on
password=randomstringofcharacters # This is your dynamic dns password, provided by namecheap
hostname.your-domain-name.com # OPTIONALLY, set a HOST value if you want to apply this to a sub-domain
EOF
systemctl enable ddclient
systemctl start ddclient
网友评论