Azure App Service default hostname returns authoritative DNS NXDOMAIN despite app being healthy

Louis Missewu 5 Reputation points
2026-11-12T22:20:10.81+00:00

Hello Microsoft Azure community,

We are experiencing a DNS resolution issue with an Azure App Service (Linux, Node.js 24) deployed in the Switzerland North region.

Problem

The Azure-assigned default hostname returns NXDOMAIN, even though the App Service is running and Azure reports it as healthy.

Environment

  • Service: Azure App Service (Linux)

Region: Switzerland North

Runtime: Node.js 24 LTS

App Service plan: Basic B1

Authentication: Microsoft Entra ID enabled

Default hostname: Azure-generated, region-specific *.switzerlandnorth-01.azurewebsites.net

Observations

Azure Portal reports the App Service as Running, with a healthy runtime and Health Check showing 100% healthy.

The default hostname is listed in the App Service configuration and shown as verified.

GitHub Actions successfully builds and deploys the application using Azure OIDC authentication.

The final deployment verification fails with curl: (6) Could not resolve host.

DNS lookups using public resolvers, including 1.1.1.1, return NXDOMAIN.

Direct DNS queries to Azure's authoritative name servers (ns1-34.azure-dns.com, ns2-34.azure-dns.net, ns3-34.azure-dns.org, and ns4-34.azure-dns.info) also return authoritative NXDOMAIN.

A test using curl --resolve to connect directly to the App Service's reported inbound IP address reached the HTTP endpoint but returned 404 Site Not Found.

Question

Could this indicate an issue with Azure-managed DNS registration or hostname provisioning for the App Service?

What is the recommended way to investigate or restore DNS resolution for an Azure-assigned default hostname without recreating the App Service or disrupting its existing configuration?

We would appreciate guidance on any additional diagnostic steps that can be performed from the Azure Portal or Azure CLI.

Thank you.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Alex Burlachenko 26,305 Reputation points MVP Volunteer Moderator
    2026-11-25T10:04:06.4066667+00:00

    hi Louis Missewu & thx for join me at Q&A platform,

    ur diagnostics strongly suggest an Azure-managed DNS or hostname provisioning issue rather than an application runtime problem.

    The authoritative NXDOMAIN response is particularly significant, provided the queried name servers are authoritative for the exact hostname.

    I'd first verify the hostname registration through ARM

    az webapp show -g <resource-group> -n <app-name> \
      --query "{state:state,defaultHostName:defaultHostName,enabledHostNames:enabledHostNames,publicNetworkAccess:publicNetworkAccess}"
    

    Then verify the DNS delegation chain

    dig +trace <default-hostname>
    

    The 404 Site Not Found response when bypassing DNS may additionally indicate a hostname-to-frontend routing inconsistency, assuming the correct inbound IP and hostname were used.

    A healthy application does not necessarily mean that its DNS registration and frontend routing are functioning correctly.

    If ARM confirms the hostname but authoritative DNS returns NXDOMAIN, I'd open an App Service support case requesting investigation of Azure-managed DNS registration and frontend hostname bindings.

    Include the resource ID, DNS query results, inbound IP address and UTC timestamps. I wouldn't recreate the application, modify its authentication settings or redeploy the application code. None of these actions directly addresses the suspected infrastructure issue.

    Best regards,

    Alex

    💬 P.S. Did this help? Mark it as the solution: it keeps me motivated!

    ➕ Follow me on Q&A for more answers

    📝 And feel free to visit my blog → https://ctrlaltdel.blog/

    Was this answer helpful?

    0 comments No comments

  2. kagiyama yutaka 5,920 Reputation points
    2026-11-21T06:08:04.34+00:00

    I think this could be an Azure-side DNS or hostname provisioning issue. A healthy app and successful deployment don't rule it out.Check the actual hostname and inbound IP in Cloud Shell:

    az webapp show -g YOUR_RG -n YOUR_APP --query "{host:defaultHostName,enabled:enabledHostNames,ip:inboundIpAddress,id:id}"

    Make sure host is in enabled and matches your DNS queries and GitHub Actions URL. Check DNS for any listed SCM hostname too. Then test with the returned host and IP:

    curl -v --resolve "HOST:443:IP" "https://HOST/"

    The 404 alone doesn't prove a binding issue. Keep the full response. If the exact hostname still returns authoritative NXDOMAIN, open an App Service support case. Send the resource ID, UTC time, DNS results and curl output. Ask them to investigate DNS registration and hostname routing without recreating the app.

    Was this answer helpful?


Your answer

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