What is Azure Private DNS? | Benefits | Capabilities | Configure the Azure DNS

Azure Cloud

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

In this blog we are going to talk about the Azure DNS, its features, and other functionalities. If you are preparing for a job in Azure or planning for Azure Administrator certification or Solution Architect certification, then this blog is going to be beneficial for you.

Topics we’ll cover:

What is Azure Private DNS?

Azure Private DNS provides a reliable and secure DNS service for your virtual network. Azure Private DNS manages and resolves domain names in the virtual network without the need to configure a custom DNS solution. By using private DNS zones, you can use your own custom domain name instead of the Azure-provided names during deployment.

Azure_Private_DNS

Using a custom domain name helps you tailor your virtual network architecture to best suit your organization’s needs. It provides a naming resolution for virtual machines (VMs) within a virtual network and connected virtual networks. Additionally, you can configure zone names with a split-horizon view, which allows a private and a public DNS zone to share the name.

CU

Benefits of Azure Private DNS

1. Removes the need for custom DNS solutions. Previously, many customers created custom DNS solutions to manage DNS zones in their virtual network. You can now manage DNS zones using the native Azure infrastructure, which removes the burden of creating and managing custom DNS solutions.

2. Automatic hostname record management. Along with hosting your custom DNS records, Azure automatically maintains hostname records for the VMs in the specified virtual networks. In this scenario, you can optimize the domain names you use without needing to create custom DNS solutions or modify applications.

3. Hostname resolution between virtual networks. Unlike Azure-provided hostnames, private DNS zones can be shared between virtual networks. This capability simplifies cross-network and service-discovery scenarios, such as virtual network peering.

4. Familiar tools and user experience. To reduce the learning curve, this service uses well-established Azure DNS tools (Azure portal, Azure PowerShell, Azure CLI, Azure Resource Manager templates, and the REST API).

5. Available in all Azure regions. The Azure DNS private zones feature is available in all Azure regions in the Azure public cloud.

Benefits_of_Azure_Private_DNS

 

Azure DNS Provides the Following Capabilities

  • Automatic registration of virtual machines from a virtual network that’s linked to a private zone with auto-registration enabled. Virtual machines get registered to the private zone as A records pointing to their private IP addresses. When a virtual machine in a virtual network link with auto-registration enabled gets deleted, Azure DNS also automatically removes the corresponding DNS record from the linked private zone.
  • Forward DNS resolution is supported across virtual networks that are linked to the private zone. For cross-virtual network DNS resolution, there’s no explicit dependency such that the virtual networks peer with each other. However, you might want to peer virtual networks for other scenarios (for example, HTTP traffic).
  • Reverse DNS lookup is supported within the virtual-network scope. Reverse DNS lookup for a private IP associated with a private zone will return an FQDN that includes the host/record name and the zone name as the suffix.

Configure the Azure DNS

In this section, you will learn how to create an Azure Private DNS Zone using the Azure portal. A DNS zone contains the DNS entries for a domain. To start hosting your domain in Azure DNS, you create a DNS zone for that domain name.

1. In the Azure portal, search for Private DNS zones and select Private DNS Zone.

2. Click on +Create to create a new Private DNS zone.dns

3. On the Create Private DNS zone page, type or select the following values:
Resource group: Select Create new, enter MyAzureResourceGroup, and select OK. The resource group name must be unique within the Azure subscription.
Name: Type private.contoso.com for this example.
DNS1

4. Select Create once validation is passed.
DNS2

5. Click on Go to Resource.
DNS3

6. Now we will create Create the virtual network and subnet

Setting Value
Project Details
Subscription Select your Azure subscription
Resource Group Select Create new, enter <resource-group-name>, then select OK, or select an existing <resource-group-name> based on parameters.
Instance details
Name Enter <virtual-network-name>
Region Select <region-name>

7.Select the IP Addresses tab or select the Next: IP Addresses button at the bottom of the page. In the IP Addresses tab, enter this information:

Setting Value
IPv4 address space Enter <IPv4-address-space>

8.Under Subnet name, write any name. In Edit subnet, enter this information:

Setting Value
Subnet name Enter <subnet-name>
Subnet address range Enter <subnet-address-range>

9.In Create virtual network, enter or select this information in the Basics tab:

10. Click on Create.
DNS6

11. Now we will link the virtual network.

12. Open your private DNS zone.

13. On the left pane, select virtual network links, then select Add.
DNS5

14. Type myLink for the Link name, & for virtual network, select myAzureVNet. Select the Enable auto registration check box & select OK
DNS7

Create the test virtual machine.

Create a Windows Virtual Machine of Windows Server 2019 Image of 2vcpu with in the same Virtual network.
You can  checkout the detailed Azure Windows VM BlogDNS9

DNS13

Creating DNS Records

DNS entries or records for your domain inside the DNS zone. Create a new address record or ‘A’ record to resolve a hostname to an IPv4 address.

1. Go back to Portal > Private DNS zone > select +Record set to create a Recordset in Private DNS Zone.
DNS4

2. Give the name APP10 and IP 10.2.0.4 which is the IP address of VM with Web Server Role configured previously.

    • Name: The record name is the hostname that you want to resolve to the specified IP address.You can give APP10
    • Type: Select A. ‘A’ records
    • TTL: Type 1. Time-to-live of the DNS request specifies how long DNS servers and clients can cache a response.
    • TTL Unit: Select Hours. This is the time unit for the TTL value.
    • IP address: This value is the IP address the record name resolves to. Enter the Private Ip of your VM.
      DNS10

3.Your DNS record is set now
DNS12

Test the private zone

  1. Connect to your VM1, and open a Windows PowerShell window with administrator privileges.
  2. Run the following command to configure firewall:
    New-NetFirewallRule –DisplayName “Allow ICMPv4-In” –Protocol ICMPv4
  3. Now ping your VM01 using your registered host name:
    DNS11

FAQ’s

1. What is a private DNS in Azure?

Answer: Azure Private DNS is a dedicated DNS service designed specifically for Azure Virtual Networks (VNets). It simplifies the management and resolution of domain names within these networks, allowing organizations to utilize custom domain names instead of default Azure-provided names. This helps seamless communication between virtual machines (VMs) and other resources within a VNet and across interconnected VNets.

2. What are the limitations of Azure Private DNS?

Answer: Azure Private DNS offers a range of benefits for managing domain names within Azure Virtual Networks, but it also comes with certain limitations. Here are the key limitations associated with Azure Private DNS:

  • a subscription can have up to 1000 private DNS zones, with each zone supporting a maximum of 25,000 record sets
  • You cannot create zone delegations (NS records) in a private DNS zone<
  • There are limits on the number of queries per second (QPS) per endpoint, capped at 10,000 QPS.

3. What is Azure Private Endpoint private DNS zone values?

Answer: Azure Private Endpoint private DNS zone values are essential for correctly configuring DNS settings to resolve the private endpoint IP address to the fully qualified domain name (FQDN) of the associated Azure resource

Next Task For You

Begin your journey toward Mastering Azure Cloud and landing high-paying jobs. Just click on the register now button on the below image to register for a Free Class on Mastering Azure Cloud: How to Build In-Demand Skills and Land High-Paying Jobs. This class will help you understand better, so you can choose the right career path and get a higher paying job.

CU

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.