Hi Good Day!
I have a fedora 8 installed and I wan't to change its hostname since the default hostname is "localhost.localdomain". I wanna change it to something different. Please some one advice what to do. Do I have to change the entry in "/etc/hosts" or there's other way to do it?
You need to change the hostname in both /etc/hosts and /etc/sysconfig/network.
I had already changed the entry on both location. I still have one more question?
Do I really have to include the domain in the entry?
Please bear with me, I'm still a newbie on linux. BTW, I am using DHCP, will this affect.
I mean I had not included a domain on /etc/hosts. Does this affect my network functionality or my network functionality will fail?
No, the full doman name is not required.
Thanks MacMonster.
Mac...
Why is it when I'm on windows I could not ping using the newly assigned hostname?
I can ping the IP Address. Do I need to assign a static ip for my linux?
You need to add the hostname and IP address either to the hosts file on your Windows system (usually C:\Windows\System32\Drivers\Etc\Hosts) or to your DNS server, if you have one.
Thank You Annihilannic, It already works.
I'm too numb that I didn't think
Thanks to you all.
u can also set the hostname via sysctl -
sysctl -w kernel.hostname=hostname_u_want