阿里云域名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
2020-06-06 19:55:30 +08:00
.github/workflows Create go.yml 2020-06-06 19:10:18 +08:00
alidns.go Add files via upload 2020-06-06 19:00:20 +08:00
config.json sample config file 2020-06-06 19:07:09 +08:00
LICENSE Create LICENSE 2020-06-06 19:41:03 +08:00
README.md Update README.md 2020-06-06 19:55:30 +08:00

alidns

update domain record using AliCloud Go SDK.

Usage

  • First, install Aliyun Go SDK by running go get github.com/aliyun/alibaba-cloud-sdk-go/services/alidns.
  • Create a AccessKey at https://usercenter.console.aliyun.com/.
  • Fill in config.json the AccessKey, secret, and the domain you'd setup.
  • To compile, just run go build alidns.go. Run go mod init alidns first if needed.
  • If provided correct config file, things should work fine.

ip is fetched from http://ip-api.com/json