this post was submitted on 13 Nov 2023
39 points (97.6% liked)

Selfhosted

40359 readers
347 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I've been using Hetzner for some time, but now I want to host everything myself at home.

DNS was easy with Hetzner, just point the domain to Hetzner's nameservers, and from there to my server.

How are people doing this for home servers? When there's not access to something like Hetzner's nameservers.

Is there a free/cheap nameserver I can use to point at my home server's IP?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago* (last edited 11 months ago) (1 children)

I thought CloudFlare tunnels handled the non-static IP part, so DDNS shouldn't be necessary? I have a tunnel running on an RPi and I THINK it's going to update the IP that CF has if/when my ISP changes it..... I guess I'll find out! πŸ˜†

[–] [email protected] 2 points 1 year ago (1 children)

There might be a service in cloudflare that does that - but I'm not aware of it. DNS in cloudflare requires an IP to proxy to, and you would need something (hosted by cloudflare on your rpi theoretically) that then would notify cloudflare that your IP has changed - otherwise cloudflare won't know where it's proxying from.

Cloudflare isn't DNS, it's a proxy that sits in the middle. (Okay it also does DNS, but I mean it's not just routing traffic). Essentiall all cloudflare does is

  • User queries DNS for yourdomain.com
  • DNS returns cloudflare's IP address
  • Cloudflare sees the request, and then asks your server's IP address for the data
  • Once cloudflare receives the data from your server, it will pass it up to the user.

I'm simplifying a lot but that's the gist. But if your IP changes then cloudflare doesn't know where to get your data.

[–] [email protected] 3 points 1 year ago* (last edited 11 months ago)

something that then would notify CloudFlare that your IP has changed

Right, it's called CloudFlared: https://github.com/cloudflare/cloudflared