Linux Host

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux host

This command displays domain name for given IP address and displays IP address for given domain name. It also performs DNS lookups related to DNS query.


  1. host  
  2. host 

Linux Host1

Look at the above snapshot, on entering domain name we got IP address and on entering IP address we got domain name.

host -t

This command helps to find DNS resource records like SOA, NS, A, PTR, CNAME, MX, SRV.


  1. host -t <resourceName>  

Linux Host2

Look at the above snapshot, we have displayed different DNS resource records.