Hallo Vladimir,
thank you for the explanation. I don't really need round robin, if I
know in case of failures of one DNS the Knot-Resolver just picks
another, that is everything I need. I thought round robin helps, but I
just need failure tolerance which is provided. Sorry for a kind of wrong
question.
And thank you also for the interesting blog entry, as I say I don't
really need round robin at the moment, but knowing lua can be used maybe
help for future issues ;-).
Regards
Thomas
>> Vladimír Čunát <vladimir.cunat(a)nic.cz>
02/20/19 1:40 PM >>>
On 2/20/19 1:32 PM, Thomas Belián wrote:
policy.add(policy.suffix(policy.STUB({'$our
ip'}), extraTrees))
Can I put more than one IP at this line to forward the queries? We
have
2 authorative servers, so I want ask both of them
round robin like.
Up to four addresses are supported inside a STUB "command", but the
semantics isn't really round-robin - kresd prefers servers that answer
faster, and there's not much "randomization" so far (I have such
improvements in plans), so it may well end up using only a single one,
as long as it answers fast and without errors.
Is there a way to get my desired behavior?
Config is free-form lua, so you may e.g. use techniques like in [1],
except with STUB instead of TLS_FORWARD.
[1]
https://www.ctrl.blog/entry/kresd-random-dns-forwarding
--Vladimir