Comment on Is it possible to have a usable domain without a VPS or a static IP address?
mic_check_one_two@lemmy.dbzer0.com 2 days ago
What you’re looking for is called Dynamic DNS. I use Cloudflare for my DNS (which feels a little like making a deal with the devil) and Cloudflare-DDNS to automatically update my DNS records when my WAN IP changes. Basically, the container checks the current WAN IP, checks the current Cloudflare DNS records, and pushes a change if they don’t match. It runs every few minutes, and then rests again until the next check. I’m sure other DNS providers have similar ways to set up DDNS.
It’s not a 100% foolproof thing, because your WAN IP changing will take a few minutes to update. But a few minutes of downtime is much better IMO, when the alternative is needing to manually VPN into my server (if the VPN even still works, since the WAN IP changed), and troubleshoot it every time the IP address changes.
Joelk111@lemmy.world 2 days ago
You can configure it to run as often as you want (well, I’m not sure about cloudflare, but with other services you can, like DuckDNS)
mic_check_one_two@lemmy.dbzer0.com 2 days ago
Yeah, I personally prefer to keep things running fairly light. I’m not running a 99.9% uptime server with hundreds/thousands of users, so I can tolerate a 0-5 minute downtime every few days.