I have created an Azure DNS Zone that is acting as the public resolver for hostname resolution. For example, bash $> nslookup myhost.mydomain.com
will resolve to xx.yy.zz.aa via Azure name servers when called by an external non-azure host.
The domain mydomain.com
is obtained from Google Domains where I have delegated all 4 name servers over to Azure servers. The Google Domain DNS recordset is otherwise empty.
In Azure, The DNS Zone includes an "A" RecordSet that is an Azure Alias to the public IP of the internal VM that is externally known as myhost
.
Working well for external hosts, the lookups (and other usages) fail if called from an internal host. For example, on myhost
itself or on a peer host in the same internal subnet, the nslookups fail (don't resolve) and the nslookup mydomain.com
request retrieves only the internal private IP for the virtual network, the 10. one.
What am I failing to do in order to get internal hosts to resolve FQDNs like the external ones can?