25

I got a homelab, at the moment I am only running some local stuff and tailscale to reach my stuff remotely.

I can use tailscales ddns, but I would like a real domain. Is there a domain registrator that works with dynamic ips? Or do I need to use a CNAME instead of A record?

you are viewing a single comment's thread
view the rest of the comments
[-] sam@lemmy.ca 3 points 3 years ago

$20/mo?! When free alternatives exist, why would anybody do this?

[-] redcalcium@c.calciumlabs.com 2 points 3 years ago* (last edited 3 years ago)

noip is supported by almost all consumer routers, so you're probably paying for convenience. For homelabbers with a bit of scripting skill, it's completely unnecessary though.

[-] dragnet@lemmy.fmhy.ml 2 points 3 years ago

Emphasis on "a bit," it truly is a simple task to automate. I don't think that anyone who has need for dynamic DNS should realistically have much trouble tackling that problem.

For anyone who might attempt this and isn't sure how, here's what you need. You need a service controlling your domain with API support for updating your DNS records - some have been mentioned here, I just use gandi.net. You need to enable the API for your account/domain. Figure out how to run the command you need against the API from a scripting language of your choice - there should be documentation for the API, and it should be a single API call. Figure out how to determine your server IP from within the same scripting language. Then, write your simple script that determines the right IP and updates the record if it doesn't match.

All you need to do then is automate running the script - on Linux, a cron job or a systemd service and timer.

[-] redcalcium@c.calciumlabs.com 1 points 3 years ago

Figure out how to determine your server IP from within the same scripting language.

My go to way to figure out my public IP address is curl ip.me. Very handy and easy to remember.

[-] SteveTech@programming.dev 1 points 3 years ago

My router actually has a UPnP API that I can request and get my external IP, which I like so I can poll it every few seconds and not worry about rate limiting or something.

[-] redcalcium@c.calciumlabs.com 1 points 3 years ago

Meanwhile, my ISP would often rotate their customer behind their CGNAT, so the IP address from the routers upnp would often return 10.x.x.x . One of the main reason I gave up using dynamic DNS and use Tailscale instead.

[-] SteveTech@programming.dev 1 points 3 years ago

Port forwarding wouldn't work anyway with CGNAT, so I don't think that's much of an issue.

[-] poorsocialskills@lemmy.ml 1 points 3 years ago

I am unaware of any free services that allow you to use your own domain.

[-] poorsocialskills@lemmy.ml 1 points 3 years ago

I am unaware of any free services that allow you to use your own domain.

[-] Hopfgeist@feddit.de 2 points 3 years ago* (last edited 3 years ago)

Several do, including afraid.org, which I use. Other similar services were recently discussed here in this thread.

[-] poorsocialskills@lemmy.ml 1 points 3 years ago

Thank you for the info!

this post was submitted on 04 Jul 2023
25 points (96.3% liked)

Selfhosted

62284 readers
529 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS