Guide · Azure DNS

How to add a CNAME record at Azure DNS

The steps to point a subdomain such as shop.yourdomain.com to a platform with a CNAME record at Azure DNS, without touching your website or email records.

Reviewed on 1 December 2026

Before you start

You need access to the panel where the domain's DNS is hosted, and the name and target the platform asked for. Make sure the DNS really is at Azure DNS: the domain's nameservers end in azure-dns.com or azure-dns.net or azure-dns.org or azure-dns.info. If they end in something else, the zone is edited in another panel; the checker below shows the nameservers.

Step by step

The record to add, for shop.yourdomain.com
Type
CNAME
Name
shop
Target
customers.yourapp.com
TTL
3600

Use the name and target your platform gave you; these are examples.

  1. Sign in to the Azure portal, type DNS zones in the search box at the top and select it from the results.
  2. Select the DNS zone of your domain from the list.
  3. At the top of the zone's Overview page, select + Record sets, then + Add.
  4. On Add record set, type only the subdomain in Name, choose CNAME in Type and paste the target in Alias.
  5. Fill in TTL and TTL unit (for example 600 and Seconds) and select Add. Keep every other record set, especially those of your website and email.

What to type in each field

FieldWhat to type
TypeCNAME
Name / HostOnly the part before your domain: shop for shop.yourdomain.com. Do not repeat the domain.
Value / TargetThe address the platform gave you, for example customers.yourapp.com. Some panels want a final dot, others add it themselves.
TTLThe panel default is fine (for example 3600 seconds, or 1 hour).

Good to know at Azure DNS

  • Azure DNS assigns each zone four name servers, one per ending: azure-dns.com, azure-dns.net, azure-dns.org and azure-dns.info (for example ns1-37.azure-dns.com). The zone's Overview page lists them, and its records only answer once the domain is delegated to all four.
  • A CNAME record set holds a single record and cannot share its name with any other record set. Azure DNS also refuses a CNAME at the zone apex (@), which already holds the NS and SOA record sets.
  • The form shows Alias record set; leave it on No. Microsoft says Yes is for pointing at an Azure resource or a record set in the same zone.

The panel steps on this page follow the provider's own help, read on 1 December 2026: Microsoft Learn: create DNS records for a web app in a custom domain · Microsoft Learn: DNS zones and records · Microsoft Learn: alias records overview.

Check that it worked

Type the full name (for example the subdomain plus your domain) and, if you want, the target you expect. The checker asks the zone's own nameservers, not a cache, so a record saved a minute ago already shows.

Or open the full CNAME checker.

Common mistakes

  • Domain repeated in the name. Typing shop.yourdomain.com in the name field creates shop.yourdomain.com.yourdomain.com.
  • CNAME at the root of the domain. The bare domain cannot hold a CNAME; use the subdomain the platform asked for.
  • Another record at the same name. A CNAME cannot share its name with an A, AAAA, TXT or another CNAME. Find out what the old record does before removing it.
  • Editing the wrong panel. The company where you bought the domain is not always the one that hosts its DNS. The nameservers decide.
  • After saving, wait for propagation and confirm the CNAME on the authoritative nameservers (the checker on this page does that).

Other guides