Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.