What Is Host Command in Linux?
Contents Host Command in Linux System Is Used for Dns (Domain Name System) Lookup Operations. in Simple Words, This Command Is Used to Find the Ip Address of a...
Contents
host command in Linux system is used for DNS (Domain Name System) lookup operations. In simple words, this command is used to find the IP address of a particular domain name or if you want to find out the domain name of a particular IP address the host command becomes handy.
What is host command in Unix?
On Unix-like operating systems, the host command is a DNS lookup utility, finding the IP address of a domain name. It also performs reverse lookups, finding the domain name associated with an IP address.
How do I find my host details in Linux?
The procedure to find the computer name on Linux:
- Open a command-line terminal app (select Applications > Accessories > Terminal), and then type:
- hostname. hostnamectl. cat /proc/sys/kernel/hostname.
- Press [Enter] key.