DNS Basics LAB
In this lab, you will install the DNS Server role on a Windows Server system and become familiar with the DNS management console. You will then explore how DNS resolves names by testing both recursive and iterative queries, helping you understand how clients and DNS servers interact to locate resources on a network.
Session duration: 60 minutes· Typical launch: ~4 min
Difficulty
Beginner
Lab level
Lab VMs
1
1 Windows
XP Reward
300 XP
On completion
Virtual machines
Lab VMs
Windows Server 2025
Windows
Username / Password
user / password
Connection type
In-browser RDP / RDP
CPU / RAM
—
Lab instructions
Follow the steps below to complete the lab.
This lab demonstrates how to install and manage DNS on Windows Server and understand how name resolution works through recursive and iterative queries.
- Login to the Server with username
ladminand passwordpassword123. - Open Server Manager from the Start menu button.
- In the Server Manager window, click on Manage in the top right corner.
- From the dropdown menu, select Add Roles and Features.
- In the Add Roles and Features Wizard, click Next, then click Next again until you reach the Server Selection page.
- Ensure your server is selected and click Next.
- On the Server Roles page, check the box next to DNS Server.
- A pop-up window will appear; click Add Features to include the necessary features for DNS.
NOTE: A validation check message will pop-up with a warning regarding the DHCP IP Address. Click Continue to disregard the message.
- Click Next, and Next again through the Features page, and then again through the DNS Server page.
- Review the information on the Confirmation page, then click Install to begin the installation process.
- Wait for the installation to complete, then click Close.
- To check if the installation succeeded you should see on Server Manager to the left side that we have a new DNS addition to the options.
- Additionally, if we click on the Tools menu we now have a new DNS tool.
- Click Check Step.
- Open PowerShell as Administrator on the DNS server.
- Run the following command to test a recursive DNS query:
Resolve-DnsName google.com - Review the output and confirm that the DNS server successfully resolves the external domain name.
- Run the following command to display the local DNS resolver cache:
ipconfig -displaydns. - Review the cache entries and locate records related to recently resolved domains such as google.com.
- Open Command Prompt or PowerShell and launch nslookup:
nslookup - Configure nslookup to use Google Public DNS:
server 8.8.8.8 - Disable recursion for the query:
set norecurse - Query the following domain:
google.com - Review the response and observe that the DNS server responds with the best information it has available instead of fully resolving the query recursively.
- Type the following command to exit nslookup:
exit