Computer Networks/Nslookup/Host
Appearance
Nslookup is a command-line tool used to query a Domain Name System (DNS) server to obtain an IP address mapping or other DNS records. These activities will show you how to use the nslookup command to display host addresses.
Preparation
[edit | edit source]To prepare for this activity:
- Start your operating system.
- Log in if necessary.
Activity 1 - Observe DNS Settings
[edit | edit source]To observe DNS settings:
- Open a command prompt.
- Use ipconfig /all to display DNS settings.
- Observe the DNS Servers address values.
Activity 2 - Display Host Addresses
[edit | edit source]To display host addresses:
- Type nslookup www.google.com and press Enter.
- Observe the server information. Notice the DNS server address matches one of the values listed for DNS Servers above.
- Observe the results. Notice that both IPv4 and IPv6 addresses are displayed. Google has assigned both IPv4 and IPv6 addresses to this host.
- Type nslookup ipv4.google.com and press Enter.
- Observe the results. Notice that only IPv4 addresses are displayed. Google has not assigned an IPv6 address to this host name.
- Type nslookup ipv6.google.com and press Enter.
- Observe the results. Notice that only IPv6 addresses are displayed. Google has not assigned an IPv4 address to this host name.
Activity 3 - Use a Custom DNS Server
[edit | edit source]To use a custom DNS server:
- Type nslookup www.google.com 8.8.8.8 and press Enter.
- Observe the server information. Notice the DNS server address is 8.8.8.8.
- Type nslookup www.google.com 8.8.4.4 and press Enter.
- Observe the server information. Notice the DNS server address is 8.8.4.4.
- Close the command prompt to complete this activity.