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?
Guest
 

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:
    192.168.0.1 OtherPc

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


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


Return to System configuration

Who is online

Users browsing this forum: kedaha and 15 guests

fashionable