Hostname for OpenVZ Containers - Question for 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:
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?
Only way is to enter the FQDN in the OpenVZ as the VM hostname or manually edit /etc/hostname file and to use chattr +i /etc/hostname.
I recommend the first option.
Normally /etc/hostname should not contain FQDN only the host name but this can be problematic on OpenVZ containers and you might have to manually modify on Postfix config's etc. and add the FQDN later.
Thank you for the reply.
If the only reason Falko has asked that the hostname be the FQDN is the concern for a collision of names in ISPConfig, then that would be useful to know. If there are other implications, I would like to know.
If you have more feedback, please provide it.
|All times are GMT +2. The time now is 00:33.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.