I've seen a few ways of changing hostnames of domain names.
One way is to issue the
hostname command followed by the name such as:
/etc/sysconfig/network also has a
hostname field, but changing that does not affect the output of the
My question is, where is each of these used, which do I care about and why? What's the proper way of setting the hostname?