I have a VNET with a few virtual machines (10.2.0.4-6), one of which is a DNS server and configured as such in the VNET. The DNS server has A records for each of these VMs to use their private IP rather than their public IP. The VMs resolve these names correctly.
I also have a web app on this VNET, but it is resolving the names of the VMs as their public IPs. How do I get the web app to use the VNET's DNS server? The web app can connect to the VMs by private IP, so the VNET appears to be connected properly.
-Stephen
SOLVED:
I had configured the DNS server after the VNET was connected to the web app. Restarting the web app is not sufficient for the web app to recognize the DNS server. The VNET must be disconnected from the web app and then reconnected.