阿里云域名DNS更新
This repository has been archived on 2023-12-12. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2021-05-15 01:56:20 +08:00
.github/workflows Create go.yml 2020-06-06 19:10:18 +08:00
.drone.yml test os definition 2021-04-30 22:22:24 +08:00
alidns.go fix bug that newly appended domain in config is skipped. 2021-05-15 01:56:20 +08:00
config.json add support for multiple records. 2021-04-23 23:09:04 +08:00
LICENSE Create LICENSE 2020-06-06 19:41:03 +08:00
README.md update README 2020-12-26 14:08:27 +08:00

alidns

update domain record using AliCloud Go SDK. ip is fetched from http://ip-api.com/json.

更新阿里云域名的解析IP地址。IP地址从http://ip-api.com/json 获取

Usage

  • 此处申请AccessKey。

  • config.json文件中填入AccessKey和AccessSecret以及需要更新的域名、主机记录。

  • 运行alidns程序。如果config.json配置文件信息正确会输出success信息。

  • (默认配置文件为./config.json,如需自定义配置文件,执行alidns -config /path/to/config.json)

  • First, create an AccessKey at https://usercenter.console.aliyun.com/.

  • Then fill in config.json the AccessKey, AccessSecret, and the domain you want to setup.

  • Run alidns. If provided correct config file, things should work fine.

  • (config file defaults to ./config.json. To specify another config file, run alidns -config /path/to/config.json)

To compile from source

  • Install Aliyun Go SDK by running go get -u github.com/aliyun/alibaba-cloud-sdk-go/sdk.
  • Run go build alidns.go. Run go mod init alidns if needed.

Release

Windows

alidns.zip

Linux

alidns.tar.gz