Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arloor/ddns

自动识别ip变更,并更新dnspod的域名解析
https://github.com/arloor/ddns

Last synced: 1 day ago
JSON representation

自动识别ip变更,并更新dnspod的域名解析

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 <