i use my external zone name but have an internal view of the zone inside my lan so records point to local ips.
Exactly the same. I'd like to add that my devices still get a .lan TLD from the router.
Same, I achieve this with Adguard DNS rewrite.
I just bought an actual domain and use that 😅
As an added bonus, letsencrypt works with no effort.
Same here. Well worth it for $10 a year
I bought domain from joker.com, 10 years for $33
What? How they sell for so long?
I don't know but they do. I picked the cheapest name I could find and went with it.
Checked and they still do sell domains for 10y but price has gone up.
I use a subdomain of a domain name I own.
For local DNS home.arpa
is I think what we're 'supposed' to use, but I use .lan
Only use another domain name if you actually have it registered, like myname.net
or something. As a bonus you can then get a wildcard letsencrypt SSL cert for easy HTTPS.
Why should you only use ones you own, even if it's just local network?
Because of interference with existing domains. Say you set a computer on your network to mypc.google.com
, that won't work because the DNS server will lookup google.com as an external domain.
According to IETF, you should only use .intranet
, .internal
, .private
, .corp
, .home
or .lan
for your private network ( RFC 6762 Appendix G ). Using other TLDs might cause issues in the future, especially since new gTLDs seems to show up every few months or so, which can collide with the TLD you use for your local network.
@redcalcium
Really? Not .local? Why is it the default on so much?
@zephyr
A long time ago Microsoft and some teaching sources used .local in example documentation for local domains and it stuck. Like contoso.com was Microsoft's example company. I was taught to use .local decades ago and it took a very long time to unlearn it.
A problem with the .lan
TLD (maybe others from this list) is that web browsers do not consider it a TLD when you type it in the address bar, and only show you the option to search for that term in your default search engine. You have to explicitly type https://
before it, to have the option to visit the URL.
E.g type example.com
in the address bar -> pressing Enter triggers going to https://example.com
. Type example.lan
-> pressing Enter triggers a search for example.lan
using your default search engine.
Little known trick--or perhaps everyone knows it and is quietly laughing behind my back--with Chromium browsers and Firefox (and maybe Safari, I'm not sure), you can add a slash to the end of an address and it will bypass the search.
So, for example, my router on the LAN goes by the hostname "pfsense". I can then type pfsense.lan/ into my address bar and it will bring me to the web UI, no HTTP/s needed.
*.internal.domain.name
since ssl certs are easier to get when you’re using an owned domain name.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!