I’m running NetBird in my homelab and I want the same hostname to work both on LAN and over NetBird VPN.
Goal: -> myapp.mydomain.cloud → SERVER_IP:APP_PORT
Expected behavior is
On LAN → resolves to local server IP
On NetBird → resolves to NetBird private IP
I’m also using Cosmos as a reverse proxy.
If I use NetBird DNS zones, can I reach my apps this way via vpn but not via lan as espected. I tried installing pihole to resolve lan dns and it doesn't seem to work properly.
What’s the correct way to do this? This is my first home server so I’d appreciate a clear, step-by-step explanation. Thank you!