Setting a Hostname
To set a custom hostname for your system, write to the /etc/hostname
file, which acts as machine-specific state. This can be done
via Anaconda, or with a privileged container.
Once booted, you can also verify that the desired hostname has been set using hostnamectl
.
Want to help? Learn how to contribute to Fedora Docs ›