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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-10-2007, 04:45 AM
|
#1
|
Member
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127
Rep:
|
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
|
|
|
12-10-2007, 05:06 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Hi.
The file is /etc/hosts .
Dave
|
|
|
12-10-2007, 05:10 AM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Check in /etc/hostname and /etc/hosts. Also look at some of the scripts in /etc/sysconfig/network-scripts and /etc/sysconfig/network.
|
|
|
12-11-2007, 02:03 AM
|
#4
|
Member
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127
Original Poster
Rep:
|
Thanks, Redazz - /etc/sysconfig/network stores the changed host name.
Last edited by JonBL; 12-11-2007 at 02:11 AM.
|
|
|
12-11-2007, 02:09 AM
|
#5
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
|
|
|
12-11-2007, 03:05 AM
|
#6
|
Member
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127
Original Poster
Rep:
|
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
|
|
|
12-11-2007, 05:38 AM
|
#7
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Jon, it's a bit like that mate, but hat to take a best guess
Cheers
Bill
|
|
|
12-11-2007, 06:36 AM
|
#8
|
LQ Newbie
Registered: Nov 2007
Posts: 2
Rep:
|
where is the hostname stored
it is stored under /etc/hosts
|
|
|
12-12-2007, 12:27 AM
|
#9
|
Member
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127
Original Poster
Rep:
|
Sandeep, on my Fedora box, the Network Configuration dialog does not update /etc/hosts.
Regards,
Jon
|
|
|
12-12-2007, 12:37 AM
|
#10
|
Member
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|