I’ve been thinking about finally getting myself a proper domain for my server, but a friend told me that to get one I either need a VPS with a public ip (which just takes all the fun out of selfhosting) or purchase a static ip, which is beyond what I’m willing to spend for a hobby. Do I have any good options or should I just let it go?

Also, if this isn’t the correct community for this, I’d appreciate being pointed to the right one, thank you

Update: after reading the comments the two main options I’m considering now are either a cheap VPS to use as proxy for my network via wireguard, or DynamicDNS. I’ll see if I can figure out the rest from here, thank you!

  • lavander@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours ago

    You need static IP only if you want to host the autoritative DNS server for your domain (spoiler alert: you don’t).

    You don’t need to proxy your traffic via VPS (higher latency for no good reason) and the dyndns providers are over priced.

    What you need is:

    • Buy your domain
    • Use a free DNS provider (I used for years the excellent dns.he.net but it is a bit cumbersome. Nowadays I gave up and I now use cloudflare without any proxying, just pure DNS)
    • Point your registrar to the dns provider
    • use ddclient to update the IP of a domain entry (e.g. server.example.com)
    • add as many CNAME as you want that point to that entry (so you can have stuff like Jellyfin.example.com www.example.com Nextcloud.example.com)

    That’s all… ddclient will update that single dns entry every time your server restarts (or the IP lease expires and you get a new IP)

    The only thing you need to pay here is the domain (you can get free domains but that is another story and tbh I would not recommend, there are cheap domains out of there)