Question: how to change name of centos server?
Answer: Using a text editor, open the server's /etc/sysconfig/network file. ...  Modify the HOSTNAME= value to match your FQDN hostname, as shown in the following example: HOSTNAME=myserver.domain.com. Open the file at /etc/hosts. ...  Run the hostname command.