Hello I am trying to go to dev.xxxxxxx.com that points to my main interface IP. It works when I am outside the network. But when I am in the lan I have to go to the LAN address. What do I need to do?
your web server is located in your lan and you are using nat to access this server through internet. that fine, what you want. if you want to access this server with single ip from land and wan then put a public ip on this server
I assume you are performing NAT?
If so what type of NAT is this? Domain based Iip nat inside/outside) or domain less ( NVI based NAT - ip nat enable)
Between the two the nat order is different - please review this post - here
As per my understanding you have hosted this web server with in your network so when you are accessing it from external it uses the public DNS entry and uses the public IP address however when you are in your LAN network it routes directly to its private/LAN IP address. check the local DNS in your LAN where it points to if you dont have DNS locally and you are using LAN IP to access this server you can create DNS entry.
Thanks & Regards