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 domain.com [name server]
Want to look up NS, A, or MX records for a domain?
host -t ns domain.com
host -t a domain.com
host -t mx domain.com
Want to look up all available records?
host -a domain.com
Give it a try. You'll like it.
Written by Nate Underwood
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#