How to permanently change the hostname? The only tool which can permanently change the hostname is: $ hostnamectl set-hostname <name> Found at IT’s Geek. Please log in to rate this. 0 people found this helpful. Category: CentOS Tags: hostname ← Knowledge Base