mholt / caddy-dynamicdns

Caddy app that keeps your DNS records (A/AAAA) pointed at itself.
Apache License 2.0
234 stars 24 forks source link

Automaticly remove DNS record after acme refresh #71

Open di-rect opened 1 month ago

di-rect commented 1 month ago

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,

mholt commented 1 month ago

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

di-rect commented 1 month ago

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.

mholt commented 1 month ago

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.)