On boot adjustment for /etc/hosts [message #28460] |
Wed, 19 March 2008 10:55 |
Ideaxis
Messages: 2 Registered: March 2008
|
Junior Member |
|
|
We need to adjust the /etc/hosts file during reboot. OpenVZ has default settings, for example:
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
192.168.0.247 test2
What we want is that this is automatically set to, for example:
127.0.0.1 localhost test2.domain.com test2 localhost.localdomain
# Auto-generated hostname. Please do not remove this comment.
192.168.0.247 test2
Can someone tell me how can do this?
Kind regards,
Jurgen
|
|
|