Jump to content


- - - - -

How to Change Hostname on CentOS

CentOS 6.5

  • Please log in to reply
No replies to this topic

#1 Wilson18



  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 28 May 2014 - 11:14 PM

In this tutorial, I will be showing you how you can change your CentOS servers hostname. If we look in to the networks configurations file, we should be able to change this. 

nano /etc/sysconfig/network

Network Config.PNG

We can change the hostname here to something we like instead.I will be setting my hostname to inferno.wilson18.com.

Once you have done this, you can restart your network. If these changes are still not taken into effect, then you can just reboot your server.

service network restart

List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+

Also tagged with one or more of these keywords: CentOS 6.5