From c38556b7f41a11541fbe975415e9878601f1f552 Mon Sep 17 00:00:00 2001 From: jiacai_wang Date: Sat, 6 Jun 2020 20:45:51 +0800 Subject: [PATCH] Update README.md --- README.md | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e9eb358..40633c6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,25 @@ # alidns -update domain record using AliCloud Go SDK. +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, install Aliyun Go SDK by running `go get -u github.com/aliyun/alibaba-cloud-sdk-go/sdk`. -- 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. +- First, create an AccessKey at https://usercenter.console.aliyun.com/. +> - 在[此处](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信息。 -ip is fetched from http://ip-api.com/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](https://github.com/jiacai-wang/alidns/releases/download/v0.1/alidns.x86.zip) + +##### Linux +>> [alidns.tar.gz](https://github.com/jiacai-wang/alidns/releases/download/v0.1/alidns.x86.tar.gz)