<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div>
<div> </div>
<div>I am trying to use dnsmasq in an "excotic" way:</div>
<div> </div>
<div>I have two different subnets (two locations connected by OpenVPN): 192.168.6.0 and 192.168.10.0</div>
<div>Both nets use the same domain.</div>
<div>Both sides use dnsmasq as DNS and DHCP server.</div>
<div> </div>
<div>On each side, local adresses are kept in the hosts file.</div>
<div>Now I tried to avoid redundant information in the hosts file and only wanted to store the "real" local machines.</div>
<div> </div>
<div>E.g.:</div>
<div>192.168.6.1 (router1) hosts file:</div>
<div>---------------------------------------</div>
<div>192.168.6.11 00:0C:76:B0:BB:B6 * pc01 # machine 1</div>
<div>192.168.6.12 00:0C:76:B0:BB:B6 * pc01 # machine 2</div>
<div>...</div>
<div> </div>
<div>
<div>192.168.10.1 (router2) hosts file:</div>
<div>---------------------------------------</div>
<div>192.168.10.17 00:0C:76:B0:BB:B6 * pc07 # machine 7</div>
<div>192.168.10.18 00:0C:76:B0:BB:B6 * pc08 # machine 8</div>
<div>...</div>
<div> </div>
<div>To reach all machines from net 1 (192.168.6.x) I tried the following config:</div>
<div> </div>
<div>
<div>domain-needed<br/>
log-async=10<br/>
no-resolv<br/>
server=8.8.8.8<br/>
server=192.168.180.2<br/>
dhcp-range=192.168.6.20,192.168.6.200,168h<br/>
domain=mydomain.lan<br/>
expand-hosts<br/>
read-ethers<br/>
server=/mydomain.lan/192.168.10.1</div>
<div>server=/10.168.192.in-addr.arpa/192.168.10.1<br/>
</div>
<div> </div>
<div>It works almost as expected, but as soon as I do an nslookup for a machine in the second net (192.168.10.x) it takes quite a long time for the answer.</div>
<div>Afterwards all answers take quite lon (about 5 sec). Only solution is to restart dnsmasq. But as soon as I ask for a machine in the second net, the problem occurs again.</div>
<div> </div>
<div>When I put all machines in both hosts file an remove the server=/... config, I don't have any delays.</div>
<div> </div>
<div>WHat is happening here? Am i abusing dnsmasq here? Is there another solution, to keep only the real loacal machines in the hosts file and to acces them from both sides?</div>
<div>Or do I have to keep all machines in both hosts files?</div>
<div> </div>
<div>Thanks for any hints</div>
<div>Robert</div>
</div>
</div></div></body></html>