Set Hostname on CentOS

Set your server Hostname (CentOS)

1. Open terminal/shell
2. Run "hostname your.hostname.tld"
3. Set HOSTNAME="your.hostname.tld" in /etc/sysconfig/network
4. Optional reboot for changes to take full effect
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to setup rDNS for Dedicated Server and VPS

To update rdns please email support@absolute.hosting or create a ticket with your specification...

Lock down SSH access to certain IP addresses

Restrict SSH to certain IP addresses, using iptables By default SSH runs on port 22, so first we...