From 13c14a89eb4ed4bebefac8f165f5d1db9ffc0cac Mon Sep 17 00:00:00 2001 From: Hannes Feldt <feldt@astron.nl> Date: Mon, 6 Jan 2025 15:27:49 +0100 Subject: [PATCH] fix --- lofar_cryptocoryne/client.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lofar_cryptocoryne/client.py b/lofar_cryptocoryne/client.py index 1647f5d..e78854f 100644 --- a/lofar_cryptocoryne/client.py +++ b/lofar_cryptocoryne/client.py @@ -3,12 +3,15 @@ """ Various clients """ +import socket from urllib.parse import urlparse + +import consul +import josepy as jose +import simple_acme_dns from acme import client as acme_client from acme import messages -import simple_acme_dns -import josepy as jose -import consul + import lofar_cryptocoryne.dns_client as desec @@ -27,7 +30,10 @@ def get_service_certificates() -> [(str, [str])]: class DnsClient: """DNS client""" - DNS_SERVERS = ["ns1.desec.io", "ns2.desec.org"] + DNS_SERVERS = [ + socket.gethostbyname("ns1.desec.io"), + socket.gethostbyname("ns2.desec.org"), + ] """ Client to access the dns providers API """ def __init__(self, desec_client: desec.APIClient): -- GitLab