]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Unbreak pdnsutil invocation after #14984 merge 15847/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 16 Jul 2025 05:56:55 +0000 (07:56 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 16 Jul 2025 06:29:17 +0000 (08:29 +0200)
(pdnsutil {add-record,delete-rrset}: require NAME to be absolute)

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
regression-tests/tests/5dyndns-restore-zone/command
regression-tests/tests/pdnsutil-increase-serial-inception-epoch/command
regression-tests/tests/pdnsutil-increase-serial/command

index 54989fe523a684cbaadf24895e40ea9c5de1ee93..1af74d3a82527ba899afcb0a9265d3af9301897e 100755 (executable)
@@ -11,6 +11,6 @@ for zone in test.dyndns sub.test.dyndns
 do
     zonewithvariant=${zone}${plusvariant}
     $PDNSUTIL --config-dir=. --config-name=$backend \
-        replace-rrset ${zonewithvariant} @ SOA "ns1.test.dyndns ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
+        replace-rrset ${zonewithvariant} ${zone} SOA "ns1.test.dyndns ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
         > /dev/null
 done
index ef2cee01548591c1e25fc269adc9c2cc4ac6b88c..999a35e4b5a66d008cfb0a25fbb197b5f9d941dd 100755 (executable)
@@ -14,7 +14,7 @@ NOW=$(date +%s)
 
 # lower SOA so that the test makes sense
 $PDNSUTIL --config-dir=. --config-name=$backend \
-    replace-rrset ${zonewithvariant} @ SOA "ns1.${zone} ahu.example.dyndns 10 28800 7200 604800 86400" \
+    replace-rrset ${zonewithvariant} ${zone} SOA "ns1.${zone} ahu.example.dyndns 10 28800 7200 604800 86400" \
     > /dev/null
 
 $PDNSUTIL --config-dir=. --config-name=$backend list-zone ${zonewithvariant} | grep SOA
@@ -39,5 +39,5 @@ $PDNSUTIL --config-dir=. --config-name=$backend set-meta ${zonewithvariant} SOA-
 
 # restore old SOA
 $PDNSUTIL --config-dir=. --config-name=$backend \
-    replace-rrset ${zonewithvariant} @ SOA "ns1.${zone} ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
+    replace-rrset ${zonewithvariant} ${zone} SOA "ns1.${zone} ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
     > /dev/null
index 560906a029e68fdc68f204fe57ee28a57f901599..be996076fe70318ac019c404c104b38937cdbb9b 100755 (executable)
@@ -18,5 +18,5 @@ mysqldiff 1 "Check that ${zonewithvariant}. still has a valid ordername"
 
 # restore old SOA
 $PDNSUTIL --config-dir=. --config-name=$backend \
-    replace-rrset ${zonewithvariant} @ SOA "ns1.${zone} ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
+    replace-rrset ${zonewithvariant} ${zone} SOA "ns1.${zone} ahu.example.dyndns 2012060701 28800 7200 604800 86400" \
     > /dev/null