Replies: 3 comments
|
Its funny that after publish and try with different configuration is working. for the domain "senkiu.net" it work by changing this in the traefik.yml: (disableANSChecks) certificatesResolvers:
myresolver:
acme:
storage: /letsencrypt/acme.json
dnsChallenge:
provider: hetzner
propagation:
disableANSChecks: true
delayBeforeChecks: 10But know, i got this if i want to use subdomains like "service.senkiu.net" traefik | 2025-12-11T11:14:41Z ERR github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:501 > Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [nginx.senkiu.net]: error: one or more domains had a problem:\n[nginx.senkiu.net] invalid authorization: acme: error: 400 :: urn:ietf:params:acme:error:dns :: During secondary validation: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.nginx.senkiu.net - check that a DNS record exists for this domain\n" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["nginx.senkiu.net"] providerName=myresolver.acme routerName=nginx@docker rule="Host(\"nginx.senkiu.net\")" |
|
Ok, finally this was the way around i did: In the service, i issue wild card certificate, so thats working for all the subservices right now. nginx:
image: nginx:latest
container_name: nginx_test
labels:
- traefik.enable=true
- traefik.http.routers.nginx.rule=Host("nginx.senkiu.net")
- traefik.http.routers.nginx.entrypoints=websecure
- traefik.http.routers.nginx.tls.certresolver=myresolver
- traefik.http.routers.nginx.tls.domains[0].main=senkiu.net
- traefik.http.routers.nginx.tls.domains[0].sans=*.senkiu.net
networks:
- traefik
depends_on:
- traefikAnd for a more "clean up" configuration i move it to taefik.yml static config isntead to a single service label: entryPoints:
web:
address: ":80"
websecure:
address: ":443"
http:
tls:
certResolver: myresolver
domains:
- main: "senkiu.net"
sans:
- "*.senkiu.net"I believe the issue is related to how zones are handled in Hetzner DNS. When I request a certificate for "sub.senkiu.net", ACME creates a TXT record named "_acme.sub.senkiu.net". It seems that Hetzner might be treating it as a separate zone, although I can’t say this with full certainty since it’s beyond my current understanding. Althought my problem is solve right now, i would keep in open because i will aprecciate someone can take a look at this and give me feedback. Thanks |
|
The discussion section of lego is not for Traefik support, please use their community forum. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, Ive been trying for several days to understand where the issue is and how to fix it. Maybe someone can give me a hand or point me in the right direction.
What am I trying to achieve?
The problem?
(full log is attach in the bottom)
traefik | 2025-12-11T10:43:41Z ERR github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:501 > Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [senkiu.net]: error: one or more domains had a problem:\n[senkiu.net] propagation: time limit exceeded: last error: authoritative nameservers: NS helium.ns.hetzner.de.:53 returned REFUSED for _acme-challenge.senkiu.net.\n"Context:
On my machine I have several services and I want to use Traefik as a reverse proxy. Traefik is not accessible to the public, only through Tailscale. This way, when I visit "service.senkiu.net" the public DNS will return a 100.x.x.x IP from my Tailscale network, which I can access if Im connected to Tailscale.
What have I tried so far?
_acme_challengeTXT record is created as expected.Im running out of ideas. The only thing left I can think of is trying another DNS provider, although Im not really a fan of using Cloudflare.
After this, I’ll contact Hetzner support.
Any idea where I should look next?
docker compose y traefik.yml
traefik.yml
traefik/lego logs during deploy
All reactions