ddns.sh | ||
Dockerfile | ||
LICENSE | ||
README.md |
dnsimple-ddns-docker
Simple Docker container that updates DNSimple with your IPv4 and IPv6 addresses.
Usage
You need to set the following environment variables :
OAUTH_TOKEN
: Your DNSimple OAUTH token. You can make one by logging into DNSimple, clickingAccount
->Access Tokens
. You can also find your account ID here.ACCOUNT_ID
: Your DNSimple Account ID. See instructions above.ZONE_ID
: The domain name of the zoneRECORD_ID
: The ID for the record you want. You can find this by adding the record and then clicking "Edit". It will be the numbers after/records/
(ex.https://dnsimple.com/a/user_id/domains/lmao.ch/records/123456789/edit
has a record ID of123456789
, account ID of145030
and a zone ID oflmao.ch
)
docker build -t dnsimple-ddns .
docker run --rm -it dnsimple-ddns
Ideally, instead of running it everytime you end up needing it, setup a Cron job like : 0 0 1,15 * 0 docker run --rm -it dnsimple-ddns
(every two-ish weeks at midnight).