Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 would like to change the hostname on my Ubuntu Server 12.04 box that I rent from a dedicated server company. At the moment if I type hostname into SSH I get a response like so:

cl-21.servercompany.com

is there a way to change this? And if I do, will it cause any problems? I'm unsure if the company is likely to use the hostname to connect to the server from inside the database or its static IP.

Thanks!

share|improve this question
up vote 0 down vote accepted

To change to hostname of your server you only need to edit /etc/hostname and /etc/hosts It shouldn't cause any problems, since it won't change the servers DNS entry.

share|improve this answer

Your Answer

 
discard

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.