Linux command: host

From RHS Wiki
Revision as of 09:27, 3 April 2019 by Rafahsolis (talk | contribs) (Created page with "=== Examples === <syntaxhighlight lang="bash"> host example.com host -t TYPE example.com host -t a example.com </syntaxhighlight> === Find Out the Domain IP, Domain Mail Serv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Examples[edit]

host example.com
host -t TYPE example.com
host -t a example.com

Find Out the Domain IP, Domain Mail Server, Domain Name Servers, CNAME Record, SOA Record[edit]

host -t a cyberciti.biz
host -t mx cyberciti.biz
host -t ns cyberciti.biz
host -t cname files.cyberciti.biz
host -t soa cyberciti.biz

Query Particular Name Server[edit]

host example.com dns.server.com

Display All Information About Domain Records and Zone[edit]

host -a cyberciti.biz
host -t any cyberciti.biz

Use IPv6 Query Transport[edit]

host -6 cyberciti.biz
host -6 -a cyberciti.biz
host -6 cyberciti.biz ns1.nixcraft.net
host -6 -t ns cyberciti.biz ns3.nixcraft.net

Reverse IP Lookup[edit]

host 75.126.153.206

Get TTL Information[edit]

host -v -t {TYPE} {example.com}
host -v -t a cyberciti.biz
host -v -t a i.hexindia.net