How to change Hostname?

To change the hostname on your VPS or Dedicated Server please use the following command: 


hostname servername.yourdomain.com

E.g. server65.switchmyserver.com

 

To make the changes even after reboots you will need add/modify the following line in /etc/sysconfig/network:

HOSTNAME=servername.yourdomain.com

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Curl installed on servers by default

All Switch My Server servers come with curl installed. If you wish for this not to be the case...

Can I have private subnets?

Yes for IPv4 and IPv6. For all subnets a RIPE justifications needs to be provided. Contact our...

Do you allow adult content?

Yes, as long its legal in the UK. Any content found not legal under UK law will be terminated...

How do I configure server alerts?

All our dedicated servers come with monitoring as standard, this can be turned off upon request....

How do I get IPv6?

Contact our Customer Services Team and we can add this on for you. IPv6 is available on all our...

Powered by WHMCompleteSolution