From 86a620f644ae5a57022bddb6d7ee98a263143a35 Mon Sep 17 00:00:00 2001 From: Max Berger Date: Mon, 30 Oct 2023 20:14:40 +0100 Subject: [PATCH] ddns-scripts: Fix Route53 provider This fixes the Invalid Resource Record: FATAL problem: ARRDATAIllegalIPv4Address error message described in https://forum.openwrt.org/t/route53v1-script-error/160068 Maintainer: @chris5560, @maxberger, @dibdot Tested: Checked on local system Signed-off-by: Max Berger --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 61ceef8632..607152a1c7 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.8.2 -PKG_RELEASE:=41 +PKG_RELEASE:=42 PKG_LICENSE:=GPL-2.0 diff --git a/net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh b/net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh index 499f272031..0d474051ee 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh @@ -11,9 +11,10 @@ ENDPOINT="route53.amazonaws.com" RECORD_TTL=300 RECORD_NAME="${lookup_host}." +RECORD_VALUE="${__IP}" [ ${use_ipv6} -eq 0 ] && RECORD_TYPE="A" [ ${use_ipv6} -eq 1 ] && RECORD_TYPE="AAAA" -RECORD_VALUE="${LOCAL_IP}" + HOSTED_ZONE_ID="${domain}" API_PATH="/2013-04-01/hostedzone/${HOSTED_ZONE_ID}/rrset/" -- 2.30.2