From 2c7201288a6b10c7aa29e0f46a0d48db59659998 Mon Sep 17 00:00:00 2001 From: rskntroot Date: Thu, 13 Feb 2025 20:41:52 -0700 Subject: [PATCH] add systemd instructions --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd15e30..1834055 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # r53-ddns +[https://github.com/rskntroot/r53-ddns](https://github.com/rskntroot/r53-ddns) + Route53 Dynamic DNS ## Brief @@ -28,7 +30,7 @@ If so, this is for you. 1. in aws, create IAM user, attach policy, generate access keys for automated service 1. log into aws cli with the account you created above ``` - aws sso login --profile + aws configure ``` 1. setup link in `/usr/bin` ``` zsh @@ -55,7 +57,20 @@ Options: -h, --help Print help ``` -### Example +### Service + +``` zsh +export DNS_ZONE_ID=YOUR-DNS-ZONE-ID +export DOMAIN_NAME=YOUR-DOMAIN-NAME +export USER=$(whoami) +``` + +``` zsh +envsubst < r53-ddns.service | sudo tee -a /etc/systemd/system/r53-ddns.service +sudo systemctl daemon-reload +sudo systemctl start r53-ddns.service +sudo systemctl status r53-ddns.service +``` ``` $ systemctl status r53-ddns.service @@ -86,4 +101,3 @@ To be able to handle errors in the future. > wen IPv6? It should work with IPv6. -