Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @second
Your DNS records look structurally correct for an App Service apex/root domain: the A record points to the App Service IP, and asuid.gallerietsecondhand.com contains the Custom Domain Verification ID. Microsoft documents this as the expected configuration.
Since the TXT record now resolves correctly from both 1.1.1.1 and Azure Cloud Shell, but both Portal and az webapp config hostname add return the same TXT-not-found error, this no longer looks like a simple Portal issue.
The earlier DNSSEC problem is important. First, verify the complete authoritative chain rather than only querying 1.1.1.1:
dig +trace gallerietsecondhand.com
dig +trace TXT asuid.gallerietsecondhand.com
dig TXT asuid.gallerietsecondhand.com @<authoritative-nameserver>
Make sure all authoritative name servers return the same TXT value and that no DNSSEC validation errors remain.
Also verify that the TXT value still exactly matches the Custom Domain Verification ID currently displayed in App Service → Custom domains. It specifically requires the asuid TXT value to match that verification ID.
If the authoritative DNS/DNSSEC checks are clean and the verification ID matches, leave the DNS records in place and allow time for cached DNS state to expire rather than repeatedly changing them. DNS changes can take up to 48 hours to propagate depending on previous TTL/cache state.
You can also run App Service → Diagnose and solve problems → SSL and Domains → All Certificates & Domains Checks, which is recommended when domain validation remains stuck after DNS has been verified.
If it still fails after the DNSSEC repair has fully propagated, open an Azure support request and include the CLI failure, timestamp, App Service resource ID, domain, and the successful authoritative TXT/DNSSEC results. At that point, Microsoft may need to check the App Service hostname-verification path/backend rather than the DNS configuration itself.
Do not remove the asuid record while troubleshooting. Keep it, as it also helps prevent another Azure subscription from validating and taking over the hostname.
References:
Troubleshoot custom domain issues in Azure App Service
Set up an existing custom domain in Azure App Service
Prevent subdomain takeover in Azure App Service
Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.