Public | Automated Build

Last pushed: 4 months ago
Short Description
Dynamic DNS using DigitalOcean's DNS Services
Full Description

Dynamic DNS using DigitalOcean's DNS Services

A script that pushes the public IP address of the running machine to DigitalOcean's DNS API's. It requires an existing A 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:

  • DIGITALOCEAN_TOKEN: The token you generate in DigitalOcean's API settings.
  • DOMAIN: The domain your subdomain is registered at. (i.e. for
  • NAME: Subdomain to use. (name in A record) (i.e. home for
  • SLEEP_INTERVAL: Polling time in seconds. (default: 300)

Docker (Recommended)

$ docker pull tunix/digitalocean-dyndns
$ docker run -d --name dyndns \
    -e DIGITALOCEAN_TOKEN="your_token_here" \
    -e DOMAIN="" \
    -e NAME="subdomain" \


You can also create a cronjob using below command:

$ DIGITALOCEAN_TOKEN="your_token_here" DOMAIN="" NAME="subdomain" SLEEP_INTERVAL=2 ./
Docker Pull Command
Source Repository