On Tue, 16 Feb 2016 09:15:43 +0000 Timothy Murphy wrote:
you could run split DNS, so on your LAN, mydomain.com is 192.168.x.x while on the internet, mydomain.com is the actual IP address.
I'd rather not run a DNS server on my machine. I tried this some years ago, and ran into trouble.
Why not put mydomain.com 192.168.whatever in your /etc/hosts file? No need to run a dns server to hard-code one single lookup like that.