#cli #aws #route53 #ddns

bin+lib r53ddns

a command-line utility to update A record in Route53 with current global IP address

1 stable release

1.0.0 Mar 12, 2020

#9 in #ddns

MIT/Apache

26KB
451 lines

r53ddns

Actions Status Actions Status Crates.io Crates.io Docker Cloud Automated build Docker Cloud Build Status

r53ddns is a simple command-line utility to update A record in Route53 with current global IP address.

Installation

Download the latest compiled binary from links below and put it in your executable path.

Platform Download
Linux 64-bit r53ddns-x86_64-unknown-linux-musl
macOS 64-bit r53ddns-x86_64-apple-darwin
Windows 64-bit r53ddns-x86_64-pc-windows-msvc.exe

with Cargo

$ cargo install r53ddns

with Docker

$ alias r53ddns="docker run coorde/r53ddns"

Example configuration

r53ddns works very well even in non-user environments. The following is an example systemd.service(5) file to execute r53ddns.

[Unit]
Description=Update DDNS
# OnFailure=notify-failure@%n.service

[Service]
Type=Simple
ExecStart=/path/to/r53ddns -l Info -k <key id> -s <key secret> -z <zone id> -n <record name>

[Install]
WantedBy=multi-user.target

You can run this service daily using systemd.timer(5) to be up-to-date.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~19MB
~393K SLoC

ySj^