You can use the command nslookup from the command line.