The command to use varies with the operating system installed on your computer. Common commands are 'nslookup', 'dig', and 'host'. 'Ping' can also be used, in a pinch.
The typical Unix command for this is to use 'whois', which queries the databases that store the information for details. Type "man whois" at the command line for instructions.
This command is referred to as the NSLOOKUP command. To run this command line in Windows, open a CMD prompt. Type: "set type=mx" (without quotes), press enter, then "nslookup www. sitename. com".
On Windows you should use the command line tool 'nslookup'. This can be used either non-interactively or interactively. The simplest way is 'nslookup www. google. com' - which will return the DNS server used and the IP address(es) associated with that domain name. Interactive use (just type nslookup in a command window) allows you to set additional options and do complicated querieis.