hostname doesn't stick

Johannes Christian johannes.sitorus at pacomnet.com
Thu Sep 7 06:16:20 UTC 2006


Thufir wrote:
> When installing FC5 I set the hostname to "arrakis.homelinux.com" when it
> should've been "arrakis.homelinux.org".
>
> running "system-config-network", and changing the hostname with the GUI,
> then running "service network restart", or even rebooting, fails to effect
> the result of "hostname".
>
> [thufir at arrakis ~]$
> [thufir at arrakis ~]$ hostname
> arrakis.homelinux.com
> [thufir at arrakis ~]$
> [thufir at arrakis ~]$ cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1       arrakis.homelinux.org   arrakis localhost.localdomain   localhost
>
> [thufir at arrakis ~]$
> [thufir at arrakis ~]$ date
> Thu Sep  7 06:32:32 IST 2006
> [thufir at arrakis ~]$
>
>
> [root at arrakis ~]#
> [root at arrakis ~]# system-config-network
> /usr/share/system-config-network/netconfpkg/NC_functions.py:30: DeprecationWarning: rhpl.log is deprecated and will be removed; use python's logging instead
>   import rhpl.log
> [root at arrakis ~]#
> [root at arrakis ~]#
> [root at arrakis ~]#
> [root at arrakis ~]# date
> Thu Sep  7 06:37:46 IST 2006
> [root at arrakis ~]#
> [root at arrakis ~]#
>
>
> I do notice a warning WRT depreciation, so I'll update the system.
>
> I've also rebooted, no change in the hostname.
>
>   
change the value on /etc/sysconfig/network HOSTNAME=ur_hostname
/etc/hosts is used only for pointting ip address from hostname, just 
like a dns

-- 
Regards,
Johannes Sitorus
PT Pacific Communication Networks
Wisma Indovision lt.12
Jl. Raya Panjang Z/III 11520
Tel. 021-5830-2430
Fax. 021-5830-2431




More information about the fedora-list mailing list