https://github.com/chyroc/aliyun-ddns
https://github.com/chyroc/aliyun-ddns
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chyroc/aliyun-ddns
- Owner: chyroc
- License: apache-2.0
- Created: 2023-02-10T06:00:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T03:34:45.000Z (about 3 years ago)
- Last Synced: 2025-03-26T21:38:06.871Z (over 1 year ago)
- Language: Go
- Size: 20.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aliyun-ddns
DDNS Tool, Automatically Update Your Public IP to Aliyun DNS.
## Install
```shell
go install github.com/chyroc/aliyun-ddns@latest
```
## Usage
- *Set DNS Record*
```shell
aliyun-ddns set \
-access-key-id \
-access-key-secret \
-domain \
-rr \
-ip
```
will update `rr.domain` to `ip`.
`access-key-id` and `access-key-secret` is aliyun credential, can use the environment variable `ALIYUN_ACCESS_KEY_ID` and `ALIYUN_ACCESS_KEY_SECRET` instead
- *Get DNS Record*
```shell
aliyun-ddns get \
-access-key-id \
-access-key-secret \
-domain \
-rr
```
- *Auto Update*
```shell
aliyun-ddns auto-update \
-access-key-id \
-access-key-secret \
-domain \
-rr \
-ip-type ipv4/ipv6
```