LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-10-2005, 07:42 AM   #1
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Rep: Reputation: 15
internal webserver


is there anyway to have 2 clients on a LAN see a certain website if the queried say like if i had 192.168.1.2 and 192.168.1.3 and i wanted querys for test.com to only resovle to the apache server for those ips only and the rest to resolve to the real test.com ho could i do that?
 
Old 06-10-2005, 07:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
ok, little confusing there, but i *think* you mean you just want two individual LAN machines to resolve a domain to one local IP, instead of the real address? easy, just add the fake details to /etc/hosts. note that this is totally seperate to any actual webserving going on.
 
Old 06-10-2005, 07:56 AM   #3
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Original Poster
Rep: Reputation: 15
add fake hosts? explain please , i am sort of new

but yes your right about what i am tring to do
 
Old 06-10-2005, 01:46 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you simply lie to each machine about what the IP is. open up /etc/hosts and add a line at the bottom, for example "192.168.0.1 microsoft.com". the hosts file is the very first port of call when resolving a host, so anythign in there will be used by the machine first off.
 
Old 06-11-2005, 12:26 PM   #5
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Original Poster
Rep: Reputation: 15
thank you very much
 
  


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
apache webserver - can see from internal but not external filpee Linux - Networking 5 03-20-2005 12:31 AM
can't browse my webserver from internal network enzolabrador Linux - Networking 8 08-30-2004 12:27 PM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 10:03 AM
IPtables - cannot access internal webserver tantric Linux - Security 3 03-17-2004 02:20 AM
Internal DNS server / Webserver MightyCranium Linux - Networking 6 04-02-2003 01:17 AM


All times are GMT -5. The time now is 01:54 PM.

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