The host command is a DNS lookup utility used to convert domain names to IP addresses and reverse IP lookup.
nslookup google.com :nslookup followed by the domain name will display the “A Record” (IP Address) of the domain. Use this command to find the address record for a domain.
The host command is a simple tool for doing DNS lookups. It can translate domain names to IP addresses, IP addresses to domain names, identify name servers and even find out the domain mail server for an address.
Use this
$ dig +short stackoverflow.com
69.59.196.211
or this
$ host stackoverflow.com
stackoverflow.com has address 69.59.196.211
stackoverflow.com mail is handled by 30 alt2.aspmx.l.google.com.
stackoverflow.com mail is handled by 40 aspmx2.googlemail.com.
stackoverflow.com mail is handled by 50 aspmx3.googlemail.com.
stackoverflow.com mail is handled by 10 aspmx.l.google.com.
stackoverflow.com mail is handled by 20 alt1.aspmx.l.google.com.
You can use:
nslookup www.example.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With