changing host name
my linux box is now having the name "localhost"
how to change the host name? and how to make the host name be ping from other machine? |
Try searching for this topic? It has been covered many times.
May want to specifically look at this thread. |
thnx anyway
|
You can change the host name by modifying the /etc/sysconfig/network file. Change the line HOSTNAME=<your_host_name>. That should do it.
|
excuse me, i have exec the hostname cmd (my proposed name is "neozeon"): hostname neozeon, amended /etc/sysconfig/network with
HOSTNAME=neozeon and rebooted the machine however i still cant ping the host neozeon from a client comp, the client said: unknown host, but i can ping with neozeon's ip. |
You need to add an entry to
/etc/hosts with the name and ip address. Just follow the entry for localhost which is already there. (You need to be root for this). |
ah...... i should amend my question that i even cant ping 192.168.0.1 at 192.168.0.1?!
there should be sth else wrong. |
i should add sth to my question. i guess the "iptable" has forbidden ping, but, i dun know how to check.
|
Are you allowed to give your machine a TLD extension eg mypc.com I have a dns entry for the machien as mypc.com on my inturnal network butin my networking control pannel it would not allow me to add .com after the name can I hack the /etc/sysconfig/network file and set it there ?
|
run this
hostname yourname |
Quote:
Code:
$ su - |
All times are GMT -5. The time now is 07:43 AM. |