[CentOS] Hostname question

John R Pierce pierce at hogranch.com
Mon Apr 8 18:46:06 UTC 2013


On 4/8/2013 11:17 AM, Jason T. Slack-Moehrle wrote:
> but `hostname -f` says:
>
> $ hostname -f
> hostname: Unknown host

put the hostname in /etc/sysconfig/network, as ..

HOSTNAME=full.domain.name.com

example...

$ more /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=hostname.mydomain.com
GATEWAY=x.y.w.x


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast




More information about the CentOS mailing list