Share via

While setting up custom domains URL for static web app Cannot add DNS record for alias because Microsoft DNS doesn't have option for alias and only cname

Constantin Dragomirov 0 Reputation points
2026-03-06T18:28:35.1633333+00:00

At Microsoft 365 admin center -> Domains -> Manage DNS

While setting up custom domains URL for static web app Cannot add DNS record for alias because Microsoft DNS doesn't have option for alias and only cname.
Going through instructions on https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-external cannot complete last step.
So, when typing my domain name connetco.com without "www" page doesn't redirect to [WWW URL]

Azure DNS
Azure DNS

An Azure service that enables hosting Domain Name System (DNS) domains in Azure.


2 answers

Sort by: Most helpful
  1. TP 155.2K Reputation points Volunteer Moderator
    2026-03-09T09:37:32.05+00:00

    Hi Constantin,

    To be able to use ALIAS record you will need to switch your name servers to DNS provider that supports it. Before you switch, it is critical that you create all of the necessary DNS records on the new provider to support your Microsoft 365 services.

    For example, let's say your plan is to switch to Azure DNS. First you would create the Azure DNS Public DNS zone for your domain, then examine your existing DNS records in M365 admin portal and re-create most of them in your Azure DNS zone.

    Once you are confident you have everything correct you can switch the name servers to point to your Azure name servers in Network Solutions portal. After the switchover you would test periodically and continue to monitor things for several days in case there are any issues.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

  2. Constantin Dragomirov 0 Reputation points
    2026-03-06T21:05:36.7766667+00:00

    There are two issues.

    1. My registrar is Network solution and domain forwarding option is disabled.
    2. I host my email at Microsoft.
      How these changes will affect my email?
    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.