Awsdyndns is a dynamic dns tool that updates a Route53 hostname with the current public IP of the caller. The way I use awsdyndns is by installing it on a RaspberryPi and running the program on a 10 minute cron.
Public IP is obtained via ipify.
Download the latest release for your system, rename it to awsdyndns and put it into your path.
cd ~/Downloads
curl -O https://github.com/jsfour/awsdyndns/releases/download/v1/awsdyndns-v1-darwin-amd64
chmod +x ./awsdyndns-v1-darwin-amd64
sudo mv ./awsdyndns-v1-darwin-amd64 /usr/local/bin/awsdyndns
awsdyndns -h
git clone [email protected]:jsfour/awsdyndns.git
cd awsdyndns
make all
Setup your AWS_ACCESS_KEY
and AWS_SECRET_KEY
from AWS. Make sure that this account has permissions to the Route53 zone that you want to modify.
Once you have configured the AWS_ACCESS_KEY
, and AWS_SECRET_KEY
environment variables just run awsdyndns
.
$ awsdyndns -d my.host.com. -z ZONEID // don't forget the trailing `.` on the hostname.
Updating dns
$ awsdyndns -h
Usage of awsdyndns:
-d, --dnshostname string Hostname on the zone id to update
-z, --zoneid string Route 53 zone id
Variable |
---|
AWS_ACCESS_KEY_ID |
AWS_SECRET_ACCESS_KEY |