level domain (TLD) servers and eventually
authoritative servers, until results are achieved.
Step 5. When the client has the IP address for the
domain, it gives the IP address to the browser.
Nslookup (Name Server Lookup) is an excellent utility
that most operating systems can use to get details about
a particular host or domain from a DNS server. The
syntax for the command is as follows:
Click here to view code image
nslookup [-option] [name | -] [server]
Examples 14-4 and 14-5 show examples of using
Nslookup.
Example 14-4 Using Nslookup for a Simple Host
Lookup
Click here to view code image
nslookup stanford.edu :
nslookup with a simple domain name will return
the IP address of the stanford.edu
$ nslookup standford.edu
Server: 2601:647:5500:1ea:9610:3eff:fe18:22a5
Address:
2601:647:5500:1ea:9610:3eff:fe18:22a5#53
** server can't find standford.edu: NXDOMAIN
$ nslookup stanford.edu
Server: 2601:647:5500:1ea:9610:3eff:fe18:22a5
Address:
2601:647:5500:1ea:9610:3eff:fe18:22a5#53
Non-authoritative answer:
Name: stanford.edu
Address: 171.67.215.200
Example 14-5 Using Nslookup to Get Information
About a Domain
Click here to view code image