An open API service indexing awesome lists of open source software.

https://github.com/chyroc/aliyun-ddns


https://github.com/chyroc/aliyun-ddns

Last synced: about 1 year ago
JSON representation

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
```