An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
Hi,
What you are seeing is normal and expected for Azure SQL Managed Instance. The VNet-local endpoint domain name (sqlmi-db-qppoc-dev-ci.18455edec727.database.windows.net in your case) resolves to the private IP address for the SQL MI in the VNet. This is resolved through Azure's public DNS automatically.
In your case when on-premises PC attempts to connect it sends DNS lookup to your AD DNS server, which forwards it to public DNS resolver, which performs recursive lookup. Azure's public DNS returns the private IP for the VNet-local endpoint.
Below is excerpt from Azure SQL MI connectivity documentation:
VNet-local endpoint
The VNet-local endpoint is the default means to connect to SQL Managed Instance. The VNet-local endpoint domain name is in the form of
<mi_name>.<dns_zone>.database.windows.net. This domain name resolves to an IP address from the subnet's address range. Use the VNet-local endpoint to connect to a SQL Managed Instance in all standard connectivity scenarios. The VNet-local endpoint accepts connections on port 1433.The VNet-local endpoint supports Proxy and redirect connection types.
When connecting to the VNet-local endpoint, always use its domain name and allow inbound traffic on the required ports across the entire subnet range, as the underlying IP address can occasionally change.
To find the VNet-local endpoint domain name for an instance:
- Azure portal: On the Overview pane after you select your SQL managed instance, in the Essentials section, the Host value shows the VNet-local endpoint domain name.
- PowerShell:
Get-AzSqlInstance -ResourceGroupName <resource-group> -Name <mi-name>shows the VNet-local endpoint domain name as thefullyQualifiedDomainNameproperty.- Azure CLI:
az sql mi show -g <resource-group> -n <mi-name>shows the VNet-local endpoint domain name as thefullyQualifiedDomainNameproperty.For improved security, specify an encrypted connection, and don't trust the certificate. For more information, see Security overview.
Please click Accept Answer and upvote if the above was helpful. If something is unclear, please add comment below.
Thanks.
-TP