I’m trying to self-host some stuff on my Raspberry Pi (i.e. web server, lightweight matrix server, etc) and every time I get around to try and set it up I forget that I have to do this lol
Do you guys recommend going full send and contacting my ISP about a static IP or should I just pay for a Dynamic DNS service?
I have a dynamic IP and have been using it for years. I also host my own mail server on a VPS using miab which provides my DNS. My router supports pushing DDNS changes, so as soon as my IP changes, I’m able to update my external DNS and everything is all good.
If you can reliably update an external DDNS service, I can’t see paying for a static IP for your self-hosted stuff.
There are already tools existing for dyndns that are free. If you’re using cloud flare as your dns provider, there’s cloudflareddns that checks your public ip and updates dns records. You just need 1 record to be updated, the other records can just be CNAME to that primary one.
OVH has DynHost to deal with that as well.
You could also write a script to do that with your own DNS provider if one doesn’t exist yet. Most have good APIs you can use to that extent. At worse just use cloudflare since it just works and is well supported.
Get a static ip if at all possible. The work arounds with a dynamic IP are simply not as good. Or if your ISP and router fully support IPv6 you could alternatively go down that route.
I self-host a bunch of stuff and don’t bother paying for a static IP.
I just have a cron job running that checks my IP and then uses API calls to update my DNS settings. I’ve got the DNS setup with Zonomi which are a local company, it costs maybe a couple dollars a month & i’ve got 8-10 domains running at any one time.
DDNS is kind of a pain in my opinion, and they shouldn’t be necessary. If my ISP were to rotate IP addresses enough to make me consider DDNS, I’d probably look for a different ISP to be honest.
Left without other options, I would personally cheap out and just tunnel the connection through some kind of super cheap/free cloud VPS. Oracle is giving away VPSes with IPv6 and static IPs limited to something like 50mbps. There are also ultra low budget VPS providers that will cost you $20 per year or less. Add a little Wireguard VPN magic and the right firewall rules and you’ll be free of weird ISP related restrictions.
Just use Dynamic DNS. Still cheaper than static IP
Dynamic DNS is free generally, for example if you put your domain on Cloudflare or another DNS host with an API that is supported you can just update the A records automatically on IP change.