FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Change host name in FC5





tonk
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?
muggle
tonk wrote:
... when I restart my computer or/and network service ...

You might verify your network settings. If your computer obtains its IP address via DHCP it is highly possible that this host name is assigned to it by the DHCP server.
tonk
Thanks but I already cheked that
The computer get IP by DHCP but the DHCP server is configurated to give always the same IP to that computer.

I solved partially modifying the function gethostname() in dhclient-script
but if I restart the pc and enter again with fedora is ok but if I reboot with windows(this is a dual boot pc) now gets the host name seted in windows.

And I dont know why. I dont have a bridge nor xen nor mount the windows partition in fstab.
Related topics
Site not found
751 Useful Windows XP Files
i hate my name
change domain name
change of name?
host web.id domain
Name change
Domain name redirection MX entries help required
Did you know that you can change your name?
Change of name - Frihost Freak
How to change domain name?
Change in frihost forum name
How To Change Domain Name
brain cramp: What host name to use for mysqli_connect?
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.