Lesson 3 of 6 Azure Networking Services

Hosting Domains with Azure DNS

This lesson explains DNS zones and records, what Azure DNS provides, its benefits, and the limits that exam questions test.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the purpose of Azure DNS.
  • Identify the benefits of hosting DNS in Azure.
  • Explain how a domain is delegated to Azure DNS.

DNS in brief

The Domain Name System (DNS) translates human-readable names, such as www.contoso.com, into IP addresses that computers use to connect. Names are organized into DNS zones, one for each domain, which contain records: an A record maps a name to an IPv4 address, an AAAA record to an IPv6 address, a CNAME record maps one name to another, an MX record identifies mail servers, and a TXT record holds text, often used to prove domain ownership.

Match the pairs

DNS record types

Exam skills 2.2.5

Match each DNS record type with what it holds.

Log in to try this activity Interactive activities are free with an account.

What Azure DNS provides

Azure DNS is a hosting service for DNS domains that provides name resolution by using Microsoft Azure infrastructure. Azure DNS public zones are served from a global network of DNS name servers using anycast networking, so each query is answered by the closest available server, which gives high availability and fast responses. Azure DNS also supports private DNS zones, which provide name resolution inside virtual networks using custom domain names rather than the names Azure assigns.

The main benefits of Azure DNS are:

  • Reliability and performance from Azure's global network of name servers.
  • Security: Azure DNS is based on Azure Resource Manager, so access is controlled with Azure RBAC, changes are recorded in activity logs, and resource locks can prevent accidental deletion of a zone.
  • Ease of use: DNS records are managed with the same credentials, APIs, tools, billing and support as other Azure services, from the portal, CLI, PowerShell or templates.
  • Alias records: a record can point directly to an Azure resource, such as a public IP address or an Azure Front Door endpoint, and updates automatically if the resource's IP address changes.
True or false

Azure DNS features

Exam skills 2.2.5

Check what Azure DNS provides and how it works.

Log in to try this activity Interactive activities are free with an account.

Limits to remember

Azure DNS hosts domains; it is not a domain registrar, so you cannot buy a domain name through Azure DNS. You buy a domain from a registrar (or through App Service domains, which uses a third-party registrar) and then delegate it to Azure DNS by updating the domain's name server (NS) records at the registrar to point to the Azure DNS name servers assigned to your zone. Until the delegation is in place, internet clients continue to use whichever name servers the registrar lists.

Worked example

Hosting a domain

A company has bought the domain fabrikam.com from a third-party registrar and wants to manage its DNS records in Azure so that administrators use the same accounts and role-based access as for other Azure resources. What must the company do?

Create a public DNS zone named fabrikam.com in Azure DNS, add the required records, and then delegate the domain by updating the NS records at the registrar to the four Azure DNS name servers shown for the zone. Access to the zone is then controlled with Azure RBAC. The company does not need to transfer or buy the domain through Azure, which Azure DNS does not support.

Check yourself

Can you buy a domain name with Azure DNS?

Show answer

No. Azure DNS hosts zones; you buy the domain from a registrar and delegate it to Azure DNS name servers.

Exam Tips

Remember for the exam

  • Azure DNS hosts DNS zones on Azure's global anycast network of name servers.
  • Records are managed with Azure credentials, RBAC, activity logs and locks.
  • Azure DNS cannot be used to buy a domain; delegate a domain to it from the registrar.
  • Private DNS zones provide custom name resolution inside virtual networks.