caddy-dynamicdns icon indicating copy to clipboard operation
caddy-dynamicdns copied to clipboard

Automaticly remove DNS record after acme refresh

Open di-rect opened this issue 1 year ago • 3 comments

Hi,

There are various ways to remove records which I can implement but would it be possible to remove a record after acme updated the belonging certificate for a domain ?

Thanks,

di-rect avatar Aug 08 '24 12:08 di-rect

I'm not sure what you mean, really; or how ACME is relevant for dynamic DNS... can you elaborate?

mholt avatar Aug 08 '24 12:08 mholt

Sure I can.

Let's say I have an internal FQDN (based on subdomain) that never goes outside and also is never reachable from outside but needs an wildcard LE certificate and hosts are different when I deploy. It would be nice if dynamicdns could add the record for the fqdn as it can exist ofcourse as the container runs in that specific Public IP but isolated; then removes the same recordd after the wildcard for that internal subdomain has be provisioned by ACME.

di-rect avatar Aug 08 '24 20:08 di-rect

With the DNS challenge, you don't need any DNS records set. And it's the only way to get a wildcard cert through LE anyway. Have you tried using the DNS challenge? (And then you don't need to remove the A/AAAA records.)

mholt avatar Aug 09 '24 15:08 mholt