caddy-dns / hetzner

Caddy module: dns.providers.hetzner
MIT License
29 stars 9 forks source link

DNS challenge cannot be validated #3

Closed le-ander closed 3 years ago

le-ander commented 3 years ago

Hey there,

thanks a lot for this super useful caddy plugin!

I was trying to use this but realised that caddy gets stuck verifying the DNS challenge, even though a TXT record is created by caddy in my Hetzner DNS console.

Inspecting the DNS record more closely, I see that my domain appears twice in the TXT record (something like _acme.challenge.test.example.com.example.com)

Could this be the source of the problem?

Best, Leander

matthiasng commented 3 years ago

Hi le-ander,

your issue is caused by libdns/hetzner#1, which depends on another issue.

The problem is that according to this comment, caddy uses full domain name sans trailing dot. Hetzner on the other side, always adds the domain to TXT record name.

Implementing a workaround in libdns/hetzner sould be easy. I will give it a try next days.

le-ander commented 3 years ago

Thanks a lot for the update, I think I understand the problem now. Very much looking forward to your workaround solution.

Thank you very much for your efforts. Highly appreciated!

matthiasng commented 3 years ago

Fix/workaround has been implemented. I will close the issue. Feel free to reopen it or create a new one , if you still encounter problems.

le-ander commented 3 years ago

Awesome, thanks so much! Will give this a try.