LinuxQuestions.org
Help answer threads with 0 replies.
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 04-29-2005, 08:38 AM   #1
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Rep: Reputation: 15
Question how to change host name?


This is how my shell looks like:

[root@m3-ipneg-srinivas root]#

can anyone tell me how to change that "m3-ipneg-srinivas" ? .. i have tried many possibilities, but nothing works.. give me step by step details pl..

Last edited by gobi_dgm; 04-29-2005 at 08:39 AM.
 
Old 04-29-2005, 08:48 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,149

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
The name is specified in the network configuration setup. (I don't know what yours is. Mine is [as root] system-configure-network.) You want to change your "host name" to whatever you want to use. Note that your "host name" only needs to be in the internet DNS system if you're setting up an actual web server, which I suspect you're not (yet) doing.
 
Old 04-29-2005, 09:20 AM   #3
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Original Poster
Rep: Reputation: 15
i used "netconfig" to configure.. but it doesnt have that name.. i even did grep as
"grep -i m3-ipneg* *" from '/' . But it didnt any result. i couldn understand, wats behind this.
im using redhat 9.0
 
Old 04-29-2005, 09:22 AM   #4
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
Check /etc/host it is probably in there and can be changed with an editor.
 
Old 04-29-2005, 04:24 PM   #5
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
If you want to search something I think a more appropiate command would be "grep -R -i m3-ipneg *" from '/'. (the -R is to search in a recursive manner).
 
Old 04-29-2005, 07:53 PM   #6
setenv02
Member
 
Registered: Apr 2005
Location: Chicago,IL
Distribution: redhat 9
Posts: 32

Rep: Reputation: 15
Run the command /bin/hostname <hostname> where the hostname you want specified put that hostname there. After this change the /etc/hosts file.
 
Old 05-01-2005, 12:34 AM   #7
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks

Thanks for ur timely help.. its working fine.. i have used /bin/hostname and edited in /etc/hosts. its ok now.

thanks
 
  


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 change Host Name intels_ss Linux - Newbie 4 07-25-2005 07:26 PM
Host Name Change ? apocolpse Linux - Newbie 3 04-12-2005 11:27 AM
how do i change my host name? jsmarshall85 Debian 7 10-19-2004 03:04 PM
How to change the host name? aroop Linux - Networking 8 09-12-2004 08:29 PM
How can I change the host name? Kramer Linux - General 7 01-15-2004 08:25 AM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration