Hello, please tell me how to change my default host name of my VPS in linux centos 6 and 7? Currently my name servers are default vmi283.zainhosting.net.
Its a very simple task,
login to your ssh with root account via putty etc.
now fire this command
it will show you your current host name or server name,
now fire this command to change the server name,
replace set.yourhostname.com with your desired host name.
now just restart your linux centos VPS by this command
or restart network only by this command
service network restart
Please login or Register to submit your answer