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.. |
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.
|
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 |
Check /etc/host it is probably in there and can be changed with an editor.
|
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).
|
Run the command /bin/hostname <hostname> where the hostname you want specified put that hostname there. After this change the /etc/hosts file.
|
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. |