Changing server hostname

From Pulsed Media Wiki
Revision as of 19:35, 8 September 2011 by Nucode (talk | contribs) (Created page with "== Debian based systems == Edit file ''/etc/hostname'' vim /etc/hostname After which you can restart networking, or restart the server to get the changes. Latter is preferrab...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debian based systems

Edit file /etc/hostname

vim /etc/hostname

After which you can restart networking, or restart the server to get the changes. Latter is preferrable as that way you can be certain everything needed is restarted and reconfigured, opposed to remembering what needed to be restarted.

Fedora/RHEL/Centos

It's on the file /etc/sysconfig/network line starting HOSTNAME=, otherwise it does not differ from the debian based systems.

Windows

On windows it's known as computer name, and is not a Fully Qualified Domain Name like on Linux based systems. This can be found on computer properties, ie. click start -> 2nd click computer, choose properties from context menu.