jparadasb / do-dns-updater

This project is a basic bash script to register the current public IP in a DNS using Digital Ocean API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

do-dns-updater Build Status

About this Image

This container is useful as dynamic DNS, to keep updated the DNS records with the IP assigned by your ISP.

Use the Digital Ocean Network API

How to use

  • Point your domains to Digital Ocean using the nameservers n1.digitalocean.com n2.digitalocean.com n3.digitalocean.com

  • Create the domain in the Networking menu and add a new A Record, take note of the ID.

  • Genetare Personal access tokens in API > Tokens/Keys and store them in a safe place.

  • Run the container with right EVN vars

docker run -e 'DOMAINS_INFO=domain1,domain2,domain3' -e 'RECORDS_IDS=id1,id2,id3' -e 'DO_API_KEY=your_personal_token' -name dns-updater --restart always jparadasb/do-dns-updater:latest

Disclaimer

This container just allow to update one record per domain

About

This project is a basic bash script to register the current public IP in a DNS using Digital Ocean API.


Languages

Language:Shell 93.6%Language:Dockerfile 6.4%