Retrieve Nameservers for Hostname

Return the nameservers for a hostname.

$ host -t ns domain.com

For other records replace ns with one of the following.

a       ip address
mx      mail servers
ns      name servers
txt     txt record
cname   cname record
soa     soa record
any     all details