Skip to content

Using the Linux host command to dig out DNS details

The host command on Linux systems can look up a variety of information available through the Domain Name System (DNS). It can find a host name if given an IP address or an IP address if given a host name plus a lot of other interesting details on systems and internet domains.

The first query below tells us that the system associated with the address is named “dragonfly”. The second tells us that is the default router.

$ host domain name pointer dragonfly.
$ host domain name pointer router.

To do the reverse, you can use commands like these:

To read this article in full, please click here

Source:: Network World – Data Center