Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arloor/ddns
自动识别ip变更,并更新dnspod的域名解析
https://github.com/arloor/ddns
Last synced: 1 day ago
JSON representation
自动识别ip变更,并更新dnspod的域名解析
- Host: GitHub
- URL: https://github.com/arloor/ddns
- Owner: arloor
- Created: 2022-01-26T02:55:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T12:48:32.000Z (19 days ago)
- Last Synced: 2024-09-14T22:56:58.981Z (19 days ago)
- Language: Rust
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 调用Dnspod的api来做ddns
从环境变量中读取dnspod的token和域名
```shell
export dnspod_token="xxxxxx,594xxxxxxxxxxxxxxxxxxxx73"
export dnspod_domain="example.com"
export dnspod_subdomain="www"
export dnspod_ip_url="https://bwg.arloor.dev:444/ip" ## 查询ip的url,可以不指定
```## Systemd配置
```shell
cat > /lib/systemd/system/ddns.service < /opt/ddns/env <