Comment on How to Use Local IP for Services when at Home?

<- View Parent
motruck@lemmy.zip ⁨11⁩ ⁨hours⁩ ago

DNS server you use from your home network retuns 192.168.1.20 for your service hosted at jellyfin.Bob.org

The DNS server you hit when publically looks up jellyfin.Bob.org and gets the IP from the nameserver you have set with your domain registrar often just theirs and you set this to your home WAN ip.

You have to configure both. I use opentofu / terraform to configure both all from the CLI. Any software like DNS that has a bunch of implementations that doesn’t have Open-Tofu support gets skipped and an alternative is found at this stage. You just can’t beat config as code for this type of set up.

You can also use NAT reflection which will effectively reroute the connection from within your network to your external IP to work on your local network.

I started with reflection and ended up going to the multiple DNS servers as it felt cleaner and I already was running Adguard so why not.

Both adguard and pihlle have opentofu modules.

source
Sort:hotnewtop