GitHub - https://github.com/fourthdimension/docker-dynamic-dns-digitalocean/
Author Site - https://www.the4d.ca/
Digital Ocean API - https://developers.digitalocean.com/documentation/v2/#domain-records
For Domain Records (DNS) hosted with DigitalOcean, this script will allow you to update the IP address for an A
record of a subdomain. Uses Digital Ocean (v2) API.
To build the Docker image, simply run Docker build:
docker build --no-cache --tag docker-dynamic-dns-digitalocean .
To use the image, use Docker run:
docker run -it --rm --name dydns-do -e DIGITALOCEAN_TOKEN="XXXXXXXXXXXXXXXXXXXXXX" -e DOMAIN="example.com" -e NAME="subdomain" docker-dynamic-dns-digitalocean
To use the image, run Docker in the background and restart always:
docker run -dit --restart always --name dydns-do -e DIGITALOCEAN_TOKEN="XXXXXXXXXXXXXXXXXXXXXX" -e DOMAIN="example.com" -e NAME="subdomain" docker-dynamic-dns-digitalocean
-
DIGITALOCEAN_TOKEN: Required. The username for the service.
-
DOMAIN: Required. The domain name.
-
NAME: Required. The subdomain name that you are updating.
-
INTERVAL: [OPTIONAL] Specify in how often the script should call the update services in seconds. Default is 21600 seconds (6hrs).
Comment below if there are any issues or new features that you'd like to see.