← Back to Web House

DNS Troubleshooting Lab

Master DNS resolution, record types, and common misconfigurations

Lab Progress 0 / 5 exercises
1

DNS Record Types

10 minutes
Objective: Understand the purpose of common DNS record types and when each is used.

Common DNS Record Types

TypePurposeExample
AMaps hostname to IPv4 addressexample.com → 93.184.216.34
AAAAMaps hostname to IPv6 addressexample.com → 2606:2800:220:1::
CNAMEAlias pointing to another hostnamewww.example.com → example.com
MXMail exchange server for domainexample.com → mail.example.com (priority 10)
PTRReverse DNS (IP to hostname)34.216.184.93.in-addr.arpa → example.com
NSAuthoritative nameserver for domainexample.com → ns1.example.com
TXTArbitrary text (SPF, DKIM, verification)"v=spf1 include:_spf.google.com ~all"
SOAStart of Authority - zone parametersPrimary NS, admin email, serial, refresh intervals
SRVService location record_sip._tcp.example.com → sipserver.example.com:5060

Questions

2

Querying DNS with nslookup

15 minutes
Objective: Read nslookup output and extract DNS information for troubleshooting.

nslookup Output - Standard Query

$ nslookup www.hexworth.edu Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: www.hexworth.edu canonical name = hexworth.edu Name: hexworth.edu Address: 10.50.25.100

nslookup Output - MX Record Query

$ nslookup -type=MX hexworth.edu Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: hexworth.edu mail exchanger = 10 mail1.hexworth.edu hexworth.edu mail exchanger = 20 mail2.hexworth.edu Authoritative answers can be found from: mail1.hexworth.edu internet address = 10.50.25.110 mail2.hexworth.edu internet address = 10.50.25.111

Questions

3

Advanced DNS with dig

15 minutes
Objective: Interpret dig command output including flags, sections, and query statistics.

dig Output

$ dig hexworth.edu ANY +noall +answer +stats ;; ANSWER SECTION: hexworth.edu. 300 IN A 10.50.25.100 hexworth.edu. 300 IN AAAA 2001:db8::1 hexworth.edu. 3600 IN NS ns1.hexworth.edu. hexworth.edu. 3600 IN NS ns2.hexworth.edu. hexworth.edu. 3600 IN MX 10 mail1.hexworth.edu. hexworth.edu. 3600 IN SOA ns1.hexworth.edu. admin.hexworth.edu. 2025021501 3600 900 1209600 86400 hexworth.edu. 300 IN TXT "v=spf1 ip4:10.50.25.0/24 -all" ;; Query time: 23 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Sun Feb 16 10:30:00 UTC 2026 ;; MSG SIZE rcvd: 312
dig Tip: The number after the hostname (300, 3600) is the TTL (Time To Live) in seconds. It tells caching resolvers how long to keep this record before re-querying the authoritative server.

Questions

4

Fixing DNS Misconfigurations

20 minutes
Objective: Diagnose and identify fixes for common DNS problems from troubleshooting output.

Scenario: Website Down

Users report they cannot reach intranet.hexworth.edu. The web server is running and accessible by IP. You investigate with DNS tools.

Investigation Output

$ nslookup intranet.hexworth.edu ** server can't find intranet.hexworth.edu: NXDOMAIN $ nslookup intranet.hexworth.edu 10.50.25.2 Server: 10.50.25.2 Address: 10.50.25.2#53 Name: intranet.hexworth.edu Address: 10.50.25.200 $ ping 10.50.25.200 PING 10.50.25.200: 64 bytes from 10.50.25.200: icmp_seq=0 ttl=64 time=1.2 ms $ cat /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4

Questions

5

Advanced DNS Issues

15 minutes
Objective: Identify CNAME loops, zone transfer vulnerabilities, and DNS cache poisoning indicators.

Scenario A: CNAME Loop

A developer reports that app.hexworth.edu is "timing out on DNS." You investigate.

$ dig app.hexworth.edu ;; ANSWER SECTION: app.hexworth.edu. 300 IN CNAME portal.hexworth.edu. portal.hexworth.edu. 300 IN CNAME web.hexworth.edu. web.hexworth.edu. 300 IN CNAME app.hexworth.edu. ;; WARNING: CNAME loop detected

Scenario B: Zone Transfer Leak

During a security audit, you test whether zone transfers are properly restricted.

$ dig @ns1.hexworth.edu hexworth.edu AXFR ;; ANSWER SECTION: hexworth.edu. 3600 IN SOA ns1.hexworth.edu. admin.hexworth.edu. ... hexworth.edu. 3600 IN NS ns1.hexworth.edu. hexworth.edu. 3600 IN NS ns2.hexworth.edu. hexworth.edu. 300 IN A 10.50.25.100 admin-portal.hexworth.edu. 300 IN A 10.50.25.150 vpn.hexworth.edu. 300 IN A 10.50.25.5 db-master.hexworth.edu. 300 IN A 10.50.25.50 staging.hexworth.edu. 300 IN A 10.50.25.201 hexworth.edu. 3600 IN SOA ns1.hexworth.edu. admin.hexworth.edu. ... ;; XFR size: 45 records

Questions

Security Best Practice: Zone transfers (AXFR) should be restricted to authorized secondary DNS servers only. Configure your DNS server with allow-transfer { trusted-servers; }; in BIND or equivalent ACLs in your DNS software.