Lab ‐ DNS and nslookup - Dleifnesor/NET-215 GitHub Wiki
LAB 11-2: DNS and NSLOOKUP
Objective
Observe the function of DNS hierarchy and resolution using the nslookup
command.
Lab Steps
I. Basic nslookup Usage
-
Run nslookup:
- If experiencing
DNS request timed out
errors:nslookup > server 8.8.8.8
- If experiencing
-
Simple Query:
nslookup www.champlain.edu
- Output should display:
- Address of the DNS server queried
- IP address of the hostname
- Output should display:
-
Interactive Mode:
nslookup
- You will see a
>
prompt. - Enter any hostname to resolve.
- You will see a
-
Query Name Server Records (NS):
> set type=ns > champlain.edu.
-
Query ROOT Zone Servers:
> .
-
Query TLD Servers:
> edu. > com. > net.
- Explore other TLDs from IANA Root Zone Database
II. MX Records
-
Set type to MX:
> set type=mx
-
Lookup the following domains:
> hotmail.com > champlain.edu. > mymail.champlain.edu > gmail.com (or another domain you're familiar with)
III. Querying Specific DNS Servers
-
Exit current session:
> exit
-
Start new session with Google DNS:
nslookup > server 8.8.8.8
-
Try a few hostname resolutions:
> www.google.com > www.champlain.edu
IV. Using Quad 9 DNS
-
Set server to Quad 9:
nslookup > server 9.9.9.9
-
Resolve
isitblocked.org
:> isitblocked.org