Comment on How to Use Local IP for Services when at Home?
mrh@mander.xyz 13 hours agoYes your description is just right and is the heart of my question. To use your terminology:
Currently away from home: Phone -> VM -> Home Server Currently at home: Phone -> VM -> Home Server (inefficient!)
Ideally away from home: Phone -> VM -> Home Server Ideally at home: Phone -> Home Server
In the ideal case, I would never have to change anything about the wireguard config/status on the Phone, nor would I have to change the domain name used to reach the resource on the Home Server.
motruck@lemmy.zip 11 hours ago
Are you routing DNS over wireguard the whole time or do the DNS servers change when you go from public internet to your home network?
If you are using the same DNS servers i.e. always using DNS over wireguard then there isn’t really a lot you can do.
The way I do this is when I am on my home network I use the DNS on that network, i.e. the adguard instance I set up and also override DNS names with, when I am on some public internet i.e. via cellular, I use whatever DNS server they have. So on home network jellyfin.bob.com returns 192.168.8.3 (for example) and on the public internet jellyfin.bob.com will return 68.32.23.11 (i.e. my public IP address).
However that requires multiple DNS servers.
What is an example server where you’d like to do this (it may give us more options) and how is your DNS set up?