View Single Post
  #1  
Old 4th April 2013, 16:25
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Question Hostname for OpenVZ Containers - Question for Falko

Hi Falko,

In the tutorial The Perfect Server - Debian Squeeze (Debian 6.0) With BIND & Courier [ISPConfig 3], you state that it's important that it's important that after running these commands:

Code:
echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start
that both of these commands:

Code:
hostname
hostname -f
show "server1.example.com"

With a virtual container in OpenVZ, it will only show "server1.example.com" immediately after running the commands. After reboot it the "hostname" command only shows "server1", however "hostname -f" shows "server1.example.com" if the --hostname configuration is set in the container.

Is there something that can be set in the container configuration so hostname will show the correct hostname?

Thanks,
Darin
Reply With Quote
Sponsored Links