pyydnspod
所属分类:TCP/IP协议栈
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2020-11-23 13:34:34
上 传 者:
sh-1993
说明: 单个文件dnspod.cn&name.com api操纵器,
(single file dnspod.cn & name.com api manipulator,)
文件列表:
LICENSE (1074, 2020-11-23)
docker/ (0, 2020-11-23)
docker/Dockerfile (171, 2020-11-23)
docker/Makefile (83, 2020-11-23)
pyydnspod.py (9447, 2020-11-23)
# pyydnspod
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fliu-kan%2Fpyydnspod.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fliu-kan%2Fpyydnspod?ref=badge_shield)
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
``` python
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
``` bash
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
``` bash
crontab -e
```
It gets public ip addresses automatically, supports both ipv4 and ipv6.
## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fliu-kan%2Fpyydnspod.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fliu-kan%2Fpyydnspod?ref=badge_large)
近期下载者:
相关文件:
收藏者: