Last Updated: February 25, 2016
· nunderwood

Using host for DNS lookups

nslookup and dig are great DNS query tools, but my favorite simple cmd line tool is 'host'.

Basic lookup:

host [name server]

Want to look up NS, A, or MX records for a domain?

host -t ns
host -t a
host -t mx

Want to look up all available records?

host -a

Give it a try. You'll like it.