LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
 
Search this Thread
Old 01-15-2013, 10:46 AM   #1
techterling
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.

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

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


Reply


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 LinuxQuestions.org 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


All times are GMT -5. The time now is 08:42 AM.

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