Open hcc23 opened 4 hours ago
Hello,
this is because you have a problem with zone definition.
You need to define the zone dadac0.de
.
Hi @ldez ,
thanks for being so super fast with your response. Unfortunately it doesn't mean anything to me :(
Can you elaborate on what you mean by defining the zone for my domains?
2024/11/17 14:29:09 [WARN] [dadac0.de] acme: cleaning up failed: desec: failed to get records: domainName=de, recordName=_acme-challenge.dadac0: 404: Not found.
This log means that the detected zone is de
.
I tried to get the zone of your domain, and it works as expected.
$ drill dadac0.de SOA
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 48044
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; dadac0.de. IN SOA
;; ANSWER SECTION:
dadac0.de. 65 IN SOA get.desec.io. get.desec.io. 2024114567 86400 3600 2419200 3600
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 2 msec
;; SERVER: 2a02:842b:5a8:b601:ce19:a8ff:fe05:c8ff
;; WHEN: Sun Nov 17 15:57:11 2024
;; MSG SIZE rcvd: 75
So I think you have a local DNS, that interferes with this call.
Welcome
What did you expect to see?
I expect to see a consistent behavior when using the DNS provider
desec.io
, no matter the domain name.In detail, the initial output of (when using the docker image) of
docker run --env-file .env goacme/lego --accept-tos --dns desec --email acme@mydomain.de --domains mydomain.de --domains '*.mydomain.de' run
should be the same, no matter what
mydomain.de
is (ok, granted that its DNS is hosted atdesec.io
)What did you see instead?
I tried this with two of my domains:
enc0.de
anddadac0.de
. Both have their DNS provided bydesec.io
.For
enc0.de
lego tries to setup_acme-challenge
as a TXT record forenc0.de
, fordadac0.de
lego tries to setup_acme-challenge.dadac0
as a TXT record forde
.As expected, that last one doesn't really work ;)
Trial 1: for
enc0.de
Trial 2: for
dadac0.de
Note the difference:
enc0.de
issues this and seems to break down the domain correctly:whereas
dadac0.de
does behave differently:How do you use lego?
Docker image
Reproduction steps
Version of lego
Logs
See details above
Go environment (if applicable)
No response