LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual boot (rh9 winXP) host problem (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-rh9-winxp-host-problem-118315/)

leb01002 11-20-2003 06:17 PM

dual boot (rh9 winXP) host problem
 
I have RH9 and WinXP set up on my computer. Every so often, when I boot to linux, my host name will get set to my computer's name that I set up when I first installed windows. This screws up sendmail and who knows what else. How do I fix this so that my host doesn't change from localhost.localdomain, or how can I make linux accept my computer's name?

thanks

Mathieu 11-20-2003 07:32 PM

You will need to edit the /etc/sysconfig/network file by adding your hostname to the hostname line.
Code:

HOSTNAME=hostname
And you will need to edit the /etc/hosts file by appending your hostname to the loopback (127.0.0.1) line.
Code:

127.0.0.1      localhost.localdomain  localhost hostname

leb01002 11-21-2003 08:58 AM

thanks!!


All times are GMT -5. The time now is 04:45 AM.