View Single Post
  #7  
Old 17th November 2006, 02:55
FrozenPixel FrozenPixel is offline
Member
 
Join Date: Nov 2006
Posts: 38
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok prior to editing /etc/hosts

127.0.0.1 localhost
127.0.0.1 myserver1

After editing /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.0.1 myserver1.example.com myserver1

Execute after rebooting:

hostname
myserver1

hostname -f
myserver1.example.com

Prior to editing /etc/hostname
myserver1

After editing:
myserver1.example.com

Now issuing both commands matches each result.
myserver1.example.com

Last edited by FrozenPixel; 17th November 2006 at 02:57.
Reply With Quote