A script that pushes the public IP address of the running machine to DigitalOcean's DNS API's. It requires an existing A (or AAAA) record to update. The resulting container image is roughly around 7 MB (thanks to Alpine Linux).
Assuming you already have a DigitalOcean account and your domain associated with it. Just add an A record with desired name and IP address. That's it!
Pick one of the options below using the following settings:
foo.com for home.foo.com)home for home.foo.com). Multiple subdomains must be separated by semicolons ;"true", removes extra DNS records if more than one A record is found on a subdomain. Note that if this is not enabled, the script will NOT update subdomains with more than one A record (default: false)$ docker pull compscidr/digitalocean-dyndns
$ docker run -d --name dyndns \
-e DIGITALOCEAN_TOKEN="your_token_here" \
-e DOMAIN="yourdomain.com" \
-e NAME="subdomain" \
-e SLEEP_INTERVAL=2 \
-e REMOVE_DUPLICATES="true" \
compscidr/digitalocean-dyndns
You can also create a cronjob using below command:
$ DIGITALOCEAN_TOKEN="your_token_here" DOMAIN="yourdomain.com" NAME="subdomain" SLEEP_INTERVAL=2 ./dyndns.sh
Content type
Image
Digest
sha256:4e1e290a6…
Size
7 MB
Last updated
12 months ago
docker pull compscidr/digitalocean-dyndns