Name instead of IP

Kernels & Hardware, configuring network, installing services

Name instead of IP

Postby Guest » 2004-04-05 12:47

I'm having 2 computers at the moment. The have apache installed.
I would like to put a name in the browser instead of the ip of the other computer.

It was possible in windows so I think it wouldn't be a problem for linux. The only problem for me is: How is it done?

Postby Guest » 2004-04-05 13:02

(I'm assuming that you have static IP's)

Edit the /etc/hosts file. You have to add a line like this: OtherPc

edit the /etc/hostname on the other PC like this

Now you should type OtherPc in the the browser of the PC of which you have edited /etc/hosts and you should get the page from

Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests