One vm deployed to azure, has a connection to four endpoints that are local servers all joined to a domain. The Azure VMrole has a HOSTS file that gives it public addresses for certain resources. These resources also have internal IP addresses.
Out of the blue, the Azure VM will begin using the internal IP addresses, even though there are HOSTS file entries. It is not configured to use local DNS server, only pointed to the local domain controller so it can join the domain.
Question: how is it resolving to the local IP address instead of the public IP address for these resources? How is this possible? Shouldn't it use the Azure DNS server and the HOSTS file shouldn't even be necessary correct?