A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/linux-unix/host-command-in-linux-with-examples/ below:

host command in Linux with examples

host command in Linux with examples

Last Updated : 21 May, 2019

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. You can also find more specific details of a domain by specifying the corresponding option along with the domain name.

Syntax:
host [-aCdlriTWV] [-c class] [-N ndots] [-t type] [-W time]
     [-R number] [-m flag] hostname [server]
host command without any option:

It will print the general syntax of the command along with the various options that can be used with the host command as well as gives a brief description about each option.

Example: Different options with the host command:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4