Search This Blog

Saturday, June 05, 2010

How to change hostname of a VPS?

Enter the command in the node

vzctl set VEID --hostname --save

eg:

vzctl set 101 --hostname sample.hostname.com --save

Do not forget to give the option --save otherwise it will be removed on the next restart.

No comments: