-   Linux - Newbie (
-   -   Want Numeric IP of Web Server to resolve to hostname (

cyrusc 03-19-2005 03:20 PM

Want Numeric IP of Web Server to resolve to hostname
I just set up a home network (three computers (2 run XP, the other runs mandrakelinux 10.1) connected to the Internet through a router. I configured the mandrakelinux computer to run an Apache Web Server for the computers on the network. When I type the numeric IP of the mandrake comp. into the browser of either of the XPs I get the Web page of the apache server. That's fine.
The problem is that I don't want to be typing numbers. I want to be able to type the hostname of the mandrake computer instead of the numeric IP. What do I need to do to make this happen?

I have set up static DHCP on my router, so each computer on the network has a static IP.

Pr0metheus 03-19-2005 03:47 PM

On the windows boxes edit the hosts file, it can be found:

Windows 95/98/Me c:\windows\hosts

Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts

Windows XP Home c:\windows\system32\drivers\etc\hosts

Open it in notepad
Then add a line similar to this: RandomName

Where is the IP-Address you are typing in, and RandomName is whatever you want to access it by, so to access the above example


cyrusc 03-19-2005 03:54 PM

That worked
That worked. Thanks.

All times are GMT -5. The time now is 06:33 PM.