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.
alidns/README.md

26 lines
1.1 KiB
Markdown
Raw Normal View History

2020-06-06 19:01:13 +08:00
# alidns
2020-06-06 20:45:51 +08:00
update domain record using AliCloud Go SDK. ip is fetched from http://ip-api.com/json.
更新阿里云域名的解析IP地址。IP地址从http://ip-api.com/json 获取
2020-06-06 19:31:29 +08:00
### Usage
2020-06-06 20:45:51 +08:00
- First, create an AccessKey at https://usercenter.console.aliyun.com/.
2020-06-06 21:00:20 +08:00
- 在[此处](https://usercenter.console.aliyun.com/)申请AccessKey。
2020-06-06 20:45:51 +08:00
- Then fill in `config.json` the AccessKey, AccessSecret, and the domain you want to setup.
2020-06-06 21:00:20 +08:00
-`config.json`文件中填入AccessKey和AccessSecret以及需要更新的域名
2020-06-06 20:45:51 +08:00
- Run `alidns`. If provided correct config file, things should work fine.
2020-06-06 21:00:20 +08:00
- 运行`alidns`程序。如果config.json配置文件信息正确会输出success信息。
2020-06-06 20:45:51 +08:00
> To compile from source
2020-06-06 21:00:20 +08:00
> - 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.*
2020-06-06 20:45:51 +08:00
### Release
2020-06-06 21:00:20 +08:00
Windows
> [alidns.zip](https://github.com/jiacai-wang/alidns/releases/download/v0.1/alidns.x86.zip)
2020-06-06 19:31:29 +08:00
2020-06-06 21:00:20 +08:00
Linux
> [alidns.tar.gz](https://github.com/jiacai-wang/alidns/releases/download/v0.1/alidns.x86.tar.gz)