DEV Community

Cover image for Create DNS Zones And Configure DNS Settings
Maxwell Wokocha C.
Maxwell Wokocha C.

Posted on

Create DNS Zones And Configure DNS Settings

Scenario:

Your organization requires workloads to use domain names instead of IP addresses for internal communications. The organization doesn’t want to add a custom DNS solution. You identify these requirements.

. A private DNS zone is required for contoso.com.

. The DNS will use a virtual network link to app-vnet.

. A new DNS record is required for the backend subnet.

Skilling tasks:

. Create and configure a private DNS zone.

. Create and configure DNS records.

. Configure DNS settings on a virtual network.

Architecture diagram:

Azure Private DNS provides a reliable, secure DNS service to manage and resolve domain names in a virtual network without the need to add a custom DNS solution. By using private DNS zones, you can use your own custom domain names rather than the Azure-provided names.

No 1. Create a private DNS zone.

i. On the Azure portal, search for and select Private DNS zones.

ii. Select + Create and configure the DNS zone.

iii. Select Review + create and then select Create.

v. Wait for the DNS zone to deploy, and then select Go to resource.

No 2. Create a virtual network link to your private DNS zone.

Note: To resolve DNS records in a private DNS zone, resources must be linked to the private zone. A virtual network link associates the virtual network to the private zone.

i. In the portal, continue working on the private.contoso.com DNS zone.

ii. In the DNS Management blade, select + Virtual network links.

iii. Select + Add” and configure the virtual network link.

iv. Select Create and wait for the deployment to finish. If necessary, Refresh the page.

No 3. Create a DNS record set.

Note: DNS records provide information about the DNS zone.

i. In the portal, continue working on the private.contoso.com DNS zone.

ii. In the DNS Management blade, select + Recordsets.

iii. Notice that two A records have automatically been created for each of the virtual machines.

iv. Select + Add and configure a record set. When finished select Add.

Note: This record set implies there is a virtual machine in app-vnet with a private IP address of 10.1.1.5.

Top comments (1)

Collapse
 
ptak_dev profile image
Patrick T

Solid approach. I might try this on my next project.