The nslookup command

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

The nslookup command

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which command asks a DNS server for the IP address of example.com?
A nslookup example.com
B nslookup 93.184.216.34 example.com
2. What does nslookup example.com do?
A Asks a DNS server for the IP address that matches the domain name
B Sends your password to the website example.com
3. In the nslookup reply, where do you find the website's IP address?
A In the very first word of the command you typed
B On the Address line listed under the domain Name
4. The first Server and Address lines in an nslookup reply show:
A The server that hosts the website's pages
B Which DNS server answered your question
5. You run nslookup example.com. Which part of the reply is the answer to your lookup?
A The Address line below Name: example.com
B The Address line next to Server at the top

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1nslookup example.com Anslookup example.com
2Address: 93.184.216.34 BThe Server line shows the DNS server that answered, not the website. The website's IP is on the Address line after the Name line.
3Look up the IP address for a website called example.com using a DNS server CThe line in the nslookup reply that shows the IP address of the website you asked about
4The reply starts with the DNS server that answered, showing its name and its own address DAsks a DNS server for the IP address that matches the domain name example.com
5nslookup 93.184.216.34 EThis gives an IP address, but the command should be given a domain name like example.com so the DNS server can find the matching IP address.
6Server: 93.184.216.34 (this is the address of example.com) FServer: dns.google

Definitions

nslookup example.com

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
________ example.com
2.
nslookup ___________
3.
Name: example.com _______: 93.184.216.34
4.
______: dns.google Address: 8.8.8.8
5.
> ________ wikipedia.org Name: wikipedia.org

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A > nslookup example.com
B Server: dns.google
C Address: 8.8.8.256
D Name: example.com
E Address: 93.184.216.34
Question 2
A > nslookup bbc.co.uk
B Server: 192.168.1.1
C Name: bbc.com
D Address: 151.101.0.81
Question 3
A > nslookup https://example.com
B Server: dns.google
C Address: 8.8.8.8
D Name: example.com
E Address: 93.184.216.34
Question 4
A > nslookup abc.net.au
B Server: abc.net.au
C Address: 8.8.8.8
D Name: abc.net.au
E Address: 13.224.1.10
Question 5
A > ping google.com
B Server: dns.google
C Address: 8.8.8.8
D Name: google.com
E Address: 142.250.70.14

Answer Key

The nslookup command
Section A: Quick Questions
Q1
A — nslookup example.com
Q2
A — Asks a DNS server for the IP address that matches the domain name
Q3
B — On the Address line listed under the domain Name
Q4
B — Which DNS server answered your question
Q5
A — The Address line below Name: example.com
Section B: Match the Pairs
Q1
nslookup example.com → Asks a DNS server for the IP address that matches the domain name example.com
Q2
Address: 93.184.216.34 → The line in the nslookup reply that shows the IP address of the website you asked about
Q3
Look up the IP address for a website called example.com using a DNS server → nslookup example.com
Q4
The reply starts with the DNS server that answered, showing its name and its own address → Server: dns.google
Q5
nslookup 93.184.216.34 → This gives an IP address, but the command should be given a domain name like example.com so the DNS server can find the matching IP address.
Q6
Server: 93.184.216.34 (this is the address of example.com) → The Server line shows the DNS server that answered, not the website. The website's IP is on the Address line after the Name line.
Section C: Definitions
Q1
nslookup example.com — A command that asks a DNS server for the IP address that matches a domain name. The reply shows which DNS server answered and the Address line with the site's IP.
Section D: Fill in the Blanks
Q1
nslookup example.com
Q2
nslookup example.com
Q3
Name: example.com Address: 93.184.216.34
Q4
Server: dns.google Address: 8.8.8.8
Q5
> nslookup wikipedia.org Name: wikipedia.org
Section E: Spot the Error
Q1
C — The Address line under Server is the DNS server's IPv4 address. An IPv4 number can't be above 255, so 8.8.8.256 is invalid. It should be 8.8.8.8.
Q2
C — The Name line repeats the domain that was looked up. We asked about bbc.co.uk, so the reply should say bbc.co.uk, not bbc.com.
Q3
A — nslookup needs only the domain name, not a full URL. Remove the https:// and type: nslookup example.com.
Q4
B — The Server line shows which DNS server answered, not the site we looked up. It should show the DNS server's name, such as dns.google.
Q5
A — ping checks whether a device replies. It doesn't ask a DNS server for an address. The command should be nslookup google.com.