View Single Post
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:

echo > /etc/hostname
/etc/init.d/ start
that both of these commands:

hostname -f
show ""

With a virtual container in OpenVZ, it will only show "" immediately after running the commands. After reboot it the "hostname" command only shows "server1", however "hostname -f" shows "" 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?

Reply With Quote
Sponsored Links