Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2005, 03:20 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
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.
Old 03-19-2005, 03:47 PM   #2
LQ Newbie
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
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

Old 03-19-2005, 03:54 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
That worked

That worked. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 03:08 AM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 08:37 AM
windows does not resolve linux hostname abrb220 Linux - Networking 6 05-18-2004 05:11 AM
hostname for Web server on RedHat 9 gschrade Linux - Newbie 9 12-02-2003 10:44 PM
Cannot resolve hostname problem for IglooFTP smc_one Linux - Networking 0 08-18-2003 11:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration