Here’s a short practice exercise about DNS:
- Open a command prompt on your computer.
- Type “nslookup” followed by a domain name, such as “google.com”.
- Look at the output of the command. It should display the IP address of the server that hosts the website.
- Try typing in a different domain name, such as “facebook.com” or “amazon.com”, and see what IP address is returned.
- Try changing the DNS server your computer is using by following the steps outlined in the previous tutorial. You can use a free public DNS server such as Google Public DNS or Cloudflare DNS.
- Repeat steps 2-4 and compare the IP addresses returned with the previous results. Did the DNS server change make a difference in the results?
This practice exercise will give you a basic understanding of how DNS works and how to use the nslookup command to look up the IP address of a domain name. It will also help you understand how changing the DNS server on your computer can affect the results of a DNS lookup.
Add a Comment