question

DrAhmedQusaySabri-2869 avatar image
0 Votes"
DrAhmedQusaySabri-2869 asked ryanchill commented

Azure web app custom domain problem

i have an Azure web app and I give it a custom domain name like (www.mysite.com), then i change the custom domain name to the name (www.subdomin.mysite.com), the problem i can not reach the first domain name (www.mysite.com) it gives the following:

404 Web Site not found.
You may be seeing this error due to one of the reasons listed below :
Custom domain has not been configured inside Azure. See how to map an existing domain to resolve this.
Client cache is still pointing the domain to old IP address. Clear the cache by running the command ipconfig/flushdns.

azure-webapps-custom-domains
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ryanchill commented

Hi @DrAhmedQusaySabri-2869,

Since your domain was working and you changed it, have a look at Migrate an active DNS name to Azure App Service documentation. You need to add a CNAME record that points www.subdomain.mysite.com to your app service in your DNS registrar. I would, however, suggest using a wildcard e.g. .mysite.com assuming subdomain* isn't a separate app service.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ryanchill,

first, I would like to thank you for your reply, actually, I have done all the correct technical steps needed to migrate the DNS name to the original host but Azure still kept the name, coincidently and after 24 hours from changing the hostname it is working now properly, I think Azure release the domain name within that period of time.

what I have learned from this issue:
- apply a new Azure web app custom domain name taking only a few minutes.
- delete the Azure web app custom domain name may take at least 24 hours. i.e. (Azure takes some time to release the domain name again for you).

0 Votes 0 ·
ryanchill avatar image ryanchill DrAhmedQusaySabri-2869 ·

Gald to hear it. Sounds like you ran into this common issue. It isn't Azure pre se but just takes time for DNS changes to propagate. Rule of thumb is wait 48 hours and use WhatsMyDNS.net to check.

0 Votes 0 ·