Ok, I think I have an idea why this happens. Say your router has the internet IP address 22.214.171.124 and a local IP address 192.168.2.1 (you're using the local net 192.168.2.0). When external users try to access www.domain.com
, the DNS server tells them it's 126.96.36.199, they go to your router, and your router does port forwarding to 192.168.2.100. Everything's fine.
When you do this from your local network, when you reach the router, I think the router decides that you're already in the local network and that there's no need for port forwarding, so you don't see www.domain.com
Is this the "proper" way to configure? Or is this just a work around? I would like to configure it the proper way.
192.168.2.100 domain.com www.domain.com
Leave it as it is!