Skip to content

Latest commit

 

History

History
executable file
·
31 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

executable file
·
31 lines (23 loc) · 1.22 KB

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