Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd June 2011, 04:23 AM
EclipseSW Offline
Registered User
 
Join Date: Dec 2008
Posts: 28
windows_7firefox
Changing host names on fc15

I'm building a replacement service, and in the not to distant future, I'll need to change the host name and IPs (ipv4) (I'll also be doing this on the fedora 10 box I'm replacing)

I can look around and edit a bunch of files to make it happen, but there has to be an easier way. Any hints?
__________________
Linux - where uptime is in months and years, not days and weeks
Reply With Quote
  #2  
Old 22nd June 2011, 05:37 AM
bodhi.zazen's Avatar
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
linuxfirefox
Re: Changing host names on fc15

set a hostname in /etc/sysconfig/network

make sure to check /etc/hosts as well.
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #3  
Old 22nd June 2011, 05:54 AM
EclipseSW Offline
Registered User
 
Join Date: Dec 2008
Posts: 28
windows_7firefox
Re: Changing host names on fc15

Quote:
Originally Posted by bodhi.zazen View Post
set a hostname in /etc/sysconfig/network

make sure to check /etc/hosts as well.

With Fedora 15, I noticed the host name is also part of the labels on various slices (by way of the install process), and this change won't screw up the boot process, right?

And things like the host name in prompts, etc, will be taken care of?
__________________
Linux - where uptime is in months and years, not days and weeks
Reply With Quote
  #4  
Old 22nd June 2011, 01:10 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: Changing host names on fc15

There are a few things that also use the hostname in Fedora.. Like the default label for your LVM created during the install. Changing your hostname won't affect this name, just make sure to leave it the same in the LVM name, /boot/grub/grub.conf and in your /etc/fstab.

What other things have you noticed the host name being a part of the label on?

(and yes, when you get the hostname changed correctly, it will be taken care of in the prompts, etc... )

Also, when changing the host name, if it is currently localhost.localdomain, then add the new hostname to your /etc/hosts file, but leave the localhost name in there as well. Some applications specifically look for localhost, and you could break things by removing that name for your /etc/hosts file. (make sure to change the entries for IPv4 and IPv6 as well.

(example /etc/hosts file below to show what it would look like for a system with host name tower20.home)

Code:
127.0.0.1   tower20 tower20.home localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         tower20 tower20.home localhost localhost.localdomain localhost6 localhost6.localdomain6
Reply With Quote
Reply

Tags
changing, fc15, host, names

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Manager and Host names coffee412 Servers & Networking 0 28th February 2011 02:10 PM
Help!! Resolving Host Names nicwillemse Servers & Networking 6 14th August 2007 05:35 AM
Lost connections to host after changing host name km4hr Servers & Networking 1 20th September 2006 05:09 PM
Host Names? tardis_junkie Servers & Networking 2 19th February 2006 11:06 PM
Host Names tgrier Servers & Networking 15 14th December 2005 07:25 AM


Current GMT-time: 08:18 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat