Dynamic DNS helper for Digital Ocean users to utilize their DO account as a Dynamic DNS resolver.
1.2K
DO-DDNS is a dynamic DNS helper for Digital Ocean users to utilize their DO account as a Dynamic DNS resolver.
docker run --name ddns --rm --env-file=.env -d --restart=always hunterreadca/do-ddns
| ENV Variable | Default | Description |
|---|---|---|
| API_KEY | Required Api Key to update DNS records | |
| DOMAINS | Required JSON String of domains and subdomains. See below. | |
| IPV4_SERVER | https://ipv4.icanhazip.com | Override the IP server lookup to use for ipv4 |
| IPV6_SERVER | None | Override the IP server lookup to use for ipv6 |
| FREQUENCY | 3600 | Frequency to run ddns update in seconds. Set to zeroe if the interval will be managed by cron. |
| TTL | 3600 | Record TTL |
Json String:
DOMAINS=[
{
"domain": "domain1.tld",
"subdomains": [
"sub1.domain1.tld",
"sub2.domain1.tld"
]
},
{
"domain": "domain2.tld",
...
}
]
See .env.sample for an example
Before you proceed, you will need a very recent docker installation, version 20.10.2 or later, recently merged with this pull-request. Otherwise, manually set-up SNAT using ip6tables, or try the other 2 approaches.
To enable ip6tables handling, the experimental flag must be enabled. Put the following in /etc/docker/daemon.json or adjust to fit:
{
"ipv6": true,
"fixed-cidr-v6": "fd00:ffff::/80",
"ip6tables": true,
"experimental": true
}
Then, restart the docker daemon:
sudo service docker restart.
Content type
Image
Digest
sha256:b9cbf0a02…
Size
25.3 MB
Last updated
6 months ago
docker pull hunterreadca/do-ddns