aliyun-ddns

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

aliyun-ddns

sync dns record via upstream domain.

Concept

Smart router , NAS can provide free DDNS, but can only provide secondary domain.
If you want to use your own domain ,you can't simply config on that.
The whole point of DDNS is update the record when the ip is changed.
So we can simply use the free DDNS and watch the change of ip.
When the change is made ,we can update our domain record.

Build

go get -u github.com/l1b0k/aliyun-ddns
## arm
CGO_ENABLE=0 GOARCH=arm GOOS=linux go build -o dns main.go

Usage

run with docker

docker run --name ddns -d --restart=always l1b0k/aliyun-ddns --ak= --sk= --domain-name= --domain-rr=@,www

run with systemd

Raspberry Pi demo

sudo cp dns.system /usr/lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable dns
sudo systemctl start dns

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
addr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL