IT & IoT Security | Cloud | It's all about the life itself

Nothing in life is as important as you think it is, while you are thinking about it.

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.


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.


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


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


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




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.

PS C:\> Get-AzureRmDnsRecordSet -ZoneName -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 3600 IN A 3600 IN A

PS C:\> $myrecordset1= New-AzureRmDnsRecordSet -name samplerec1 -RecordType A -ZoneName -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

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

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

Let`s list dns records.

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

Name : samplerec1

ZoneName :

ResourceGroupName : mydnsrg1

Ttl : 30

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

RecordType : A

Records : {,}

Tags : {}

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


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)


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


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


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!


Leave comment

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