[From nobody Sun Oct  5 16:10:43 2008
Return-Path: &lt;ranceh@gmail.com&gt;
Delivered-To: michal@sawicz.net
Received: from an-out-0708.google.com (an-out-0708.google.com
	[209.85.132.249]) by serwer.sawicz.net (Postfix) with ESMTP id
	674E49B909
	for &lt;michal@sawicz.net&gt;; Sat,  4 Oct 2008 18:09:58 +0200 (CEST)
Received: by an-out-0708.google.com with SMTP id c5so110948anc.11 for
	&lt;michal@sawicz.net&gt;; Sat, 04 Oct 2008 09:09:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to
	:subject:in-reply-to:mime-version:content-type
	:content-transfer-encoding:content-disposition:references;
	bh=71qv6VN39FESqh4ZGJMbI+giVi3PVaSbBqmItnZhTEI=;
	b=r+wVN71UeJQgVa78S2OgfePG7ASbV/kgicBB0c450zfYG4r8zUG3Y8XcXhpWinpJ20
	l/hSOH+eLCxBZQ5inEkOxfmbEzebQ9n8MOF7DdSmLZzNqI90fS88gLpMYamev6aQyAaM
	6rlBuMc5OYf5VC6D50iig5/fuzUkWLro1TBlU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:in-reply-to:mime-version
	:content-type:content-transfer-encoding:content-disposition :references;
	b=CYdq+eVJOBBV0fVeqs1rnuZMqpfVSo3Eig9tbLCuqOwE4Pd5VeLfOprCXDn2iE01l2
	wA3TBGD4WIJCNOt9uwsZps0oIcSqpkbkMl81hfV9zmy4ozr2OxQQj+fpWKOBtclqo84U
	QJP4rvPzOdrhjx3xgjWKOTLk0RzaWQxxVyIfM=
Received: by 10.100.251.5 with SMTP id y5mr2917275anh.60.1223136594273;
	Sat, 04 Oct 2008 09:09:54 -0700 (PDT)
Received: by 10.101.71.8 with HTTP; Sat, 4 Oct 2008 09:09:54 -0700 (PDT)
Message-ID: &lt;845c0f80810040909k7177f62dq8ea69d5a4dda64e9@mail.gmail.com&gt;
Date: Sat, 4 Oct 2008 11:09:54 -0500
From: &quot;Rance Hall&quot; &lt;ranceh@gmail.com&gt;
To: &quot;Michal Sawicz&quot; &lt;michal@sawicz.net&gt;
Subject: Re: [Dnsmasq-discuss] Dnsmasq only to respond to local queries?
In-Reply-To: &lt;1223132523.3147.11.camel@odell.sawicz.net&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: &lt;1223132523.3147.11.camel@odell.sawicz.net&gt;
Content-Transfer-Encoding: 7bit

On Sat, Oct 4, 2008 at 10:02 AM, Michal Sawicz &lt;michal@sawicz.net&gt; wrote:
&gt; Hi, I'm trying to set up something like so:
&gt;
&gt;           ---  Internet ---
&gt;          /                 \
&gt;         /                   \
&gt;        /                     \
&gt;    Router1  -----WiFi----  Router2
&gt;  (w/dnsmasq)            (proprietary)
&gt;  /    |    \                  |     \
&gt; host1 host2 host3             host4 host5
&gt;
&gt; I would like dnsmasq to only reply to local queries, so that hosts 4 and
&gt; 5 could access hosts 1-3 by name and at the same time use its own
&gt; Internet connection to access remote hosts.
&gt;
&gt; I know I need to set two nameservers (one local and one remote) on all
&gt; the hosts but then how do I set dnsmasq so that it would only reply to
&gt; local queries and tell the hosts to ask the remote dns for other
&gt; queries?
&gt;

depends on your setup but for me dnsmasq is authoritative for the
locally served domain, and forwards all other domains out to the
internet.

so if hosts 4 and 5 are setup correctly with TWO dns sources of
information your dnsmasq ip first, and a public internet source
second.


&gt; What will happen if the WiFi connection dies (hosts 4 and 5 are,
&gt; unfortunately, M$) - will hosts 4 and 5 be unable to browse the web if
&gt; their primary NS won't reply?
&gt;

You said that router2 only had one ip cable interface which to me
suggests that router1 and router2 are connected to each other via WIFI
link since the ip cable interface hooks router2 up to the internet.

if router2 suddenly has a WIFI problem, then yes hosts 4 and 5 do lose
all inet capability because the link is broken.


&gt; Maybe there's another - better - way to achieve what I need?
&gt;
&gt; The basic idea is: all the hosts are on the same subnet (the wifi APs
&gt; can only do bridging, Router2 only has one ethernet interface etc.). I
&gt; want them to connect to the internet using their respective connections
&gt; but also be able to communicate easily over the WiFi connection.
&gt;


You'll forgive me, but I dont see the value in the extra work you are
doing here.

Seems to me like you have added extra equipment you dont need and made
your network more complex, but have not solved a problem.

whats wrong with this:

         internet
         -----------
              |
         router1 w/dnsmasq
         -----------
         /          \
   cabled        wifi router2
   hosts          ---------------
   repeated               \
                            wireless hosts





I understand (I think) what problem you were trying to solve with your
original setup, but I guess I dont think you solved it.
they arent two seperate subnets that need to talk to each other, so
since they are the same subnet I would try to wire them that way.

Feel free to enlighten me if you think I missing something.
]
