LAB-NET-03 - DNS and Name Resolution
Query DNS directly and recognize when a hostname problem is different from a reachability problem.
DNS and Name Resolution
Query DNS directly and recognize when a hostname problem is different from a reachability problem.
- Query DNS directly and recognize when a hostname problem is different from a reachability problem.
- Repeat the workflow without copy-paste or step-by-step prompting.
- Run network changes in a lab or VM first so you do not break your active connection unexpectedly.
Part A: The Field Guide
A hostname problem is not automatically a connectivity problem.
This lab keeps DNS focused on a few usable ideas:
- query a name directly
- compare raw IP reachability with hostname resolution
- remember that local overrides can change the answer
Practical Distinction
If an IP works but the hostname does not, DNS or local name-resolution state becomes a much better suspect than the whole network.
Part B: The Drill Deck
Terminal required: use direct queries and simple comparisons.
G Guided Step by step - type exactly this and compare the result >
Exercise G1: Run a direct DNS query
- Run
dig google.com - Find the answer section
- Identify the returned address information
Exercise G2: Use the short form
- Run
dig +short google.com - Notice how much simpler the output is
- Explain when the short form is more practical
Exercise G3: Compare IP and hostname behavior
- Run
ping -c 1 8.8.8.8 - Run
ping -c 1 google.com - Explain what extra dependency the second command has
S Solo Task described, hints available - figure it out >
Exercise S1: Look up a different record type
- Run
dig MX google.com - Notice that the answer is not an IP address in the same format as an A record
- Explain what kind of question you just asked DNS
Exercise S2: Hosts-file reasoning
Without editing anything yet, explain one useful reason to override a hostname locally and one reason that override can become confusing later.
M Mission Real scenario - no hints, combine multiple skills >
Mission M1: Write a DNS troubleshooting mini-flow
Write out a short sequence for the case where a hostname is failing:
- test raw IP reachability
- query DNS directly
- consider local overrides such as the hosts file
If that order feels natural, the DNS lesson is landing well.
What to do next
Best next step LearningReturn to the related lesson if you want the concept explained more deeply.