diff --git a/lofar_cryptocoryne/client.py b/lofar_cryptocoryne/client.py index 1647f5d0dacd01efd99e8e7b10f97f4949db8706..e78854fe4b3b6841fbb9d3ea4ee997c09096af64 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):