title: Can my Azure web apps access the internal DNS of my Virtual Network?
body: <p>I have configured my Azure Web Apps and App Hosting Plan to connect via Point-to-Site gateway with my Virtual Network in Azure.  I followed this article here:</p>
  
  <p><a href="https://azure.microsoft.com/en-us/documentation/articles/web-sites-integrate-with-vnet/" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/web-sites-integrate-with-vnet/</a></p>
  
  <p>I have a VM that is hosting DNS and my Virtual Network is configured to use this.</p>
  
  <p>I want to be able to reference services running in my Virtual Network from my Web Apps via domain name and not by direct IP address.</p>
  
  <p>It works fine if I connect using the VM's internal IP address eg 192.168.1.4. But, when I add a DNS A record pointing my-service.my-vnet.local to 192.168.1.4, my web app can't resolve the domain.</p>
  
  <p>I attempted to check the DNS settings of the web app and it appears my internal DNS server is not one of the hosts configured.  Here's the code I ran in my web app:</p>
  
  <pre><code>from nic in NetworkInterface.GetAllNetworkInterfaces()
  let props = nic.GetIPProperties()
  select String.Join("; ", props.DnsAddresses.Select(x =&gt; x.ToString()))
  </code></pre>
  
  <p>Is this possible to do?  If so, can anyone suggest what I need to do?</p>