ddclient

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容