A small nodejs tool that dynamically updates a DNS record on Digital Ocean based on your public ip
MIT License
A small nodejs tool that dynamically updates a DNS record on Digital Ocean based on your public ip.
Useful for when you have services running behind a NAT with a dynamic public IP.
Set your configuration using the specified env vars or using the config.js
file:
DOMAIN='root.domain.i.want.to.check'
RECORD='record.to.insert'
DO_TOKEN='Your Digital Ocean personal access token'
If you have docker
and bash
it's as easy as:
DO_TOKEN="123456789" DOMAIN="jgantunes.com" RECORD="test" RUN=1 ./build.sh
This will ensure an A
record is created for test
under your jgantunes.com
domain resource.
If you only have docker
just run the appropriate docker setup with the provided Dockerfile.
To run the project using Node just install the deps:
npm i
# or yarn
And run the project with the appropriate configuration:
DO_TOKEN="123456789" DOMAIN="jgantunes.com" RECORD="test" npm start
# or yarn start
This project uses standard js.
MIT