LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   uploading a website (https://www.linuxquestions.org/questions/linux-networking-3/uploading-a-website-286032/)

anubhuti_k 02-03-2005 10:48 PM

uploading a website
 
Hi there
I am uploading a website of my institute comp society 'Utkarsh' on my intranet. it works fine. I have got Suse distro. It already has apache server. IP address of my server is 10.20.81.158. When i type 10.20.81.158 in address bar in any of the comps in LAN it gets the correct page but I want that on typing 'Utkasrh' in address bar I should get this websit. What shud i do?
Thanks

bitpicker 02-04-2005 04:49 AM

There's a file /etc/hosts (if not, try to find that file 'hosts' wherever it is). In this file you can enter the IP adress and the name you want your browser to use (just follow the examples included in the file). The browser takes the IP address from that file when you enter the name in the browser.

Robin

anubhuti_k 02-04-2005 10:11 AM

thanks a lot! that worked but that way i will have to make that entry in etc files of all the comps in the lan..isnt there any way that i can do it in a simple so that i have to make the entry only on server..

Thanx

bitpicker 02-04-2005 03:10 PM

Depending on the size of the network you might want to look into setting up a NIS server. NIS distributes network relevant information to all NIS clients, so that, among other things, the NIS server provides hosts entries; it's somewhat similar to DNS but not the same thing. However, setting that up just for getting around editing the hosts file on each computer manually might prove to be more work in the end.

Robin


All times are GMT -5. The time now is 12:14 PM.