LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to change host name? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-host-name-318418/)

gobi_dgm 04-29-2005 08:38 AM

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..

PTrenholme 04-29-2005 08:48 AM

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.

gobi_dgm 04-29-2005 09:20 AM

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

brainiac 04-29-2005 09:22 AM

Check /etc/host it is probably in there and can be changed with an editor.

vladmihaisima 04-29-2005 04:24 PM

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).

setenv02 04-29-2005 07:53 PM

Run the command /bin/hostname <hostname> where the hostname you want specified put that hostname there. After this change the /etc/hosts file.

gobi_dgm 05-01-2005 12:34 AM

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

thanks


All times are GMT -5. The time now is 09:45 PM.