Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example V
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





host Linux Commands


Tutorials Linux-commands

Topic

What is Linux host Command?



Explanation

host COMMAND:
     host command is used to find the ip address of the given domain name and also prints the domain name for the given ip.

SYNTAX:
  The Syntax is
     host [-aCdlnrTwv] domain-name/ipaddress

OPTIONS:
     
-a Prints all the DNS records for the given hostname.
-C Prints the SOA records and authorative name servers.
-d It is equivalent to -v.
-l Lists all hosts in a domain using AXFR.
-t used to select the query type.
Query Type: CNAME,NS,SOA,KEY etc,.
-W Specifies how long to wait for a reply.
-v Verbose output is generated by host.
-T Use TCP instead of UDP to query nameserver. This is implied in queries that require TCP, such as AXFR requests.



EXAMPLE:
     
  1. To find the ipaddress of a hostname
    host 123456789.co.in
    123456789.co.in has address 69.65.102.222

    By typing the hostname along with the host command you can get its ipaddress. The ip address of 123456789.co.in is 69.65.102.222

  2. To Print SOA record information:
    host -C 123456789.co.in
    Nameserver ns1.dnshorizon.com: 123456789.co.in SOA ns1.dnshorizon.com. saisan.gmail.com. 2007062001 86400 7200 3600000 86400 Nameserver ns2.dnshorizon.com: 123456789.co.in SOA ns1.dnshorizon.com. saisan.gmail.com. 2007062001 86400 7200 3600000 86400

    The above cmd prints the host's nameserver and its SOA record.






A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies