ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 226 - AZ-700 discussion

Report
Export

SIMULATION

Task 1

You need to ensure that virtual machines on VNET1 and VNET2 are included automatically in a DNS zone named contoso.azure. The solution must ensure that the virtual machines on VNET1 and VNET2 can resolve the names of the virtual machines on either virtual network.

A.
See the Explanation below for step by step instructions
Answers
A.
See the Explanation below for step by step instructions
Suggested answer: A

Explanation:

To achieve the task of ensuring that virtual machines on VNET1 and VNET2 are included automatically in a DNS zone namedcontoso.azure, and that they can resolve the names of the virtual machines on either virtual network, you can follow these steps:

Step-by-Step Solution

Step 1: Create a Private DNS Zone

Navigate to the Azure Portal.

Search for ''Private DNS zones''in the search bar and select it.

Click on ''Create''.

Enter the DNS zone nameascontoso.azure.

Select the appropriate subscriptionand resource group.

Click on ''Review + create''and then''Create''.

Step 2: Link VNET1 and VNET2 to the DNS Zone

Go to the newly created DNS zone(contoso.azure).

Select ''Virtual network links''from the left-hand menu.

Click on ''Add''.

Enter a namefor the link (e.g.,VNET1-link).

Select the subscriptionandvirtual network (VNET1).

Enable auto-registrationto ensure that VMs are automatically registered in the DNS zone.

Click on ''OK''.

Repeat the processfor VNET2.

Step 3: Configure DNS Settings for VNET1 and VNET2

Navigate to VNET1in the Azure Portal.

Select ''DNS servers''under the ''Settings'' section.

Ensure that the DNS server is set to ''Default (Azure-provided)''.

Repeat the processfor VNET2.

Step 4: Verify Name Resolution

Deploy a virtual machinein VNET1 and another in VNET2.

Connect to the virtual machinesusing Remote Desktop Protocol (RDP) or Secure Shell (SSH).

Test name resolutionby pinging the VM in VNET2 from the VM in VNET1 using its hostname (e.g.,ping <VM-name>.contoso.azure).

Explanation:

Private DNS Zone: This allows you to manage and resolve domain names in a private network without exposing them to the public internet.

Virtual Network Links: Linking VNET1 and VNET2 to the DNS zone ensures that VMs in these networks can register their DNS records automatically.

Auto-registration: This feature automatically registers the DNS records of VMs in the linked virtual networks, simplifying management.

DNS Settings: Using Azure-provided DNS ensures that the VMs can resolve each other's names without additional configuration.

By following these steps, you ensure that virtual machines on VNET1 and VNET2 are included automatically in the DNS zonecontoso.azureand can resolve each other's names seamlessly.

asked 02/10/2024
German Lopez
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first