From 2e85e6f9bb0587450d9fea755203538c6dedab13 Mon Sep 17 00:00:00 2001 From: Kilian Ries Date: Thu, 22 Jan 2026 18:13:51 +0100 Subject: [PATCH] Fix zone detection: check for dnssec_status instead of name The error response also contains 'name' in 'zone_name' field, causing false positives. Check for 'dnssec_status' which only exists in valid zone responses. --- dnsapi/dns_opusdns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_opusdns.sh b/dnsapi/dns_opusdns.sh index 19205256..2ef401eb 100755 --- a/dnsapi/dns_opusdns.sh +++ b/dnsapi/dns_opusdns.sh @@ -145,7 +145,7 @@ _get_zone() { fi _debug "Trying: $h" - if _opusdns_api GET "/v1/dns/$h" && _contains "$response" '"name"'; then + if _opusdns_api GET "/v1/dns/$h" && _contains "$response" '"dnssec_status"'; then _zone="$h" _record_name=$(printf "%s" "$domain" | cut -d . -f 1-"$p") [ -z "$_record_name" ] && _record_name="@"