RLC+ videos

Changing system hostname | Rocky Linux

This quick tip covers the first thing to do after installing Rocky Linux: change the default hostname from localhost to something meaningful. After showing the command, the video explains why the step matters more than many assume.

The hostname identifies a computer on the network and is used in security tasks such as logging and access control. The video advises a descriptive name that does not advertise what a system does, since a revealing name could invite attackers, unless the machine is deliberately a honeypot. Regulated industries such as healthcare and finance also require specific naming conventions for audits. New Rocky Linux administrators get a practical reason to set hostnames.

Key takeaways

  • Changing the default hostname from localhost should be one of the first steps after installing Rocky Linux.
  • The hostname identifies a computer on the network and is used by applications, services, logging, and access control.
  • Pick a name that is descriptive but does not reveal sensitive functions that could make the system an attractive target.
  • Regulated industries such as healthcare, transportation, and finance need specific naming conventions for audits and reporting.

Questions this video answers

Why should I change the hostname on a new Rocky Linux system?

The hostname identifies the machine on the network for applications and services and is used in security tasks like logging and access control. It should be descriptive but not so revealing that it gives attackers clues about the system's role. In regulated industries, unique naming conventions are also required for compliance audits and reporting.

About this video

How do I change the system hostname? Why should I rename the hostname? It's actually a lot more important to change a system hostname than you think, and this video covers why. From healthcare to finance, these systems should have specific hostnames for many reasons.

This video is part of the RLC+ playlist. Browse every CIQ video by product and topic.

Transcript

so you just installed Rocky Linux and you're wondering what to do now the first thing that you would want to do is to change the system hostname to change the default hostname from localhost to kickass workstation or any name you like type this very important to do this for several reasons first identity the system host name is used to identify a computer on a network for applications and services security the system's hostname is used for various security related tasks such as logging and access control the host name should be descriptive but not so descriptive to give an attacker Clues to what functions or Services

the system is running for example it might be good not to call a system quote keys to kingdom.company.com as it might make a good Target for hackers now on the other hand if you're setting up a trap for hackers that might be a great name for a Honeypot use common sense when naming your systems compliance now Industries have to manage strict controls and compliance such as Healthcare transportation and finance these require specific and unique naming conventions for regulatory Audits and Reporting now overall setting a descriptive and unique hostname is a vital step in standard system administration practices

Built for scale. Chosen by the world’s best.

2.75M+

Rocky Linux instances

Being used world wide

90%

Of fortune 100 companies

Use CIQ supported technologies

250k

Avg. monthly downloads

Rocky Linux

9

Enterprise products

Spanning the kernel to the orchestrator

Have questions about your infrastructure?

Talk to a CIQ engineer about Rocky Linux, HPC, and AI infrastructure.

Talk to an Expert