Friday 25, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Sunday, 16 July 2017

host Linux Command

host

host [options] name [server]

Description

System administration command. Print information about hosts or zones in DNS. Hosts may be IP addresses or hostnames; host converts IP addresses to hostnames by default and appends the local domain to hosts without a trailing dot. Default servers are determined in /etc/resolv.conf. For more information about hosts and zones, read Chapters 1 and 2 of DNS and BIND (O'Reilly).

Options

-a
Same as -t ANY.

-c class
Search for specified resource record class (IN, CH, CHAOS, HS, HESIOD, or ANY). Default is IN.

-d
Verbose output. Same as -v.

-l
List mode. This also performs a zone transfer for the named zone. Same as -t AXFR.

-n
Perform reverse lookups for IPv6 addresses using IP6.INT domain and "nibble" labels instead of IP6.ARPA and binary labels.

-r
Do not ask contacted server to query other servers, but require only the information that it has cached.

-t type
Look for type entries in the resource record. type may be any recognized query type, such as A, AXFR, CNAME, NS, SOA, SIG, or ANY. If name is a hostname, host will look for A records by default. If name is an IPv4 or IPv6 address, it will look for PTR records.

-v
Verbose. Include all fields from resource record, even time-to-live and class, as well as "additional information" and "authoritative nameservers" (provided by the remote nameserver).

-w
Never give up on queried server.

-C
Display SOA records from all authoritative nameservers for the specified zone.

-N n
Consider names with fewer than n dots in them to be relative. Search for them in the domains listed in the search and domain directives of /etc/resolv.conf. The default is usually 1.

-R n
Retry query a maximum of n times. The default is 1.

-T
Use TCP instead of UDP to query nameserver. This is implied in queries that require TCP, such as AXFR requests.

-W n
Wait a maximum of n seconds for reply.

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • Delete file - rm Linux command rm rm [options] files Description Delete one or more files. To remove a file, you must have write permission in the directory that contains the file, but you need not have permission on the file itself. If you do not have… Read More
  • Linux Commands Change Directory cd Linux Command Change Access Permission chmod Linux Command Accept Linux Command aclocal Linux Command mkdir Create directory Linux Command cp Copy Linux Command SCP Securely copy files between hosts on … Read More
  • tail Linux Command tail tail [options] [files] Print the last 10 lines of each named file (or standard input if - is specified) on standard output. If more than one file is specified, the output includes a header at the beginning of each fi… Read More
  • Configure network interface - ifconfig Linux command ifconfig ifconfig [interface] ifconfig [interface address_family parameters addresses] Description TCP/IP command. Assign an address to a network interface and/or configure network interface parameters. ifconfig is typica… Read More
  • Delete the directories - rmdir Linux command rmdir rmdir [options] directories Delete the named directories (not the contents). directories are deleted from the parent directory and must be empty (if not, rm -r can be used instead). See also mkdir. Options --help Pr… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: host Linux Command Rating: 5 Reviewed By: eHowToNow