<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> </div>

<div> </div>

<div><a name="_MailOriginal">-----Ursprüngliche Nachricht-----<br/>
Von: Dnsmasq-discuss [mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk] Im Auftrag von Simon Kelley<br/>
Gesendet: Mittwoch, 11. Juni 2014 22:06<br/>
An: dnsmasq-discuss@lists.thekelleys.org.uk<br/>
Betreff: Re: [Dnsmasq-discuss] upstream server for "local domain" adresses</a></div>

<div> </div>

<div> </div>

<div>> Are you using the same configuration on both sides? I suspect that you're somehow creating a loop where on server send the query to the other, which sends it back to the first, which sends it again to the second, and so on.</div>

<div>> </div>

<div>> The first thing to do is to set</div>

<div>> </div>

<div>> log-queries</div>

<div>> </div>

<div>> and look at the log files to see what's happening.</div>

<div>> </div>

<div>> Cheers,</div>

<div>> </div>

<div>> Simon.</div>

<div>> </div>

<div>> _______________________________________________</div>

<div>> Dnsmasq-discuss mailing list</div>

<div>> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a></div>

<div>> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a></div>

<div> </div>

<div>Hello Simon,</div>

<div> </div>

<div>You are right. Somehow I created a loop with my configuration:</div>

<div> </div>

<div>Router 1:</div>

<div>Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded machine02.mydomain.lan to 192.168.10.1<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA] machine02.mydomain.lan from 192.168.7.13<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded machine02.mydomain.lan to 192.168.10.1<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA] machine02.mydomain.lan from 192.168.7.13<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded machine02.mydomain.lan to 192.168.10.1<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA] machine02.mydomain.lan from 192.168.7.13<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded machine02.mydomain.lan to 192.168.10.1<br/>
Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA] machine02.mydomain.lan from 192.168.7.13</div>

<div>...</div>

<div> </div>

<div>Router 2:</div>

<div>Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[A] router02.mydomain.lan from 192.168.10.11<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: /etc/hosts router02.mydomain.lan is 192.168.10.1<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA] machine02.mydomain.lan from 192.168.6.1<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: forwarded machine02.mydomain.lan to 192.168.6.1<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA] machine02.mydomain.lan from 192.168.6.1<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: forwarded machine02.mydomain.lan to 192.168.6.1<br/>
Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA] machine02.mydomain.lan from 192.168.6.1</div>

<div>...</div>

<div> </div>

<div>In this example I asked for a DNS entry which can be found in router01 hosts file.</div>

<div>Nevertheless the query goes back to router02 which can't handle it and so router01 is aked again.</div>

<div> </div>

<div>Both router are configuried equal - except for the ip of each other.</div>

<div>My thought was that the priority is hasts file and only if an entry can not be found a server entry is used.</div>

<div>But it seems that the server has higer priority. Is there a way to change this?</div>

<div> </div>

<div>But  the more I think about it, it seems not to be clever at all, what I have done.</div>

<div>If someone asks for a dns entry which isn't listed in the hosts file, i will run in the same problem even when I can achive to change the priority.</div>

<div> </div>

<div>What would be the best way for servering two subnets with the same local dns entries?</div>

<div>Using complete hosts file on both sides?</div>

<div>Using only one host file as master and to query it from both sides?</div>

<div> </div>

<div>Thanks for any suggestions!</div>

<div> </div>

<div> </div></div></body></html>