this post was submitted on 19 Nov 2026
69 points (100.0% liked)

Selfhosted

64212 readers
275 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
 

Imo it's quite nice to not have a public domain like cloud.example.com which is much longer and all the gold ones are taken anyway.

Putting these local ones in my dns server is no issue, but getting https to work seems like a pain. I set up caddy to use its own certificate authority, but even when installing the root certificate to windows, many programs still don't truth it and most of them don't show a useful error message. Additionally getting them to trust the certificate is fiddely and then try to explain that to your mom so she can use my cloud.

All this makes me thing about switching back to public subdomains so I can get lets encrypt certificates

top 50 comments
sorted by: hot top controversial new old
[–] zelifcam@sh.itjust.works 40 points 2 weeks ago (1 children)

Many years ago I settled on a real domain using reverse proxies / dns overrides so that local and remote work the same. Workflow has been working for well over a decade.

[–] davad@lemmy.world 30 points 2 weeks ago (3 children)

This. Also, if you don't want to allow remote access, you can still use a real domain. It's possible to use public DNS only for the ACME challenge, and local DNS for everything else.

[–] plateee@piefed.social 17 points 2 weeks ago

I have a public domain, and use a subdomain for my homelab - .lab.myfqdn.com. I do public DNS ACME challenges for a wildcard *.lab.myfqdn.com.

It's a double bonus because I don't have SSL cert records leaked to the internet, and I can also browse internal services on my devices and family devices without having to do weird stuff with SSL cert trusts.

[–] lemmyvore@feddit.nl 3 points 2 weeks ago

That's the most common sense approach, so you don't run into situations where your Internet is down and you're trying to resolve a LAN IP through an unreachable public server. Records may or may not be cached anymore on the local when the connection goes down.

[–] asap@lemmy.world 2 points 1 week ago

You don't even need public DNS at all. My public domain points all records to 192.168.1.1, and Caddy registers certs without any issues.

[–] barnacles@lemmy.zip 39 points 2 weeks ago (5 children)

As far as I'm aware, the only "local" domains are the ones reserved in the RFC, e.g. home.arpa

Everything else is just a public domain you don't own, or not a domain. Using a domain that you don't have authority over carries risks, even if you think you've kept everything local. Just use a real domain that belongs to you.

[–] e0qdk@reddthat.com 53 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

.internal was registered for private use by ICANN in 2024

