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

  • UnpledgedCatnapTipper@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    54 minutes ago

    I run a variety of self hosted things via my domain on a dynamic IP. I just have dynamic dns set up to check my current public IP periodically, and update the dns entry if it changes.

  • Svinhufvud@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 hours ago

    It is very much possible to have a dynamic IP and a usable domain.

    Both Cloudflare and desec.io (for example) have APIs that you can hit everytime your public IP changes.

    I have a script that checks every minute whether my public IP has changed from the last check, and if it has, an API call will be sent.

    With a scheme like this, your downtime will be minimal, if ever even noticed.

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 hour ago

    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

    Neither of those are requirements. Just buy a domain at a registrar that allows you to dynamically update an IP address with a domain you have there. Look into DDNS update scripts and/or your own internet router, many routers have that feature built-in already.

  • cecilkorik@piefed.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 hours ago

    You don’t have any great options but you do have some options. You’ll need dynamic DNS, which you can get for free by various providers. This will manage a “dynamic” DNS entry for your occasionally changing, non-static IP at home. The dynamic DNS entry won’t be on your own domain name, it will be on the provider’s domain name. But wait! That’s just step one.

    You can still get your own, fully-functional domain name, and you can have all the domains and subdomains you want, and set them up however you want, with one important restriction: You can’t use IP addresses (because yours is dynamic, and changes all the time and you would have to be constantly updating your domain every time it does, and there would be delays and downtime while everything gets updated).

    Instead, your personal domains have to use CNAME records. This substitutes the IP from a different domain INTO your domain. So you CNAME every entry on your own fancy domains to point at your dynamic DNS provider, which manages the dynamic part of the problem for you and always gives the real IP you need. Nobody sees the dynamic DNS name, it’s there, but it’s happening behind the scenes, they still see your fancy personalized domain names.

    It’s still not going to be perfect, it won’t work well or at all for certain services like email hosting (self-hosting this is not for the faint of heart anyway) that are very strict about how their DNS and IP addresses need to be set up, but it will likely be good enough for 99% of the stuff you want to self-host.

  • qjkxbmwvz@startrek.website
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 hours ago

    VPS with a public ip (which just takes all the fun out of selfhosting)

    Why do you say this? My VPS only runs a reverse proxy and WireGuard, with all services hosted on my computers at home.

  • Bakkoda@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 hours ago

    I’ve been self hosting for 20 years with the same domain(s) and have never owned a static IP. Use a reliable DNS service with simple update tools (curl on a cron job for example).

  • fozid@feddit.uk
    link
    fedilink
    English
    arrow-up
    17
    ·
    5 hours ago

    I’ve had a domain with a dynamic up for over a year with no problems. I have a simple script that runs every 30mins to check if my IP has changed, then updates the DNS records when required.

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    I have a domain, but all I use it for so far is email (with an email provider, not my own mail server, hosted locally or otherwise). I’d still call that “usable,” though.

  • Sunnydmess@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 hours ago

    I use this, Cloudflare zero trust. I run a connector (tunnel) named cloudflared on a raspberry pi which connects to cloudflare. The zerotrust tunnel configuration (in CF dashboard) lets me route http traffic into my local network by domain. The Application access policy in zero trust lets me secure it.

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      I realize there is a lot of back and forth among selfhosters about Cloudflare’s usage, but I am thoroughly pleased with the set up. The only thing I chuckle about is their promotional emails.

      Your site saw more threats last month than the average site on Cloudflare. Here’s what that means:
      The good news is that these threats were mitigated by Cloudflare with the basic web application firewall (WAF) and bot protection you have on the Free plan.
      The bad news is that more complex and sophisticated cyber attacks may not be stopped by your current web application security posture.
      

      …however they promise if I spend some money, that will all go away, and it might, but it’s good now so don’t wake the sleeping dog.

  • Ada@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    12
    ·
    7 hours ago

    Our setup uses a domain pointed at a dynamic (but stable) IP with a script to update it periodically

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 minute ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    CF CloudFlare
    CGNAT Carrier-Grade NAT
    DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network
    DNS Domain Name Service/System
    IP Internet Protocol
    NAT Network Address Translation
    VPS Virtual Private Server (opposed to shared hosting)

    6 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

    [Thread #181 for this comm, first seen 18th Mar 2026, 09:30] [FAQ] [Full list] [Contact] [Source code]

  • mrnobody@reddthat.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    I’m late to the party, but could everyone answer me this- how often does you’re public IP actually change with any of your ISPs??

    With the numerous companies I’ve used, the ONLY time I’ve ever seen my IP change is getting a new modem through, say, Comcast or whoever. It goes by MAC address, and if you use Comcast and then set to bridge mode and use your own device, that’s a new MAC so you’d get a new public IP. Swap ISPs obviously a new IP.

    I’ve NEVER randomly received a new IP when using the same equipment consistently, so I’m not sure why everyone’s so worried about dynamic DNS stuff… Maybe outside the US is different? I’ve lived in a few States and it’s always the same. If you make a hardware change, just note you should also double check your IP and update it, that’s all.

    • MUGv0@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      Mine has stayed the same for about 3 years now. My friend has theirs change any time there’s a power cycle so a handful of times every year between power surges and firmware updates.

    • pHr34kY@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      Mine would go years without changing. The last few changes were caused by things like the upstream DHCP server failing and being replaced.