<div dir="auto">thanks Simon</div><div dir="auto"><br></div><div dir="auto">another related question</div><div dir="auto"><br></div><div dir="auto">1) </div><div dir="auto"><br></div><div dir="auto">if i have 6000 domains, do i write 6000 lines of local=/domain/<a href="http://8.8.8.8">8.8.8.8</a>, or do i write</div><div dir="auto"><br></div><div dir="auto">local=/domain1/2/3/.../<a href="http://8.8.8.8">8.8.8.8</a></div><div dir="auto"><br></div><div dir="auto">which one is faster for dnsmasq to locate and assign the nameserver? </div><div dir="auto"><br></div><div dir="auto">2) </div><div dir="auto"><br></div><div dir="auto">btw, how much time does it take for dnsmasq ( 2.86 here) to locate one domain from 100,000 domains in conf-file in the form of local= or ipset=? </div><div dir="auto"><br></div><div dir="auto">3) </div><div dir="auto"><br></div><div dir="auto">the search speed for local= and ipset= are the same? i mean do they use the same algo?</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 7, 2022 at 07:46 Simon Kelley <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">repeating a domain in --server (or --local) is sensible and dnsmasq will<br>
use some or all of the servers for an individual query, depending on<br>
unknowable stuff.<br>
<br>
You would imagine that<br>
<br>
ipset=/<a href="http://google.com/one" rel="noreferrer" target="_blank">google.com/one</a><br>
ipset=/<a href="http://google.com/two" rel="noreferrer" target="_blank">google.com/two</a><br>
<br>
would be equivalent to the documented<br>
<br>
ipset=/<a href="http://google.com/one,two" rel="noreferrer" target="_blank">google.com/one,two</a><br>
<br>
but clearly it isn't. The advice is to stick to the documented way of<br>
expressing those semantics, I guess.<br>
<br>
<br>
Cheers,<br>
Simon.<br>
<br>
<br>
<br>
On 04/01/2022 07:55, Justin wrote:<br>
> I just did some test. looks like the '<a href="http://google.com" rel="noreferrer" target="_blank">google.com</a>' will be send to both<br>
> 1.1.1.1 and 8.8.8.8. but the all the resolved ip address will only be<br>
> added to ipset 'one'<br>
> <br>
> On Tue, Jan 4, 2022 at 2:20 PM Justin <<a href="mailto:cattyhouse@gmail.com" target="_blank">cattyhouse@gmail.com</a>> wrote:<br>
>><br>
>> Hello<br>
>> i have settings in the order like this in dnsmasq.conf<br>
>><br>
>> local=/<a href="http://google.com/1.1.1.1" rel="noreferrer" target="_blank">google.com/1.1.1.1</a><br>
>> local=/<a href="http://google.com/8.8.8.8" rel="noreferrer" target="_blank">google.com/8.8.8.8</a><br>
>> ipset=/<a href="http://google.com/one" rel="noreferrer" target="_blank">google.com/one</a><br>
>> ipset=/<a href="http://google.com/two" rel="noreferrer" target="_blank">google.com/two</a><br>
>><br>
>> what is the behavior of dnsmasq? which nameserver will be uses to<br>
>> resolve <a href="http://google.com" rel="noreferrer" target="_blank">google.com</a> and which set name will the resolved ip of<br>
>> <a href="http://google.com" rel="noreferrer" target="_blank">google.com</a> be added to?<br>
>><br>
>> thanks.<br>
> <br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
> <br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>Regards<br>Justin He</div>