[Dnsmasq-discuss] dnsmasq server support rotation/randomisation
Buck Horn
buckhorn at weibsvolk.org
Sat Nov 23 10:34:42 UTC 2024
On 23.11.24 10:51, roboticwars at riseup.net wrote:
> I want dnsmasq to use all `server=`s rotate or randomly, to distribute
> many clients requests instead of hitting one server continuously.
> So I asked AI about it and it gave me this.
> Is this true that “@0” is a thing? It does not mention in current man
> pages?
>
> What do you think?
I think 'AI's are just sophisticated word prediction machines - they
will make up answers when asked for specific technical advice.
Instead, have a read of
https://dnsmasq.org/docs/dnsmasq-man.html
That says:
> The optional string after the @ character tells dnsmasq how to set
the source of the queries to this nameserver.
I am not aware of an option that would rotate DNS requests between
different upstreams.
Out of a set of upstream servers, dnsmasq will prefer the most
responsive one, regularly reassessing its upstreams.
This means dnsmasq may switch between different upstreams from time to
time, i.e. would not necessarily stick with one server.
Regards,
Buck
More information about the Dnsmasq-discuss
mailing list