The nslookup command can be used to query a DNS server for a domain for its IP address.