Computer Networks/Nslookup/Host
(Redirected from Computer Networks/Troubleshooting/Tools/Nslookup/Host)
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
editTo prepare for this activity:
- Start your operating system.
- Log in if necessary.
Activity 1 - Observe DNS Settings
editTo 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
editTo 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
editTo 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.