We have a domain, gitserver.ourdomain.com, whose DNS points to our WAN IP address. Our Juniper is then configured with NAT to send requests to our reverse proxy (Nginx). Everything works great externally. However, internally, we cannot access gitserver.ourdomain.com because of the way the NAT is set up. I'm fairly new to the Juniper world, so instead of configuring a new NAT entry, I thought I'd just use the static-host-mapping method to point gitserver.ourdomain.com to the IP address:
static-host-mapping {
gitserver.ourdomain.com inet 192.168.1.22;
}
But this does not work. When I ping it internally (after flushing DNS), it still resolves to the WAN address. What am I missing?