1.1 KiB
1.1 KiB
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
- First, create an AccessKey at https://usercenter.console.aliyun.com/.
- 在此处申请AccessKey。
- Then fill in
config.json
the AccessKey, AccessSecret, and the domain you want to setup. - 在
config.json
文件中填入AccessKey和AccessSecret,以及需要更新的域名 - Run
alidns
. If provided correct config file, things should work fine. - 运行
alidns
程序。如果config.json配置文件信息正确,会输出success信息。
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
. Rungo mod init alidns
if needed.
Release
Windows
Linux