This is my network configuration:
I have three VLANs in my home network. VLAN1 is the default LAN with no domain name, just a workgroup name. VLAN2 is a LAN with domain name of A. VLAN3 is a LAN with domain name of B. I have users on either VLAN1 or VLAN2. I have multiple web services running on all 3 VLAN. Most of which are on VLAN2 and VLAN3. In order to properly resolve URLs (e.g. A.com, A.com/Test1, A.com/Test2, or B.com) externally, I use a combination of reverse proxy (Nginx) and port forwarding (via router).
The problem is that I want to use the same URLs internally as well; however, I can't figure how to configure my home network to properly resolve them properly. Users on VLAN1 use the router as DNS and resolve the URLs to be the router's external IP address, which is wrong. Port forwarding doesn't work for intranet. Users on VLAN2 use the Active Directory server as DNS and resolve only A.com URLs to itself. Other URLs under A.com would not get referenced correctly as it is handled by Nginx server externally when it is port forwarding from the router.