Terminal is really powerful, I’m often looking up who owns a domain or what IP address a domain has or even it’s A/MX records that are all simple to do with the following commands.
Ping a domain to determine the IP address:
PING daveismyname.blog (22.214.171.124): 56 data bytes 64 bytes from 126.96.36.199: icmp_seq=0 ttl=57 time=11.713 ms 64 bytes from 188.8.131.52: icmp_seq=1 ttl=57 time=10.418 ms 64 bytes from 184.108.40.206: icmp_seq=2 ttl=57 time=10.302 ms
Press ctrl + c to stop the ping running.
Look up the whois information for a domain:
Find what A records a domain has:
host -t A daveismyname.com
Find what MX records a domain has:
host -t MX daveismyname.com