Private Azure DNS zones

Private zones is currently in preview, and in a nutshell, it does the common tasks that any DNS zone can do, but in a more customized way. So, you can assign the private DNS zone to a virtual network. As a result, you can do whatever you want to do within this virtual network with a DNS only associated with it, and you do not get the information within this virtual network exposed externally. Private DNS zones support most of the common DNS records.

To use private DNS zones, you need to send your subscription details to [email protected], since it is available in preview currently.

Also, creating private DNS zones and configuring DNS zones at the time of writing is only supported via PowerShell.

Therefore, in order to create a private DNS zone, you need to do the following:

  1. Retrieve the VNet and store it in a PowerShell variable, as you've learned from the Chapter 1Azure Virtual Networks 101Add Address Space to a Virtual Network using PowerShell section.
  2. Then, run the following cmdlet:
New-AzureRmDnsZone -Name InternalDNS.Private -ResourceGroupName PacktPub -ZoneType Private -ResolutionVirtualNetworkId @($VNet.Id)

Where $VNet is the PowerShell variable that you have retrieved from the virtual network information for which you need to assign this DNS zone.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset