LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-19-2005, 02:20 PM   #1
cyrusc
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?

P.S.
I have set up static DHCP on my router, so each computer on the network has a static IP.
 
Old 03-19-2005, 02:47 PM   #2
Pr0metheus
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:

192.1.2.3 RandomName


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

http://RandomName/
 
Old 03-19-2005, 02:54 PM   #3
cyrusc
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
That worked

That worked. Thanks.
 
  


Reply


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 02:08 AM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 07:37 AM
windows does not resolve linux hostname abrb220 Linux - Networking 6 05-18-2004 04:11 AM
hostname for Web server on RedHat 9 gschrade Linux - Newbie 9 12-02-2003 09:44 PM
Cannot resolve hostname problem for IglooFTP smc_one Linux - Networking 0 08-18-2003 10:33 AM


All times are GMT -5. The time now is 07:25 AM.

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