The thing that puzzles me the most is that from the exact same host I am able to resolve the acme challenge correctly.
While my log file contains the following:
time="2022-03-21T09:56:57Z" level=debug msg="legolog: [INFO] [lan.ooo] acme: use dns-01 solver"
time="2022-03-21T09:56:57Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Preparing to solve DNS-01"
time="2022-03-21T09:56:58Z" level=debug msg="legolog: change (Create): {\"additions\":[{\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:56:59Z" level=debug msg="legolog: [INFO] Wait for apply change [timeout: 30s, interval: 3s]"
time="2022-03-21T09:56:59Z" level=debug msg="legolog: change (Get): {\"additions\":[{\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:02Z" level=debug msg="legolog: change (Get): {\"additions\":[{\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:02Z" level=debug msg="legolog: [INFO] [lan.ooo] acme: Preparing to solve DNS-01"
time="2022-03-21T09:57:03Z" level=debug msg="legolog: change (Create): {\"deletions\":[{\"kind\":\"dns#resourceRecordSet\",\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:04Z" level=debug msg="legolog: [INFO] Wait for apply change [timeout: 30s, interval: 3s]"
time="2022-03-21T09:57:04Z" level=debug msg="legolog: change (Get): {\"deletions\":[{\"kind\":\"dns#resourceRecordSet\",\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:04Z" level=debug msg="legolog: change (Create): {\"additions\":[{\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg\",\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:05Z" level=debug msg="legolog: [INFO] Wait for apply change [timeout: 30s, interval: 3s]"
time="2022-03-21T09:57:05Z" level=debug msg="legolog: change (Get): {\"additions\":[{\"name\":\"_acme-challenge.lan.ooo.\",\"rrdatas\":[\"k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg\",\"S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw\"],\"ttl\":120,\"type\":\"TXT\"}]}"
time="2022-03-21T09:57:05Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Trying to solve DNS-01"
time="2022-03-21T09:57:05Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Checking DNS record propagation using [1.1.1.1:53 8.8.8.8:53]"
time="2022-03-21T09:57:10Z" level=debug msg="legolog: [INFO] Wait for propagation [timeout: 3m0s, interval: 5s]"
time="2022-03-21T09:57:10Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Waiting for DNS record propagation."
time="2022-03-21T09:57:15Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Waiting for DNS record propagation."
time="2022-03-21T09:57:20Z" level=debug msg="legolog: [INFO] [*.lan.ooo] acme: Waiting for DNS record propagation."
I can actually get the proper results by querying the DNS manually:
root@Docker:~# for ns in $(dig +short ns lan.ooo); do dig +dnssec @$ns txt _acme-challenge.lan.ooo; done
; <<>> DiG 9.16.27-Debian <<>> +dnssec @ns-cloud-b4.googledomains.com. txt _acme-challenge.lan.ooo
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58351
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1472
;; QUESTION SECTION:
;_acme-challenge.lan.ooo. IN TXT
;; ANSWER SECTION:
_acme-challenge.lan.ooo. 64 IN TXT "k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg"
_acme-challenge.lan.ooo. 64 IN TXT "S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw"
_acme-challenge.lan.ooo. 64 IN RRSIG TXT 8 3 120 20220410085945 20220319085945 3100 lan.ooo. MrSVyIBXbXDZBfXgNGd8qYskZ7JY8I0kRMLrTwcdPtIZjqWG6/b4oVwu b75jrSVtSGgYIS3RWuA6aNHqmzDVU7cuumeU+zMqfjepzL+yvC6JHeXa oITg4ZMcD9XEYvyU9onn2p+VlF9ufbMkSwgFVcPF2oSVKo67UQw6Q0YB N6w=
;; Query time: 0 msec
;; SERVER: 216.239.38.107#53(216.239.38.107)
;; WHEN: Mon Mar 21 09:58:06 UTC 2022
;; MSG SIZE rcvd: 331
; <<>> DiG 9.16.27-Debian <<>> +dnssec @ns-cloud-b3.googledomains.com. txt _acme-challenge.lan.ooo
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44929
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1472
;; QUESTION SECTION:
;_acme-challenge.lan.ooo. IN TXT
;; ANSWER SECTION:
_acme-challenge.lan.ooo. 64 IN TXT "k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg"
_acme-challenge.lan.ooo. 64 IN TXT "S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw"
_acme-challenge.lan.ooo. 64 IN RRSIG TXT 8 3 120 20220410085945 20220319085945 3100 lan.ooo. MrSVyIBXbXDZBfXgNGd8qYskZ7JY8I0kRMLrTwcdPtIZjqWG6/b4oVwu b75jrSVtSGgYIS3RWuA6aNHqmzDVU7cuumeU+zMqfjepzL+yvC6JHeXa oITg4ZMcD9XEYvyU9onn2p+VlF9ufbMkSwgFVcPF2oSVKo67UQw6Q0YB N6w=
;; Query time: 0 msec
;; SERVER: 216.239.36.107#53(216.239.36.107)
;; WHEN: Mon Mar 21 09:58:06 UTC 2022
;; MSG SIZE rcvd: 331
; <<>> DiG 9.16.27-Debian <<>> +dnssec @ns-cloud-b2.googledomains.com. txt _acme-challenge.lan.ooo
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27519
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1472
;; QUESTION SECTION:
;_acme-challenge.lan.ooo. IN TXT
;; ANSWER SECTION:
_acme-challenge.lan.ooo. 63 IN TXT "k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg"
_acme-challenge.lan.ooo. 63 IN TXT "S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw"
_acme-challenge.lan.ooo. 63 IN RRSIG TXT 8 3 120 20220410085945 20220319085945 3100 lan.ooo. MrSVyIBXbXDZBfXgNGd8qYskZ7JY8I0kRMLrTwcdPtIZjqWG6/b4oVwu b75jrSVtSGgYIS3RWuA6aNHqmzDVU7cuumeU+zMqfjepzL+yvC6JHeXa oITg4ZMcD9XEYvyU9onn2p+VlF9ufbMkSwgFVcPF2oSVKo67UQw6Q0YB N6w=
;; Query time: 0 msec
;; SERVER: 216.239.34.107#53(216.239.34.107)
;; WHEN: Mon Mar 21 09:58:07 UTC 2022
;; MSG SIZE rcvd: 331
; <<>> DiG 9.16.27-Debian <<>> +dnssec @ns-cloud-b1.googledomains.com. txt _acme-challenge.lan.ooo
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5916
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1472
;; QUESTION SECTION:
;_acme-challenge.lan.ooo. IN TXT
;; ANSWER SECTION:
_acme-challenge.lan.ooo. 63 IN TXT "k76vwsWhhiQy_VjsAEfo2aOv7EQZ8Qjd-kVZZdzthOg"
_acme-challenge.lan.ooo. 63 IN TXT "S47r-a9jKBhEyYbdcmSrN2BCqiGwBzuelMBOX2exGyw"
_acme-challenge.lan.ooo. 63 IN RRSIG TXT 8 3 120 20220410085945 20220319085945 3100 lan.ooo. MrSVyIBXbXDZBfXgNGd8qYskZ7JY8I0kRMLrTwcdPtIZjqWG6/b4oVwu b75jrSVtSGgYIS3RWuA6aNHqmzDVU7cuumeU+zMqfjepzL+yvC6JHeXa oITg4ZMcD9XEYvyU9onn2p+VlF9ufbMkSwgFVcPF2oSVKo67UQw6Q0YB N6w=
;; Query time: 0 msec
;; SERVER: 216.239.32.107#53(216.239.32.107)
;; WHEN: Mon Mar 21 09:58:07 UTC 2022
;; MSG SIZE rcvd: 331