Host Command

Host Command

The host performs a DNS lookup operation to display the hosts of a particular domain name. E.g:

kali@kali:~$ host google.com
google.com has address 172.217.166.110
google.com mail is handled by 20 alt1.aspmx.l.google.com
google.com mail is handled by 10 aspmx.l.google.com
google.com mail is handled by 30 alt2.aspmx.google.com
kali@kali:~$

You can specify instructions for what to look for and output, such as A record:

kali@kali:~$ host -t a google.com
google.com has address 172.217.166.110
kali@kali:~$

Last updated