Microsoft Azure DNS

Having reviewed Azure DNS, I am glad to say a vital important service has become available as Azure service. It is an internet facing service for DNS domains and hosted on Azure’s DNS servers. Domain name purchasing is not currently supported. Azure`s name servers uses anycast routing to assure the best possible performance and availability.

Let me give some details about pricing. It does not entail upfront cost, termination fee. You are going to pay for what you use. Additional details about pricing are depicted below.

clip_image002

Azure powershell, Azure portal(gui) or cross-platform CLI are options for managing the Azure DNS service. In my opinion, configuration and usage are pretty simple 🙂

At first, I will use GUI to create a zone. You need to login to the management portal to proceed.

clip_image004

Click the DNS zone line and the next blade will be spawned J

clip_image005

Type the information requested above regarding to you needs and hit the create button.

clip_image006

I have created a sample zone by using the GUI. You may query the zone records to verify the configurations.

clip_image007

clip_image008

clip_image010

I will carry on with Azure PowerShell. To install the Azure Powershell from the gallery, you just need to run few cmdlets 🙂

# Install the Azure Resource Manager modules from the PowerShell Gallery

Install-Module AzureRM

# Install the Azure Service Management module from the PowerShell Gallery

Install-Module Azure

Let`s login by using the cmdlets shown below.

PS C:\> Login-AzureRmAccount  #To login
PS C:\> Select-AzureRmSubscription -Subscriptionid "GUID of subscription" #To choose the subscription
I will get some information about the zone and the record I have created earlier by using the Azure powershell.
clip_image011

PS C:\> Get-AzureRmDnsRecordSet -ZoneName assessnewtechs.com -ResourceGroupName MyDNSRG1

You can run the cmdlet shown above to list DNS records in the zone.

Let`s review the record set and create two records as shown below

Samplerec1.assessnewtechs.com. 3600 IN A 2.3.5.7

Samplerec1.assessnewtechs.com. 3600 IN A 1.2.3.4

PS C:\> $myrecordset1= New-AzureRmDnsRecordSet -name samplerec1 -RecordType A -ZoneName assessnewtechs.com -ResourceGroupName MyDNSRG1 -Ttl 30

The record set has been created with the given information and the variable will be used to create two similar dns records.

PS C:\> Add-AzureRmDnsRecordConfig -RecordSet $myrecordset1 -Ipv4Address 2.3.5.7

PS C:\> Add-AzureRmDnsRecordConfig -RecordSet $myrecordset1 -Ipv4Address 1.2.3.4

PS C:\> Set-AzureRmDnsRecordSet -RecordSet $myrecordset1 #To commit the changes!

Let`s list dns records.

PS C:\> Get-AzureRmDnsRecordSet -name samplerec1 -recordtype A -ZoneName assessnewtechs.com -ResourceGroupName mydnsrg1

Name : samplerec1

ZoneName : assessnewtechs.com

ResourceGroupName : mydnsrg1

Ttl : 30

Etag : 612fbafc-6f47-4c2a-b29b-7daed287cfd9

RecordType : A

Records : {2.3.5.7, 1.2.3.4}

Tags : {}

You can review the result of the basic query to confirm records.

clip_image012

I will share some documentation links for further information about managing dns zones and records including reverse ones.

Let`s try to import the existing dns zone data file -a text file, into the Azure DNS hosted service! To get through this you need to use the Azure cross-platform CLI. (a.k.a xplat)

clip_image014

To authenticate , use the code generated(sample view is shown above).

clip_image016

As you can see above, several records are updated successfully. You can also verify updates by browsing the Azure portal, powershell or xplat.

clip_image017

IMPORTTANT NOTICE: All records shown above are sample records and created for evaluation only!

You can also use the cross platform cli tool to export the existing DNS zone as well.

There are several informative web pages in resource section at the end of the post. You can review and learn more(information, limitations and considerations) about the hosted service.

Have a nice day!

Resources

https://azure.microsoft.com/en-us/documentation/articles/dns-import-export/

https://azure.microsoft.com/en-us/documentation/articles/dns-reverse-dns-record-operations-ps/

https://azure.microsoft.com/en-us/documentation/articles/dns-operations-recordsets/

https://azure.microsoft.com/en-us/documentation/articles/dns-operations-dnszones/

https://azure.microsoft.com/en-us/documentation/articles/dns-getstarted-create-recordset/

https://azure.microsoft.com/en-us/pricing/details/dns/

https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/

https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-connect/

Leave a Reply

Your email address will not be published. Required fields are marked *