Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You can use the nslookup command to query the Domain Name System (DNS) server and diagnose different issues with DNS. The most common reason to use nslookup is to check for records. For example, you can use it to determine whether an A or Host record exists for a specific hostname. If the record exists, DNS can resolve it to an IP address. The basic syntax is
nslookup Hostname