Javatpoint Logo
Javatpoint Logo

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.

Example:

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.

Syntax:

Linux Host2

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

Next TopicLinux arp




Please Share

facebook twitter google plus pinterest tumbler

Latest 4 Tutorials