Share via

Private DNS resolving issue for App Services

Steven J. Williams 25 Reputation points
Jul 14, 2023, 12:43 PM

I have created a private DNS zone in azure called privatelink.azurewebsites.net and set an A record with MyAppName with an internal IP. I also have a conditional forwarder set in my on prem AD DNS. When I try to resolve MyAppName.azurewebsites.net it comes back with the public IP of hosts.MyAppName.azurewebsites.net and I see the alias for MyAppName.azurewebsites.net below that. From what I understand is if there is a privatelink zone with alias that is prioritized over the public IP. I have this working for other records but they are not app services. Is there something else that needs to be done with app services for this to work correctly?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
708 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,096 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 26,936 Reputation points Microsoft Employee
    Jul 15, 2023, 12:14 AM

    @Steven J. Williams

    Thank you for reaching out.

    Based on your question above I understand you are using a conditional forwarder to resolve your private DNS zone entries in your ON-prem network. For your web app you have deployed a private DNS zone names privatelink.azurewebsites.net and set an A record with MyAppName with an internal IP.

    Based on the documentation here Can you please confirm if you have set the DNS records as shown below?

    User's image

    Also, can you please confirm if you configured your set-up as described here

    • On-premises network with a custom DNS solution in place 
    • Virtual network connected to on-premises
    • DNS forwarder deployed in Azure.
    • Private DNS zones privatelink.azurewebsites.net with type A record
    • Private endpoint information (FQDN record name and private IP address)

    Please let me know if you have any additional questions. Thank you!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.