A DNS zone is used to host the DNS records for a particular domain. For example, the domain ‘ccloudbuild.co.uk’ may contain a number of DNS records such as ‘mail.cloudbuild.co.uk’ (for a mail server) and ‘www.cloudbuild.co.uk’ (for a web site).
Azure DNS allows you to host your DNS zone and manage your DNS records, and provides name servers that will respond to DNS queries from end users with the DNS records that you create.
- Login to the Azure Portal
- Search DNS Zones and click
3. Select your subscription.
4. Create a new resource group or select an existing one.
5. Within the name field, input your domain name, for example cloudbuild.co.uk
6. Select your resource group location
7. Click Review + create, and click create when validation passes
- Click Go to resources or search DNS Zones via the search box
- You’ll find that a number of records have been created. You will require the 4 X NS records when updating your name server records at your domain registrar.
- Next, we move onto creating the required records to support your domain, starting with an A record.
The A in A record stands for Address. A Records are the simplest type of DNS records, and one of the primary records used in DNS servers. The A record contains the pairing between the IP address and the domain name. We will configured an A record to link the domain to a web server.
- Click + Record set
- Type www in the name field
- A – Alias record to IPv4 address should be selected by default. Select AAAA if you’re using IPv6.
- Configure alias record set to no
- TTL (Time to Live) which specifies how long the DNS servers cache the resolution before it’s removed. For the purpose of this demo, I’ll go with 30 minutes
- Finally, in the IP address field input the public IP address.
- Click OK
And that’s how you delegate a domain from the domain registrar to Azure DNS, and configure an A record to link the domain to a web server.