Set Hostname in Centos 7 Rumi, May 11, 2019 CentOS 7 only allows Fully Qualified Domain Names (FQDN’s). Acceptable values include lower-case letters a to z, numbers 0 to 9, the period, and the hyphen, and between 2 and 63 characters. At the console, type: hostnamectl set-hostname my.new-hostname.server NOTE: Replace my.new-hostname.server with your chosen hostname. Check the Hostname hostnamectl Administrations Configurations (Linux) CentOSCentOS 7