During Debian installation, I set my hostname to the wrong value, and now I would like to correct that.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
The hostname is stored in three different files:
You might want to have a deeper look with Restarting affected services might be a good idea as well. |
|||
|
|
|
The value is stored in |
|||
|
|
|
Various services may also depend on being able to resolve the hostname locally, which is often handled by an entry in the /etc/hosts file. |
|||
|
|