You must configure the custom domain in both Azure App Service and the domain’s authoritative DNS service; the domain can remain registered with Network Solutions.
1. Identify where DNS is hosted
Check the domain’s authoritative nameservers. Use Network Solutions’ DNS interface only if those nameservers point to Network Solutions. If they point to Azure DNS or another provider, create the records there instead. The registrar and DNS host can be different services.
Your App Service plan must be a paid tier rather than Free (F1), and the domain must use a public DNS zone.^1^
2. Start the custom-domain setup in Azure
- Open Azure portal → App Services → your app.
- Select Settings → Custom domains.
- Select Add custom domain.
- For Domain provider, select All other domain services.
- Enter the complete hostname:
- Root domain:
example.com
- Subdomain:
www.example.com
- Choose App Service Managed Certificate if the app is eligible and you want Azure to provide HTTPS, or choose Add certificate later.
- Do not select Validate yet.
- Under Domain validation, copy the DNS record values shown by Azure.^1^
3. Add the records at the authoritative DNS provider
Create the two records displayed by Azure. The normal configuration is:
For a root domain such as example.com:
| Type |
Host/name |
Value |
| A |
@ |
App Service IP address shown by Azure |
| TXT |
asuid |
Domain verification ID shown by Azure |
For a subdomain such as www.example.com:
| Type |
Host/name |
Value |
| CNAME |
www |
The app’s default hostname, such as yourapp.azurewebsites.net |
| TXT |
asuid.www |
Domain verification ID shown by Azure |
CNAME is recommended for subdomains because an App Service IP address can change in some circumstances. Do not configure both an A record and a CNAME for the same hostname because that creates a DNS conflict.^2^
The TXT verification record is strongly recommended because it proves domain ownership and helps protect against subdomain takeover.^1^
4. Validate and add the domain
- Save the DNS changes at the DNS provider.
- Return to App Service → Settings → Custom domains → Add custom domain.
- Select Validate.
- When both DNS records show green check marks, select Add.^1^
- If you selected an App Service Managed Certificate, allow a few minutes for Azure to issue and bind it.
You can then verify DNS resolution:
nslookup www.example.com
nslookup example.com
The result should resolve to the App Service hostname or IP address, depending on the record type used.^3^
If validation initially fails, allow time for DNS propagation and verify that the records were added to the authoritative DNS zone—not merely to an inactive zone at the registrar.
References
- Set up an existing custom domain in Azure App Service
- Troubleshoot custom domain issues in Azure App Service for web apps on Windows and Linux
- Use Azure DNS to provide custom domain settings for an Azure service