This tutorial will guide you through managing DNS records and understanding DNS cache behavior using Active Directory and client machines. You’ll create and test DNS A and CNAME records, handle DNS cache, and verify changes.
- Microsoft Azure (Virtual Machines)
- Microsoft RD Client (Remote Desktop)
- macOS Sonoma (if you own Macbook Air M1 or M2; it does not matter what type of macOS you own)
- Windows 10 or Windows 11 Home or Pro (if you own either of these OS)
-
Log In to DC-1:
- Use your domain admin account (e.g.,
mydomain.com\jane_admin).
- Use your domain admin account (e.g.,
-
Log In to Client-1:
- Use the same admin account (e.g.,
mydomain\jane_admin).
- Use the same admin account (e.g.,
-
Ping Test:
- On Client-1, attempt to ping
mainframe. Note that it fails.
- On Client-1, attempt to ping
-
Nslookup Test:
- On Client-1, perform
nslookup mainframe. It will fail due to the absence of a DNS record.
- On Client-1, perform
-
Create A-Record:
- On DC-1, create a DNS A-record for
mainframepointing to DC-1’s private IP address.
- On DC-1, create a DNS A-record for
-
Verify:
- On Client-1, ping
mainframeagain. It should now resolve successfully.
- On Client-1, ping
-
Change DNS Record:
- On DC-1, update the A-record for
mainframeto point to8.8.8.8.
- On DC-1, update the A-record for
-
Ping Test:
- On Client-1, ping
mainframeand observe that it still resolves to the old IP address.
- On Client-1, ping
-
Check Cache:
- On Client-1, use
ipconfig /displaydnsto view the local DNS cache.
- On Client-1, use
-
Flush DNS Cache:
- Run
ipconfig /flushdnson Client-1 to clear the DNS cache.
- Run
-
Verify:
- Attempt to ping
mainframeagain. The ping should now resolve to the new IP address (8.8.8.8).
- Attempt to ping
-
Create CNAME Record:
- On DC-1, create a CNAME record for
searchpointing towww.google.com.
- On DC-1, create a CNAME record for
-
Ping Test:
- On Client-1, ping
searchand observe that it resolves towww.google.com.
- On Client-1, ping
-
Nslookup Test:
- On Client-1, perform
nslookup searchand verify that it shows the CNAME record pointing towww.google.com.
- On Client-1, perform
By the end of this guide, you should know or understand how to manage DNS records by creating A and CNAME records, and handling DNS cache. Especially since you've observed the effects of DNS record changes and cache clearing on name resolution and network troubleshooting.
