Skip to content

single file dnspod.cn & name.com api manipulator

License

Notifications You must be signed in to change notification settings

liu-kan/pyydnspod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyydnspod

FOSSA Status

Pyydnspod is a single file dnspod.cn and name.com api manipulator, it supports both ipv4 and ipv6.

You can easily update your server's dns records automatically when your server's ip is changed. But please setup your records on web console of https://www.dnspod.cn/ or https://name.com before you use it first time.

replace the code

tid='Your token ID'
token='Your Token'
user_domain ='Your domain'
user_subdomain=['@','www'] #input your subdomain as list

at the beginning of .py file with your own setting.

And run as

python2 pyydnspod.py

Add it to your startup script like rc.local or similar. If your ip will change from time to time when your server is running, add it to cron job by

crontab -e

It gets public ip addresses automatically, supports both ipv4 and ipv6.

License

FOSSA Status

About

single file dnspod.cn & name.com api manipulator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published