Windows:

C:\ipconfig

Unix:

$nslookup server_name