The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-29-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,843
What exactly are, for you, the differences between "host name" and "server name"?

"hostname" will give you the machines host name. "hostname -f" will give you the machines FQDN (but this is Linux only). If you mean the DNS entry for an IP used by the machine, you could use "dig -x <IP>" to get that.