You don’t even need public DNS at all. My public domain points all records to 192.168.1.1, and Caddy registers certs without any issues.
Comment on What's your opinion on local domains like cloud.lan?
davad@lemmy.world 6 days agoThis. Also, if you don’t want to allow remote access, you can still use a real domain. It’s possible to use public DNS only for the ACME challenge, and local DNS for everything else.
asap@lemmy.world 4 days ago lemmyvore@feddit.nl 5 days ago
That’s the most common sense approach, so you don’t run into situations where your Internet is down and you’re trying to resolve a LAN IP through an unreachable public server. Records may or may not be cached anymore on the local when the connection goes down.
I have a public domain, and use a subdomain for my homelab -
.lab.myfqdn.com. I do public DNS ACME challenges for a wildcard*.lab.myfqdn.com.It’s a double bonus because I don’t have SSL cert records leaked to the internet, and I can also browse internal services on my devices and family devices without having to do weird stuff with SSL cert trusts.