Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running the free ESXi 4.1 on a server and use the free vSphere Client to access the server. I would like to change the host name from localhost.$DOMAIN to something else, but when I go to Configuration -> DNS and Routing -> Properties, the Name and Domain boxes are grayed out and I can't edit them. What do I have to do to change the host name?

share|improve this question
Are you logged into the ESXi server with an account that has rights to change the hostname? – HostBits Mar 29 '11 at 16:02
up vote 5 down vote accepted

Do it via the console on the host.

Hit F2, enter user/password, 'Configure Management Network', 'DNS Configuration', 'Hostname' - then save and restart the management network.

Then just remove/re-add the host into your VC/cluster.

share|improve this answer
Changing the DNS settings from automatic to manual also enables me to change the host name. – Scott Duckworth Mar 29 '11 at 18:06
great news, glad you're sorted – Chopper3 Mar 29 '11 at 18:08

Assuming you are logged in with an account with administrative privileges (e.g. root), the reason it's greyed out is because it is configured to use DHCP. The hostname is set to localhost when this is the case. Switch out of DHCP made and you should be able to change the hostname to something else; either via the console or GUI.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.