Home » Cloud » Azure » Azure DNS

Azure DNS

Azure DNS is a hosting service for DNS domains that provides name resolution by using Microsoft Azure infrastructure. By hosting your domains in Azure, you can manage your DNS records by using the same credentials, APIs, tools, and billing as your other Azure services.

You can’t use Azure DNS to buy a domain name. You can buy a domain name for an annual fee using App Service domains or a third-party domain name registrar. Your domains then can be hosted in Azure DNS for record management. For more information, see Delegate a domain to Azure DNS.

The guide for basic Azure DNS implementation.

Objectives

  • Azure DNS Basics
  • Implementing Azure DNS

Create a DNS zone

  1. Sign in to the Azure Portal.
  2. On the Hub menu, click All services and search for and select DNS zones.

  1. Click + Add.

  1. On the Create DNS zone tab enter the following values, then click Review + create and then click Create:

Add a new record to a record set

  1. In the Azure Portal, navigate to All resourcesand select your DNS zone you created in the previous task.

Note: Each DNS zone is its own resource, and information such as number of record-sets and name servers are viewable from this view.

  1. Click + Record Set.

  1. Enter testcode for the name and 2.2.2as the IP address and click OK.

Update a record

  1. In the Overview tab for your DNS zone, select the testcode you created.

  1. Under IP Address add the test address of 2.2.2 and click Save.

Remove a record from a record set

You can use the Azure portal to remove records from a record set. Note that removing the last record from a record set does not delete the record set.

  1. In the Overview pane for your DNS zone, select the testcode you created.

  1. Select Delete and click Yes when prompted.

NS and SOA records

NS and SOA records that are automatically created are managed differently from other record types.

Modify SOA records

You cannot add or remove records from the automatically created SOA record set at the zone apex (name = “@”). However, you can modify any of the parameters within the SOA record (except “Host”) and the record set TTL.

Modify NS records at the zone apex

The NS record set at the zone apex is automatically created with each DNS zone. It contains the names of the Azure DNS name servers assigned to the zone.

You can add additional name servers to this NS record set, to support co-hosting domains with more than one DNS provider. You can also modify the TTL and metadata for this record set. However, you cannot remove or modify the pre-populated Azure DNS name servers.

Note that this applies only to the NS record set at the zone apex. Other NS record sets in your zone (as used to delegate child zones) can be modified without constraint.

Delete SOA or NS record sets

You cannot delete the SOA and NS record sets at the zone apex (name = “@”) that are created automatically when the zone is created. They are deleted automatically when you delete the zone.

You are then prompted to confirm you are wanting to delete the DNS zone. Deleting a DNS zone also deletes all records that are contained in the zone.