From 4e1a3cc19e552808272b4b86194512000fb2e225 Mon Sep 17 00:00:00 2001 From: Paul Morgan Date: Sat, 11 Nov 2023 12:44:35 +0000 Subject: [PATCH] Fix managed zone lookup to ensure correct domain is selected where there are two domains with the same ending e.g. example.com and thisisanexample.com --- certbot_dns_ionos/dns_ionos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot_dns_ionos/dns_ionos.py b/certbot_dns_ionos/dns_ionos.py index 697bb68..a7f3f3e 100644 --- a/certbot_dns_ionos/dns_ionos.py +++ b/certbot_dns_ionos/dns_ionos.py @@ -97,7 +97,7 @@ def _find_managed_zone_id(self, domain): # is a subdomain for zone in zones: # get the zone id - if domain.endswith(zone['name']): + if domain.endswith(f".{zone['name']}"): return zone['id'], zone['name'] return None, None