Difference between revisions of "Host"

From Linuxintro
imported>ThorstenStaerk
(Created page with "The command host allows you to query your name server for the IP address of a server aka host like this: # host www.staerk.de www.staerk.de has address 92.51.132.237 I...")
 
imported>ThorstenStaerk
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
The [[command]] [[host]] allows you to query your name server for the IP address of a server aka host like this:
+
The [[command]] [[host]] allows you to find out an IP address from a host name and the other way round:
 +
 
 
  # host www.staerk.de
 
  # host www.staerk.de
 
  www.staerk.de has address 92.51.132.237
 
  www.staerk.de has address 92.51.132.237
 +
 +
# host 8.8.8.8
 +
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com.
  
 
If you want to query different mail servers or query for the domain's mail server (the "MX record"), use the command [[dig]].
 
If you want to query different mail servers or query for the domain's mail server (the "MX record"), use the command [[dig]].
Line 7: Line 11:
 
= See also =
 
= See also =
 
* [[dig]]
 
* [[dig]]
* [http://man-wiki.net/index.php/1:host dig's man page]
+
* [http://linux.die.net/man/1/dig dig's man page]
 +
 
 +
[[Category:Networking]]
 +
[[Category:Command]]

Latest revision as of 11:08, 20 April 2014

The command host allows you to find out an IP address from a host name and the other way round:

# host www.staerk.de
www.staerk.de has address 92.51.132.237
# host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com.

If you want to query different mail servers or query for the domain's mail server (the "MX record"), use the command dig.

See also