LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2007, 05:45 AM   #1
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Rep: Reputation: 16
Where is Hostname Stored?


I've used the DNS tab of the Network Configuration dialog to change the host name for my F8 box. After reboot, command "hostname" shows the new host name, but I can't find the file that has been updated with the new host name.

What file does F8's Network Configuration dialog update when I change the host name?

TIA,
Jon
 
Old 12-10-2007, 06:06 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

The file is /etc/hosts .

Dave
 
Old 12-10-2007, 06:10 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Check in /etc/hostname and /etc/hosts. Also look at some of the scripts in /etc/sysconfig/network-scripts and /etc/sysconfig/network.
 
Old 12-11-2007, 03:03 AM   #4
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanks, Redazz - /etc/sysconfig/network stores the changed host name.

Last edited by JonBL; 12-11-2007 at 03:11 AM.
 
Old 12-11-2007, 03:09 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a dig around in /etc/sysconfig/networking. I'm not at a Fedora box just now, but I think it's the same as the CentOS I'm on
 
Old 12-11-2007, 04:05 AM   #6
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanks, Billy. Every Linux distro seems to do their own thing. It turns out that on Fedora, the current hostname is stored in file /etc/sysconfig/network.

Regards,
Jon
 
Old 12-11-2007, 06:38 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Jon, it's a bit like that mate, but hat to take a best guess

Cheers

Bill
 
Old 12-11-2007, 07:36 AM   #8
sandeep mathur
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
where is the hostname stored

it is stored under /etc/hosts
 
Old 12-12-2007, 01:27 AM   #9
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Sandeep, on my Fedora box, the Network Configuration dialog does not update /etc/hosts.

Regards,
Jon
 
Old 12-12-2007, 01:37 AM   #10
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
I find it odd that you're not finding it under /etc/hosts. On Fedora 8, that's where mine is located. Granted I've always edited it by hand and not with any gui or script...so that may be why, though I'm not sure.
 
  


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
Where is mail stored? christopher_c Linux - Newbie 13 09-27-2007 03:59 PM
Where are routes stored? vusa Linux - Networking 4 04-28-2005 07:50 PM
Where is command stored ?? LinuxRam Linux - General 6 08-29-2004 01:45 PM
Where are executables stored ??? SelaAragon Linux - Software 10 03-15-2004 03:38 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM


All times are GMT -5. The time now is 06:30 PM.

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