Sign inSign up

hunterreadca/do-ddns

By hunterreadca

•Updated 6 months ago

Dynamic DNS helper for Digital Ocean users to utilize their DO account as a Dynamic DNS resolver.

Image
0

1.2K

hunterreadca/do-ddns repository overview

⁠DO-DDNS

DO-DDNS is a dynamic DNS helper for Digital Ocean users to utilize their DO account as a Dynamic DNS resolver.

⁠Run

docker run --name ddns --rm --env-file=.env -d --restart=always hunterreadca/do-ddns

⁠Environment variables
ENV VariableDefaultDescription
API_KEYRequired Api Key to update DNS records
DOMAINSRequired JSON String of domains and subdomains. See below.
IPV4_SERVERhttps://ipv4.icanhazip.com⁠Override the IP server lookup to use for ipv4
IPV6_SERVERNoneOverride the IP server lookup to use for ipv6
FREQUENCY3600Frequency to run ddns update in seconds. Set to zeroe if the interval will be managed by cron.
TTL3600Record TTL
⁠Domain config

Json String:

DOMAINS=[
    {
        "domain": "domain1.tld", 
        "subdomains": [
            "sub1.domain1.tld",
            "sub2.domain1.tld"
        ]
    },
    {
        "domain": "domain2.tld",
        ...
    }
]

See .env.sample for an example

⁠IPv6 Support in Docker

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.

Tag summary

Content type

Image

Digest

sha256:b9cbf0a02…

Size

25.3 MB

Last updated

6 months ago

docker pull hunterreadca/do-ddns