[Dnsmasq-discuss] upstream server for "local domain" adresses
Simon Kelley
simon at thekelleys.org.uk
Mon Jun 16 21:07:40 UTC 2014
On 13/06/14 18:34, Johann Knoeferl wrote:
> -----Ursprüngliche Nachricht-----
> Von: Dnsmasq-discuss [mailto:dnsmasq-discuss-bounces at lists.thekelleys.org.uk] Im
> Auftrag von Simon Kelley
> Gesendet: Mittwoch, 11. Juni 2014 22:06
> An: dnsmasq-discuss at lists.thekelleys.org.uk
> Betreff: Re: [Dnsmasq-discuss] upstream server for "local domain" adresses
> > 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.
> >
> > The first thing to do is to set
> >
> > log-queries
> >
> > and look at the log files to see what's happening.
> >
> > Cheers,
> >
> > Simon.
> >
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> <mailto:Dnsmasq-discuss at lists.thekelleys.org.uk>
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> Hello Simon,
> You are right. Somehow I created a loop with my configuration:
> Router 1:
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded
> machine02.mydomain.lan to 192.168.10.1
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA]
> machine02.mydomain.lan from 192.168.7.13
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded
> machine02.mydomain.lan to 192.168.10.1
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA]
> machine02.mydomain.lan from 192.168.7.13
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded
> machine02.mydomain.lan to 192.168.10.1
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA]
> machine02.mydomain.lan from 192.168.7.13
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: forwarded
> machine02.mydomain.lan to 192.168.10.1
> Jun 13 18:01:16 router01 daemon.info dnsmasq[4184]: query[AAAA]
> machine02.mydomain.lan from 192.168.7.13
> ...
> Router 2:
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[A]
> router02.mydomain.lan from 192.168.10.11
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: /etc/hosts
> router02.mydomain.lan is 192.168.10.1
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA]
> machine02.mydomain.lan from 192.168.6.1
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: forwarded
> machine02.mydomain.lan to 192.168.6.1
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA]
> machine02.mydomain.lan from 192.168.6.1
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: forwarded
> machine02.mydomain.lan to 192.168.6.1
> Jun 13 18:02:06 router02 daemon.info dnsmasq[12730]: query[AAAA]
> machine02.mydomain.lan from 192.168.6.1
> ...
> In this example I asked for a DNS entry which can be found in router01 hosts file.
> Nevertheless the query goes back to router02 which can't handle it and so
> router01 is aked again.
> Both router are configuried equal - except for the ip of each other.
> My thought was that the priority is hasts file and only if an entry can not be
> found a server entry is used.
> But it seems that the server has higer priority. Is there a way to change this?
> But the more I think about it, it seems not to be clever at all, what I have done.
> 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.
> What would be the best way for servering two subnets with the same local dns
> entries?
> Using complete hosts file on both sides?
> Using only one host file as master and to query it from both sides?
> Thanks for any suggestions!
>
>
The query which is looping is for the IPv6 address. I guess you don't
have IPv6 addresses in the hosts file.
Adding something like
address=/mydomain.lan/::1
will stop the looping, but might mess things up because all IPv6 queries
will get a ::1 answer (== 127.0.0.1) in IPv4-land)
Cheers,
Simon.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list