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 <cattyho...@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@lists.thekelleys.org.uk > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss