A tiny daemon that monitors the host's public IP for changes and updates one or more records in Amazon Route 53.
This can be used to implement dynamic DNS for your own domains.
> ddns-route53 example1.com test.example2.com
[2024-09-20 19:24:12] Public IP is 123.123.123.123.
[2024-09-20 19:24:12] Updated `example1.com` to 123.123.123.123.
[2024-09-20 19:24:12] Updated `test.example2.com` to 123.123.123.123.
services:
app:
image: alexfrydl/ddns-route53
command:
- example1.com
- example2.com
environment:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_REGION: us-east-1
restart: unless-stoppedAWS credentials are loaded from the environment. Every five minutes, the daemon uses ipify.org to determine the host's current public IP. Whenever the IP changes, the daemon updates the A records of the domain names given as command line arguments.