LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-03-2004, 07:07 PM   #1
R153-Ab0V3
LQ Newbie
 
Registered: Dec 2003
Distribution: {echo} Fedora Core1
Posts: 9

Rep: Reputation: 0
hostname changes


ok i went in the network changed my host name but keeped the .localdomain thing there

so i changed it to be bootcode.localdomain i restart then it say need to change /etc/host. so i did it still dont show up in the ip scanner i use to my networks....

it shows hostname unknow.. but before it shows the localhost.. any help will be cool thx
 
Old 01-03-2004, 07:10 PM   #2
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Uhm, i'm not quite sure what your asking for here... Can you please re-word it, thanks.
 
Old 01-03-2004, 07:53 PM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Sounds to me like he's trying to set his hostname... and as long as Red Hat 9 is the distro here's the basic steps:
add the hostname to /etc/hosts (my box is named spork so here's my /etc/hosts file)
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost spork


as the warning says don't remove the localhost.localdomain localhost (very bad things happen)
step 2:
edit /etc/sysconfig/network and add a HOSTNAME= line
my /etc/sysconfig/network file:
NETWORKING=yes
HOSTNAME=Spork


Then you should be able to restart networking and have your hostname set.
service network restart
 
Old 01-04-2004, 02:00 AM   #4
R153-Ab0V3
LQ Newbie
 
Registered: Dec 2003
Distribution: {echo} Fedora Core1
Posts: 9

Original Poster
Rep: Reputation: 0
ok cool ill try that thx

is there a limit on text for a host name?
 
Old 01-05-2004, 08:52 PM   #5
massey
LQ Newbie
 
Registered: Dec 2003
Distribution: RH9
Posts: 3

Rep: Reputation: 0
Thanks very much for posting this solution. I was facing the same issue: in order for a
licence server to work I needed a static name even though I wanted everything else
set by dhcp.
 
Old 01-05-2004, 10:21 PM   #6
krazyglue
Member
 
Registered: Oct 2003
Posts: 68

Rep: Reputation: 16
http://lppcfom.sourceforge.net/fom-s...ache/1045.html

this site helps me out. It gives step by step, command line instructions on how to setup a static IP.
 
Old 01-10-2004, 11:36 PM   #7
drakerdad
LQ Newbie
 
Registered: Jan 2004
Location: missouri
Distribution: redhat 9.0
Posts: 1

Rep: Reputation: 0
hostname changes

Thanks to Blinker_Fluid for the post about changing the hostname and adding the host name by adding the machine name at the end of the line. I have been looking for that solution for about three weeks.

I am running RH9.0 and was encountering an error message right after the login screen that said I needed to edit the /etc/hosts file, but I could not find any info on which part to edit.

As I am a newbie, this was very helpful.

Thanks.
 
  


Reply



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
hostname gururaj Linux - Networking 2 01-05-2006 05:02 PM
Hostname avenolpey Debian 2 08-01-2005 09:11 AM
Hostname jpauls104 Slackware 5 07-28-2003 12:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 07:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration