View Single Post
  #16  
Old 9th May 2009, 15:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

You can set the correct one like this:

Code:
echo server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname
To have the system set the correct hostname whenever you boot the system, we add the last command to /etc/rc.local:

Code:
vi /etc/rc.local
Code:
[...]
/bin/hostname -F /etc/hostname
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote