https://github.com/esrrhs/tcloud-cns-tool
腾讯云-域名解析-查询设置-工具
https://github.com/esrrhs/tcloud-cns-tool
Last synced: 2 months ago
JSON representation
腾讯云-域名解析-查询设置-工具
- Host: GitHub
- URL: https://github.com/esrrhs/tcloud-cns-tool
- Owner: esrrhs
- License: mit
- Created: 2020-07-14T04:30:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T06:08:38.000Z (about 2 years ago)
- Last Synced: 2025-01-20T22:11:10.030Z (4 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tcloud-cns-tool
[
](https://github.com/esrrhs/tcloud-cns-tool)
[](https://github.com/esrrhs/tcloud-cns-tool)
[](https://goreportcard.com/report/github.com/esrrhs/tcloud-cns-tool)
[](https://github.com/esrrhs/tcloud-cns-tool/releases)
[](https://github.com/esrrhs/tcloud-cns-tool/releases)
[](https://hub.docker.com/repository/docker/esrrhs/tcloud-cns-tool)
[](https://github.com/esrrhs/tcloud-cns-tool/actions)
腾讯云-域名解析-查询设置-工具,
代码修改自[tcloud-cns](https://github.com/sjatsh/tcloud-cns)# 编译
```
# git clone https://github.com/esrrhs/tcloud-cns-tool.git
# cd tcloud-cns-tool
# go build
```# 使用
* 去腾讯云申请API密钥,地址:[capi](https://console.cloud.tencent.com/cam/capi),拿到```SecretId```、```SecretKey```
* 查询名下域名解析
```
# ./tcloud-cns-tool -secretId xxxx -secretKey yyyy -domain yourdomain.com -l
```
* 设置域名解析,内部实现会先删除再添加
```
# ./tcloud-cns-tool -secretId xxxx -secretKey yyyy -domain yourdomain.com -s -name test -value 1.2.3.4
```