[CentOS] /etc/sysconfig/network HOSTNAME settings

Liam O'Toole liam.p.otoole at gmail.com
Sun Sep 4 18:57:01 UTC 2016


On 2016-09-03, Walter H. <Walter.H at mathemainzel.info> wrote:
> Hello,
>
> I found different ways to define the hostname ...
>
> this
> HOSTNAME=3D"host.domain.tld"
>
> or this:
> HOSTNAME=3D"host"
> DOMAIN=3D"domain.tld"
>
> what is the correct way?
>
> Thanks,
> Walter

In the case of RHEL 5 and 6 the former way is recommended[1]. I don't
know whether that advice has changed with RHEL 7.

1:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Network_Interfaces.html#sect-setting-the-host-name

-- 

Liam




More information about the CentOS mailing list