Hostname

How to change your server's hostname

The file /etc/sysconfig/network contains the hostname that you need to change. The file will look something like this:

NETWORKING="yes"
NETWORKING_IPV6=no
HOSTNAME="www.example.com"

This change won't take affect until the next reboot, but you can make the change happen immediately using the hostname command like so:

hostname ftp.example.com

You may also need to add/change the hostname in the /etc/hosts file. By default this should look something like this:

127.0.0.1  www.example.com localhost localhost.localdomain

Recent Updates

  • 4 months 2 weeks ago
    1.27.2 update
  • 4 months 4 weeks ago
    Drupal 10/11 config
  • 4 months 4 weeks ago
  • PHP
    4 months 4 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 5 months 5 hours ago
    New version of Pound