LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting hostname from dhcp on Fedora 17 (https://www.linuxquestions.org/questions/linux-networking-3/setting-hostname-from-dhcp-on-fedora-17-a-4175445706/)

techterling 01-15-2013 10:46 AM

Setting hostname from dhcp on Fedora 17
 
I had my FC17 machine configured to obtain its hostname from DHCP, and it was working fine. yesterday I ran a yum update and updated my machine. After a reboot, the hostname was back to localhost. I do not remember how I configured this before. can anybody help me resolve this issue.

Thanks
-Todd

Kustom42 01-15-2013 11:10 AM

Your hostname should be defined in your /etc/sysconfig/network file with the HOSTNAME variable. If you just want it set to something and have it stay static that is the place to change it. You can also add a DHCP_HOSTNAME variable to your /etc/sysconfig/network-scripts/ifcfg-eth0 file.


All times are GMT -5. The time now is 07:03 PM.