I want to change the hostname of my computer permanetly.
Usually the hostname of my machine was localhost
but once I turned on and the hostname is '241pxo16w85'.
I checked the files:
-----/etc/host.conf---------
order hosts,bind
---------------------------------
------------------/etc/hosts---------------------
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
-----------------------------------------------------------
-----------/etc/sysconfig/network-------------
NETWORKING=yes
HOSTNAME=localhost.localdomain
------------------------------------------------------------
I also cheked the man page for hostname and I tried with it,
everything seems to be good but when I restart my computer or/and network service my hosname is again 241pxo16w85
Any idea?
Usually the hostname of my machine was localhost
but once I turned on and the hostname is '241pxo16w85'.
I checked the files:
-----/etc/host.conf---------
order hosts,bind
---------------------------------
------------------/etc/hosts---------------------
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
-----------------------------------------------------------
-----------/etc/sysconfig/network-------------
NETWORKING=yes
HOSTNAME=localhost.localdomain
------------------------------------------------------------
I also cheked the man page for hostname and I tried with it,
everything seems to be good but when I restart my computer or/and network service my hosname is again 241pxo16w85
Any idea?
