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 server1.example.com > /etc/hostname
that both of these commands:
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?