Sign inSign up

atomys/dns-updater

By atomys

•Updated over 3 years ago

Simple application that updates your DNS entries automatically each time your IP changes.

Image
0

1.2K

atomys/dns-updater repository overview

⁠DNS-Updater

Simple application in Golang that retrieves your ip and updates your DNS entries automatically each time your IP changes.

⁠Motivation

Having a lab at home. behind an ip which is dynamic, I could not keep a static DNS entry, since at each change of IP I have to change the DNS entries of all my domains.

So I wrote this little program one afternoon in order to get rid of this manual task which, when it occurred when I was not at home, was very annoying, imagine you can no longer watch plex while you are with your date. Unthinkable

⁠Usage

To use it, its really simple (3 steps)

⁠Step 1 : Configure your updater.yaml
# Interval at which the program will check if your IP has changed
ipFetchInterval: 30s

# Records entries define the rules to follow when found an ip change
records:
- #  name of the provider to use. Must be registered
  provider: ovh
  # domain to update
  domain: example.space
  # when your record is on a subdomain enter the name of
  # the sub domain here without domain extension
  # `awesome.example.space` must be `awesome`
  subDomain: null
  # Type of the record. Actually must be A or AAAA only
  type: A

You need to mount this file on config/updater.yaml to override default configuration file

⁠Step 3: Configure provider authentication data through env
Provider NameProvider SiteEnvironment Variables
ovhhttps://ovh.com⁠OVH_APPLICATION_KEY Your OVH Application Key
OVH_APPLICATION_SECRET Your OVH Apllication Secret
OVH_CONSUMER_KEY Your Consumer Key

Tag summary

Content type

Image

Digest

sha256:2487d12ec…

Size

7.8 MB

Last updated

over 3 years ago

docker pull atomys/dns-updater