(If you're going to use something other than .home.arpa, it should be that one.)

[–] barnacles@lemmy.zip 12 points 2 weeks ago

Nice one, wasn't aware of that. Internal sounds like a nice option in that context, especially outside of home networks

[–] lambalicious@lemmy.sdf.org 8 points 2 weeks ago

Thanks for that detail!

I thought it was still "de facto" rather than "de jure" by this point.

[–] deadbeef79000@lemmy.nz 16 points 2 weeks ago (6 children)

100% this.

home.arpa is the proper way to do this.

Unless you have a domain you own, which I do, but still use home.arpa anyway.

load more comments (6 replies)
[–] INeedMana@piefed.zip 3 points 2 weeks ago (2 children)
[–] barnacles@lemmy.zip 7 points 2 weeks ago* (last edited 2 weeks ago)

I still think they shouldn't be used - they're still unregistered (edit except for .internal)

https://datatracker.ietf.org/doc/html/rfc6762#appendix-G

mDNS is weird though, device implementations can often deviate so far from the RFC that you need to rely on the ones there. (I'm really bad with mDNS, someone else feel free to prove me wrong!)

[–] frongt@lemmy.zip 1 points 2 weeks ago (1 children)
[–] INeedMana@piefed.zip 1 points 2 weeks ago* (last edited 2 weeks ago)
[–] possiblylinux127@lemmy.zip 3 points 1 week ago

RFC 8375 is such a joke

Using lan is the standard even if the standards bodies refuse to recognize it. Even openwrt uses it and they typically adhere to the RFC

load more comments (1 replies)
[–] slazer2au@lemmy.world 14 points 2 weeks ago (5 children)

The certificate problem that you are running into is the same one I ran into and why I got a domain.

Now I have Traefik get a wildcard cert from LE and no more issues.

I don't have anything publicly accessible so my public DNS record points to an IP on my lan.

[–] lemmyvore@feddit.nl 4 points 2 weeks ago (1 children)

Can I recommend that you move that record to the local DNS? Assuming your router's firmware has this feature and you can access it.

Private IPs in public DNS are associated with certain types of attacks and they get filtered by some DNS servers, routers or ISPs so you may run into intermittent "unexplained" hiccups.

Secondly, if your internet ever goes down in the middle of the night and the records expire from the local DNS cache by morning, you won't be able to resolve anything on your LAN anymore. Which is a pity because it's unnecessary, your local setup can work fine independent of the internet connection.

Last but not least, there are actors out there that use a variety of methods to gather information about the infrastructure behind each domain and the least such information you put out there, the better.

Run your domain through DNS Robot to get an idea.

[–] slazer2au@lemmy.world 2 points 1 week ago (1 children)

I have adguard home to intercept the requests. Private IPs in public DNS is a non issue. We did it quite a bit at the ISP I worked at.

load more comments (1 replies)
load more comments (4 replies)
[–] randombullet@programming.dev 9 points 2 weeks ago (1 children)

I use a real domain and then reverse proxy via NPM

[–] valkyre09@lemmy.world 2 points 1 week ago (1 children)

My NPM was vulnerable to this yesterday.

https://nginx2root.com/

Just sharing the knowledge 😀

[–] randombullet@programming.dev 2 points 1 week ago

Thanks for the heads up, I use watchtower so thankfully my containers auto update.

The patch for NPM as pushed 19 November

[–] Reannlegge@lemmy.ca 9 points 2 weeks ago

I have my own domain with a cert so it is (service).reannlegge.ca in caddy, I don’t really let many of my things out onto the web without the VPN but it is nice having the https and not having to see the this site may not be secure for almost everything I do.

[–] Shimitar@downonthestreet.eu 6 points 2 weeks ago (1 children)

Using self signed as a route that it's not going to work after you factor in service specific apps that refuse your self signed certs, phones where installing those certs is a pain, and the overall WAF where installing those certs might just put off family users.

Add in the mix the new Android 17 fucking "feature" where apps need special permissions to access the local network ... (Yeah, Dav5x, home assistant, even Firefox stopped working on my on Android until I figured this out after upgrading to 17). I will write a post on this topic later on today.

load more comments (1 replies)
[–] cow@lemmy.world 6 points 2 weeks ago (1 children)

I use .internal, setup a self-hosted certificate authority providing ACME to servers. The certificate is set to only be valid on .internal domains and not the entire internet and enrolled on my phone and computers.

[–] fuckoffplzkthx@lemmy.zip 9 points 2 weeks ago (1 children)

I've never liked this approach - having to enroll certs on every machine always seemed tedious and it's why I just "dealt with" having HTTPS errors internally for years.

Honest question, why not set up a reverse proxy that uses Let's Encrypt? It will handle internal domains if configured appropriately, and then you only have to configure at the proxy and DNS level.

[–] cow@lemmy.world 2 points 1 week ago

I’ve never liked this approach - having to enroll certs on every machine always seemed tedious and it’s why I just “dealt with” having HTTPS errors internally for years.

You only have to do it once per machine and I use NixOS a lot so its easy to just add to a module imported by every system. On other Linux systems it's just putting the pem file somewhere in /etc/ and running a command to reload it. Android cell phones were pretty easy but I forget the exact details.

Honest question, why not set up a reverse proxy that uses Let’s Encrypt?

I have multiple of those for public services. Because I don't want to expose every service to the internet for HTTP-01 and can't use DNS-01 due to how my nameservers are set up, this makes sense. Other advantages are not needing to distribute DNS update keys to every single server for security reasons and having shorter domains.

[–] lemmyvore@feddit.nl 5 points 2 weeks ago (1 children)

like cloud.example.com which is much longer and all the gold ones are taken anyway.

You can try getting a shorter domain from a ccTLD. I've probed my country's whois for 1-3 digit domains once on a whim and stumbled across one that was free.

[–] sem@lemmy.blahaj.zone 2 points 1 week ago (1 children)

How did you do that search? I was only able to find cheat five character domains

[–] lemmyvore@feddit.nl 3 points 1 week ago* (last edited 1 week ago)

Just a shell script running whois in a loop and looking at the output, with random sleep intervals in-between. Left it running overnight, 1100 domains is not a lot (I also checked the versions with with zero padding).

I was only able to find cheat five character domains

Probably depends a lot on the country TLD.

[–] neidu4@piefed.social 5 points 2 weeks ago* (last edited 2 weeks ago)

Nah. Proper domain or no domain.

[–] CameronDev@programming.dev 5 points 2 weeks ago (1 children)

Browser autocompletes the longer domains anyway, so not really a big deal. I use xyz.internal.mydomain.com as my naming scheme, and the easy certificates are definitely worth it.

[–] frongt@lemmy.zip 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Using single-label domain names isn't browser autocompletion, it's RFC 1034 standard domain resolution behavior based on your search list.

[–] CameronDev@programming.dev 2 points 2 weeks ago

I dunno if we are referring to the same thing, I mean the browser feature where URLs you've visited previously will be auto-suggested by the browser as you type. But I dont fully understand the rfc feature your referring to, so maybe we are thinking of the same thing?

Either way, the browser makes it easy to revisit URLs without typing the full address.

[–] boudica@lemmy.world 4 points 2 weeks ago

x.home.arpa was made for this situation. I've been able to use caddy's certificate with no issues.

[–] pcr@scribe.disroot.org 3 points 1 week ago* (last edited 1 week ago)

.lan is being proposed as a new TLD so I wouldn't start using that for a new system. .internal is the safe option. https://news.ycombinator.com/item?id=50007353

In my setup I just use a public domain to make TLS easier.

[–] frongt@lemmy.zip 3 points 2 weeks ago (2 children)

You don't have to own a domain. As long as you can satisfy a challenge, such as by publishing a web page under the domain for the HTTP-01 challenge, you can still get certs.

[–] lemmyvore@feddit.nl 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Having access to port 80 on the IP associated with a domain but not to the DNS raises some interesting questions. 🙂

Unless it's purely a matter of personal preference but I for one don't see why you'd want to do HTTP-01 (as a self-hoster) unless forced. It can't do wildcards, for one thing. And you need an A record pointing to your public IP, and if your public IP is dynamic you need to do DDNS, and open port 80 and so on. That's a lot of moving pieces that make automation hard.

Also, if you're doing DDNS there's a chance the DNS has some sort of API that might also work for certbot. Granted it's not a given, I've seen registrars that offer a DDNS link but not something you'd call an actual DNS API.

But anyway finding a decent DNS provider with a certbot-friendly API is not that hard.

load more comments (1 replies)
load more comments (1 replies)
[–] melfie@lemmy.zip 2 points 2 weeks ago

I mostly use .lan domains without TLS on my local network, but I recently got a Roborock vacuum and wanted to use Roborock Local Server, but the vacuum would only connect if my local server had TLS, so I bought a domain.

[–] DietCanesSauce@lemmy.world 2 points 2 weeks ago

All of my services are currently local only so I just run http on all of them. I do still like being able to use a hostname instead of memorizing port numbers for everything so I do use *.home.lan.

Eventually I will be exposing some services but right now I am behind cgnat and don’t have a decent router to support modern ipv6 yet.

[–] Decronym@lemmy.decronym.xyz 2 points 2 weeks ago* (last edited 1 week ago)

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

Fewer Letters More Letters
CA (SSL) Certificate Authority
DNS Domain Name Service/System
ESPA EELV Secondary Payload Adapter standard for attaching to a second stage
ISP Internet Service Provider
SSH Secure Shell for remote terminal access
TLS Transport Layer Security, supersedes SSL
VPN Virtual Private Network

[Thread #172 for this comm, first seen 20th Nov 2026, 08:00] [FAQ] [Full list] [Contact] [Source code]

[–] somegeek@programming.dev 2 points 1 week ago

I use them both at home and in work. For https, just go with self signed certs.

[–] MangoPenguin@lemmy.blahaj.zone 2 points 1 week ago* (last edited 1 week ago)

I use .lan for most local stuff, since it's local only I don't bother with HTTPS at all.

Anything that needs it like Vaultwarden just goes on a real domain so a letsencrypt wildcard cert works.

[–] manwichmakesameal@lemmy.world 2 points 1 week ago

I have my own domains so I just use those with split horizon DNS. No need for the local ones.

[–] cmnybo@discuss.tchncs.de 1 points 2 weeks ago

I do use .local domains with mDNS for some stuff, but I don't bother with SSL for those. I use a real domain for anything with SSL.

load more comments
view more: next ›