aliddns -c /path/to/config/file/aliddns.yaml
or just:
aliddns
(use default config file: ./aliddns.yaml)
or:
aliddns run -i myid -k mykey -m iothub.cloud -s www -c 60
-i {AccessId} -k {AccessKey} -m {MainDomain} -s {SubDomainName} -c {CheckUpdateInterval}
You can install the pre-compiled binary (in several different ways), use Docker.
Here are the steps for each of them:
homebrew tap :
$ brew install OpenIoTHub/tap/aliddns
homebrew (may not be the latest version):
$ brew install aliddns
snapcraft:
$ sudo snap install aliddns
config file path: /root/snap/aliddns/current/aliddns.yaml
edit config file then:
sudo snap restart aliddns
scoop:
$ scoop bucket add OpenIoTHub https://github.com/OpenIoTHub/scoop-bucket.git
$ scoop install aliddns
deb/rpm:
Download the .deb
or .rpm
from the releases page and
install with dpkg -i
and rpm -i
respectively.
config file path: /etc/aliddns/aliddns.yaml
edit config file then:
sudo systemctl restart aliddns
Shell script:
$ curl -sfL https://install.goreleaser.com/github.com/OpenIoTHub/aliddns.sh | sh
manually:
Download the pre-compiled binaries from the releases page and copy to the desired location.
You can also use it within a Docker container. To do that, you'll need to execute something more-or-less like the following:
$ docker run openiothub/aliddns:latest run -i {AccessId} -k {AccessKey} -m {MainDomain} -s {SubDomainName} -c {CheckUpdateInterval}
example:
$ docker run openiothub/aliddns:latest run -i myid -k mykey -m iothub.cloud -s www -c 60
Note that the image will almost always have the last stable Go version.