[Dnsmasq-discuss] priority of local= and ipset=
Simon Kelley
simon at thekelleys.org.uk
Thu Jan 6 23:09:45 UTC 2022
repeating a domain in --server (or --local) is sensible and dnsmasq will
use some or all of the servers for an individual query, depending on
unknowable stuff.
You would imagine that
ipset=/google.com/one
ipset=/google.com/two
would be equivalent to the documented
ipset=/google.com/one,two
but clearly it isn't. The advice is to stick to the documented way of
expressing those semantics, I guess.
Cheers,
Simon.
On 04/01/2022 07:55, Justin wrote:
> I just did some test. looks like the 'google.com' will be send to both
> 1.1.1.1 and 8.8.8.8. but the all the resolved ip address will only be
> added to ipset 'one'
>
> On Tue, Jan 4, 2022 at 2:20 PM Justin <cattyhouse at gmail.com> wrote:
>>
>> Hello
>> i have settings in the order like this in dnsmasq.conf
>>
>> local=/google.com/1.1.1.1
>> local=/google.com/8.8.8.8
>> ipset=/google.com/one
>> ipset=/google.com/two
>>
>> what is the behavior of dnsmasq? which nameserver will be uses to
>> resolve google.com and which set name will the resolved ip of
>> google.com be added to?
>>
>> thanks.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list