Skip to content

Jmainguy/ibsdns

Repository files navigation

ibsdns

InternetBS DNS Updater

Why?

My buddy Keenan wanted to update home.example.com to point to his IP at home, however he has a dynamic IP provided to home and so he needed a way to keep it current. He was insistent on using InternetBS as compared to Route53 as he believed it would be less expensive (free basically)

So I made this for him, though I did it in a way where it can be used by anyone with a InternetBS api key, and a static host to ssh to and run the update tool from (internetBS limits their IP to a static IP you provide ahead of time)

HowTo

On server at home (or where the IP will be dynamicly changing) you need to add grabDynamicIp.sh to a cronjob, like once every 5 minutes perhaps

*/5 * * * * /home/kmosdell/dynamicDNS/grabDynamicIp.sh remoteHost.example.com >> /home/exampleUser/dynamicDNS/dnsLog.txt 2>&1

On remotehost add ibsdns binary to /usr/local/bin/ibsdns and edit /opt/ibsdns/config.yaml for your values.

Ensure passwordless ssh is setup from home to remote host, and that the user can read /opt/ibsdns/config.yaml

Build

export GO111MODULE=on
go mod init
go build

About

Use internet.bs as a dynamic DNS updater

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published