LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-10-2014, 12:14 AM   #1
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Rep: Reputation: 1
problem with request in LAN


Hi friends
i have a terrible problem, there is a web server in my LAN with ip 192.x.x.x
when internet is disconnected on this server, page is too slow to open in my LAN.
in my resolv.conf i have :
search google.com
nameserver 127.0.0.1
nameserver 8.8.8.8
----------------------------------------------
how can i fix this?
thanks
 
Old 06-10-2014, 12:30 AM   #2
LinBox2013
Member
 
Registered: Sep 2013
Posts: 86

Rep: Reputation: 8
Quote:
Originally Posted by l0pht View Post
Hi friends
i have a terrible problem, there is a web server in my LAN with ip 192.x.x.x
when internet is disconnected on this server, page is too slow to open in my LAN.
in my resolv.conf i have :
search google.com
nameserver 127.0.0.1
nameserver 8.8.8.8
----------------------------------------------
how can i fix this?
thanks
Well the problem makes sense. You are telling the file to resolve but it cannot resolve when the net is disconnected. So it probably sits there and pings and pings and pings and slows down the whole network ability on the machine. If you simply want it as a LAN server then set it up that way and the problem will be solved, if you want it as a web server keep it connected to the web and the problem will be solved.

Thank in my opinion is how you fix the problem.

EDIT: Why do you have it setup this way anyhow? If you have a lan then you have a router or something sitting in between you and the net. Why does the server machine even have to communicate directly with the net when you could have requests pointing to that machine so the router or whatever can do the hard lifting? Open the machine on your network then direct the router to forward requests to that machine and X port or whatever. This is very easy and I have done this many times without any special settings at all. Let the router do the work and let the server just be a node on the network. Easy and takes care of the problem because the requests look as if they are coming from the network every time.

Last edited by LinBox2013; 06-10-2014 at 12:36 AM.
 
Old 06-10-2014, 12:44 AM   #3
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Original Poster
Rep: Reputation: 1
thanks
is there a way to say in resolv.conf to server that when a request comes use local network to resolve and then if no! use public dns servers?
ty
 
Old 06-10-2014, 01:56 AM   #4
LinBox2013
Member
 
Registered: Sep 2013
Posts: 86

Rep: Reputation: 8
Quote:
Originally Posted by l0pht View Post
thanks
is there a way to say in resolv.conf to server that when a request comes use local network to resolve and then if no! use public dns servers?
ty
Doing it the way I am talking about there is nothing special you have to do. Whether it comes from the local network or not. What you will be creating by what I am saying is a local network server and simply using the router to forward requests to the specific machine that is the server. Setup the router to resolve DNS and to provide it to the local network. You can use the the DNS server you are using for the whole network. My router has an option to specify specific DNS servers for specific machines if I so choose, but I don't do it that way. I have set up a few servers in my time and used the method I speak of. There is no need to seclude the server on the network, the job of the router is to protect the network. Comb through the router settings and set the router up to do the job it was designed to do.
 
  


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
Remote connection problem(build a separated lan in two VPN connected lan) William17 Linux - Networking 0 12-04-2011 02:33 AM
Relaying HTTP request sent fro outside the LAN cov Linux - Server 2 04-27-2010 06:24 PM
Could not filter the request of LAN razan Linux - Security 1 04-09-2005 11:17 AM
PASSING APACHE (Live) REQUEST TO IIS on LAN sajidfiaz Linux - Networking 2 05-19-2004 10:03 AM
Asus a7n266-vm/lan/aa: Problem with onboard lan jmourik Linux - Hardware 9 08-13-2003 01:13 AM


All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration