Small ruby script to update an A DNS record to match a dynamic IP.
766
Generate an application token and pass it by using the DIGITALOCEAN_ACCESS_TOKEN environment variable. Domain and record are the options passed to the script or can be set as the DOMAIN and RECORD environment variables.
First run bundle install to install the dependencies.
Afterwards run:
DIGITAL_OCEAN_TOKEN=secret ruby dns.rb domain record
docker run -e DIGITALOCEAN_ACCESS_TOKEN=secret -e DOMAIN=example.com -e RECORD= jeroenj/do-dyndns
Content type
Image
Digest
Size
44 MB
Last updated
over 6 years ago
docker pull jeroenj/do-dyndns