They already said they’re using Tailscale, so this isn’t needed. They can just use the Tailscale IP everywhere. On LAN it’ll connect over the LAN, and away from home it’ll connect over the internet. It comes with a .ts.net subdomains too.
Comment on Help Wanted: Accessing a Service With the Same FQDN Inside and Outside Local Network
thenextguy@lemmy.world 3 days ago
Run a local dns. Have an entry in the local dns that points to the internal ip.
I do this for home assistant using pihole.
When my phone is connected to my WiFi, it uses my local dns. When outside my home it uses public dns,
Works a charm.
dan@upvote.au 3 days ago
Zwuzelmaus@feddit.org 3 days ago
This is split dns 😉
frongt@lemmy.zip 3 days ago
No, split dns is having separate records for the same domain on internal and external servers.
This is split dns. Merely having an internal server isn’t split dns.
Zwuzelmaus@feddit.org 3 days ago
It’s OK, Sheldon.
thenextguy@lemmy.world 3 days ago
It seems strange that having two completely independent dns servers with different information gets the name ‘split dns’.
Reading the Wikipedia page seems to indicate more like one dns server hands out different data based on where the request is coming from.
But I guess it’s splitting hairs either way.
frongt@lemmy.zip 2 days ago
The external server isn’t necessarily yours. It’s called “split” because what you see from the inside and what others see from the outside are two entirely different things, for the exact same record.