DDNS Tool, Automatically Update Your Public IP to Aliyun DNS.
go install github.com/chyroc/aliyun-ddns@latest
- Set DNS Record
aliyun-ddns set \
-access-key-id <access-key-id> \
-access-key-secret <access-key-secret> \
-domain <domain> \
-rr <rr> \
-ip <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
aliyun-ddns get \
-access-key-id <access-key-id> \
-access-key-secret <access-key-secret> \
-domain <domain> \
-rr <rr>
- Auto Update
aliyun-ddns auto-update \
-access-key-id <access-key-id> \
-access-key-secret <access-key-secret> \
-domain <domain> \
-rr <rr> \
-ip-type ipv4/ipv6