Export DNS records for a private endpoint by using the Azure portal

A private endpoint in Azure requires DNS records for name resolution of the endpoint. The DNS record resolves the private IP address of the endpoint for the configured resource. To export the DNS records of the endpoint, use the Azure Private Link Center in the portal.

Prerequisites

Export endpoint DNS records

In this section, you sign in to the Azure portal and search for the Private Link Center.

  1. Sign in to the Azure portal.

  2. In the search box at the top of the portal, enter Private Link.

  3. Select Private link.

  4. In the Private Link Center, select Private endpoints.

    Screenshot that shows selecting private endpoints in the Private Link Center.

  5. In Private endpoints, select the endpoint for which you want to export the DNS records. Select Download host file to download the endpoint DNS records in a host file format.

    Screenshot that shows downloading endpoint DNS records.

  6. The downloaded host file records look similar to this example:

    # Exported from the Azure portal "2021-07-26 11:26:03Z"
    # Private IP    FQDN    Private Endpoint Id
    10.1.0.4    mywebapp8675.scm.azurewebsites.net    #/subscriptions/7cc654c6-760b-442f-bd02-1a8a64b17413/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/mywebappendpoint
    10.1.0.4    mywebapp8675.azurewebsites.net    #/subscriptions/7cc654c6-760b-442f-bd02-1a8a64b17413/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/mywebappendpoint
    

Next steps

To learn more about Azure Private Link and DNS, see Azure private endpoint DNS configuration.

For more information on Azure Private Link, see: