Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th July 2010, 04:49 AM
tr1pl3x Offline
Registered User
 
Join Date: Jul 2010
Location: Philippines
Posts: 9
linuxubuntufirefox
Question view local webserver from xp clients by not using ip??

Gud day guys.. Im a linux newbie and I'm some sort of creating an Internal webserver or Intranet for short locally. My local webserver ip address is 192.168.0.1 and when im trying to view this on my xp clients i will type it in the url 192.168.0.1. What im trying to do is view my webserver instead of typing ipaddress I'll type hmij.edu.ph for example and trying to resolve it locally through local dns resolution.. so every time i type for example. my webserver name hmij.edu.ph i want it to redirect it to my local webserver w/out going to the internet first.. I already setup dnsmasq for dhcp and dnsclient resolution. is there any better way on how i can achieved this??im a little bit of confused on how to make this work. tnx in advance!

Sorry for my bad english
Reply With Quote
  #2  
Old 26th July 2010, 05:05 AM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285
linuxfedorafirefox
Re: view local webserver from xp clients by not using ip??

Hi, this is your home network? You wish to access it from the outside world, is this correct? If so you'll need a domain name, and either a web hosting company to host it on their machinery or you can host it on your own computer. Having someone else is usually quite inexpensive, and you still have an account on their machine allowing you to administer the site.
Doing it yourself, if your ISP permits it, (some contracts don't) is free and not that difficult.
Is this what you wish to do, or is it something else?
Reply With Quote
  #3  
Old 26th July 2010, 05:12 AM
tr1pl3x Offline
Registered User
 
Join Date: Jul 2010
Location: Philippines
Posts: 9
linuxubuntufirefox
Smile Re: view local webserver from xp clients by not using ip??

actually its not from outside world. i want to view it locally. i already setup a webserver which is availble both from inside and outside.. what im trying to do here is i want to type in my xp clients hmij.edu.ph instead of typing 192.168.0.1 is there any possible way on how can i do this??. i've tried setting up dnsmasq and also tried editing my resolv.conf and hosts file for this in order to redirect the clients locally resolving my address which is hmij.edu.ph instead of 192.168.0.1. i havent registered for dns resolution online.. what i want is, is there anyway how can i make local dns resolution?? i just wanted to resolve the local webserver address w/c is 192.168.0.1 to hmij.edu.ph.

tnx for the reply
Reply With Quote
  #4  
Old 26th July 2010, 05:46 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,976
linuxopera
Re: view local webserver from xp clients by not using ip??

You can edit XP's hosts file. I forget where it's stored, someplace unexpected, like system32/drivers/etc or something similar. I'm sure there are better ways to do it. The file might be called LMHOSTS or something like that. My memory is hazy, you may have to choose to show file extensions and save the file without a sam (as in sample) extension.

I'm assuming this isn't an active directory network? If it is, just set the name in AD.
Reply With Quote
  #5  
Old 26th July 2010, 06:11 AM
aks Offline
Registered User
 
Join Date: Jul 2006
Location: Nepal
Age: 27
Posts: 50
linuxfedorafirefox
Re: view local webserver from xp clients by not using ip??

tr1pl3x:
There are two approaches to the solution, and are enlisted below:
Solution 1
On each windows machines, point hmij.edu.ph to 192.168.0.1 by putting an entry in the %systemroot%/systemm32/drivers/etc/hosts file, e.g.
Code:
192.168.0.1               hmij.edu.ph
The problem with this approach is that you'll have to make this entry on each client you want this feature. Also if that the IP of the server, you need to update the client configuration on each machine to reflect the new settings.

Solution 2
If you've configured dhcp and caching/local dns server on your server machine that your clients would be using, you can add an entry to your bind configuration for hmij.edu.ph, and point it to 192.168.0.1 in the zone file. So when the clients query the dns server (i.e your machine), it will return 192.168.0.1 as the query reply. The problem with this approach is that you'll have to configure bind for this and take some while. Also that it'll always return the private IP despite that there might be some other IP for that name.

Hope this helps you.
__________________
Abhishek Singh
Reply With Quote
  #6  
Old 26th July 2010, 07:53 AM
tr1pl3x Offline
Registered User
 
Join Date: Jul 2010
Location: Philippines
Posts: 9
linuxubuntufirefox
Re: view local webserver from xp clients by not using ip??

tnx for the reply.. It helps me alot.. I already did the solution 1 but it seems to me that its defiicult to implement due to many computer clients.. it will give me a harder time on configuring the hosts file of each clients.. I really prefer solution 2 w/c will help me alot.. tnx for the info.. GOD BLESS U.!
Reply With Quote
Reply

Tags
clients, local, view, webserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia XFX 9800 GT Rev 2 Twinn View with 32 inch hdmi 720p and view sonic 19 inch Zeguine Hardware & Laptops 0 8th January 2010 09:55 PM
How do I view all objects on my local network and their IPs? Mr.Smiley Servers & Networking 21 11th September 2007 12:01 AM
Cant view local pages on my FC5 box up Apache is up agenol Servers & Networking 6 26th December 2006 07:54 PM
Local webserver - Apache, MySQL, PHP & phpMyAdmin epalissad Servers & Networking 15 10th February 2006 03:01 AM
Does anyone know of a Linux view to view WinFax documents BillyBoy Using Fedora 2 7th May 2005 08:09 AM


Current GMT-time: 17:58 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat