You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dustoair efcdabb802
open src
3 years ago
global open src 3 years ago
util open src 3 years ago
.gitignore open src 3 years ago
config.json open src 3 years ago
ddns_test.go open src 3 years ago
go.mod open src 3 years ago
main.go open src 3 years ago
readme.md open src 3 years ago

readme.md

DDNS for aliyun


build

cd /root
rm -rf ddns
git clone https://git.sre.ink/go/ddns.git
cd ddns
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o ddns main.go
rm -rf /usr/bin/ddns
mv ddns /usr/bin/
ddns

crontab

*/10 * * * * /usr/bin/ddns

build on arm n1

cd /root
rm -rf ddns
git clone https://git.sre.ink/go/ddns.git
cd ddns
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o ddns main.go
rm -rf /usr/bin/ddns
mv ddns /usr/bin/
ddns