From 31387fd8bd100d4082a36c959d4121c2a29ae3a1 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 27 Jan 2022 13:26:20 -0800 Subject: [PATCH] more content->record fixes --- bin/pdns-record-rep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pdns-record-rep.sh b/bin/pdns-record-rep.sh index 4c7f1cd..e9e6ac0 100755 --- a/bin/pdns-record-rep.sh +++ b/bin/pdns-record-rep.sh @@ -89,10 +89,10 @@ if [[ $zone_status = 200 ]]; then data="{\"rrsets\":[{\"name\":\"$name\",\"type\":\"$type\",\"ttl\":$ttl,\"changetype\":\"REPLACE\",\"records\":[" - # turn content in to array of records + # turn record in to array of records orig_ifs="$IFS" IFS='|' - read -r -a resourcerecords <<< "$content" + read -r -a resourcerecords <<< "$record" IFS="$orig_ifs" # get number of records in set