nslookup Command
This command is used to obtain the IP address of a domain name or a domain name of an IP address of a specific server application (for instance, Web application running on a server). This is an extremely useful command, because while troubleshooting issues with e-mail or Web packets connectivity, you may not know if you have a problem with the domain name resolution or the actual packet flow. Example 2-2 shows how to use this command to perform the resolution from domain name to IP address and vice versa.
Example 2-2. Use nslookup Command for Domain Name to IP Address Resolution and Vice Versa
! The following line is trying to find out the ip address of the www.xyz.com web
! server's IP address
D:\>nslookup www.xyz.com
Server: dns-xxx.dummy.com
Address: x.x.x.x
Non-authoritative answer:
Name: www.xyz.com
Address: 10.1.1.100
! The following line is trying to find out the name from the IP address which results in
! www.xyz.com name
D:\>nslookup 10.1.1.100
Server: dns-xxx.dummy.com
Address: x.x.x.x
Name: www.xyz.com
Address: 10.1.1.100
D:\>