Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-15-2013, 10:46 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 11

Rep: Reputation: 0
Unhappy 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.

Old 01-15-2013, 11:10 AM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enable DHCP setting in fedora 12? previously I was using static address? singhabsk Linux - Networking 1 01-03-2011 12:42 AM
Fedora 11: Boot freezes at setting hostname ESC201 Linux - Software 4 04-23-2010 11:13 PM
setting up a server with fedora 5 (dhcp) rca Member Intro 1 10-02-2006 07:27 PM
Issues setting hostname with DHCP blaroe Ubuntu 2 05-30-2005 04:46 AM
Setting DHCP Hostname Tap-Out Linux - General 1 12-07-2003 05:15 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration