Skip to content

wzsh/dnspod_ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Update DDNS record of dnspod (Python 2.x)

As an user of dnspod.com (international), updating sub-domain's ip address is a common operation.

This script can update ip address of your sub-domain on dnspod automatically.

Usage

You need to change the variables as shown below:

    domain = 'yourdomain.com'
    record = 'your subdomain like (www)'
    email = 'your dnspod account'
    password = 'your dnspod password'

A cron job example

if you wanna execute this script per hour:

$ crontab -e

1 */1 * * * /usr/bin/python /home/pi/update_ip.py >> /home/pi/update_ip.log

Notice

如果你使用的是国内版DNSPOD, 请尝试BASE_URL替换为国内版api地址(https://dnsapi.cn)

About

Update DDNS record of DNSPOD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages