From b596ec2a0fa8e5579eae34036a13d22f80410628 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Mon, 2 Dec 2019 07:10:53 +0000 Subject: [PATCH] add update-dns.sh script --- update-dns.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 update-dns.sh diff --git a/update-dns.sh b/update-dns.sh new file mode 100644 index 0000000..884bf57 --- /dev/null +++ b/update-dns.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -eux + +ip=$(wget https://checkip.amazonaws.com/ -O - -q) + +zone_id=$(aws route53 list-hosted-zones | jq -S '.HostedZones | .[] | select( .Name == "maxregan.me." ) | .Id' -r) + +batch=$(cat <