Share via

App service allows any custom domain

Lukasz Malec 0 Reputation points
2026-04-03T16:12:36.1666667+00:00

Hello,
Something has changed and domain ownership status is no longer validated correctly. I can pass validation and add custom binding to arbitrary domain that I don't own. Is this a bug?
User's image

edited PII info

Azure App Service
Azure App Service

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


1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-03T16:12:54.9766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Azure App Service still requires proof of domain ownership; it does not intentionally allow arbitrary domains to be bound.

    From the documented behavior:

    • Domain ownership is validated by checking that the required DNS records (CNAME/A and usually the asuid TXT record) exist in the authoritative DNS zone for the domain and are publicly resolvable.
    • Validation succeeds only when those records are present and match the values that App Service expects. If the TXT or CNAME/A records are missing, incorrect, or not yet propagated, validation fails with errors such as Cannot verify domain ownership or DNS record could not be located.
    • Internal or non‑resolvable domains cannot be validated on the public multi‑tenant App Service at all.

    If a domain that is not actually owned can be validated and added, that indicates a misconfiguration in DNS (for example, the domain’s DNS already contains the CNAME/TXT values pointing to the app) or a platform issue. The platform is designed to prevent “hijacking” by requiring the TXT verification record and matching CNAME/A records.

    Recommended actions:

    1. Confirm which DNS provider is authoritative for the domain and verify the TXT and CNAME/A records there (not just at the registrar UI). Use public DNS tools as described in the troubleshooting guidance to see what Azure is actually reading.
    2. If validation is succeeding without the expected DNS records being present in the authoritative zone, open an Azure Support ticket. Provide:
      • The App Service name and region.
      • The exact custom hostname.
      • DNS query results (TXT and CNAME/A) from public resolvers.

    This scenario should be treated as a support case so the Azure App Service team can investigate whether there is a platform bug or stale validation state.


    References:

    0 comments No comments

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.