summaryrefslogtreecommitdiffstats
path: root/doc/config-answer-reordering.rst
blob: 624e7d4e9548fc7cd6e78fe49ad75cf8f0b43989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.. SPDX-License-Identifier: GPL-3.0-or-later

Answer reordering
=================
Certain clients are "dumb" and always connect to first IP address or name found
in a DNS answer received from resolver instead of picking randomly.
As a workaround for such broken clients it is possible to randomize
order of records in DNS answers sent by resolver:

.. function:: reorder_RR([true | false])

   :param boolean new_value: ``true`` to enable or ``false`` to disable randomization *(optional)*
   :return: The (new) value of the option

   If set, resolver will vary the order of resource records within RR sets.
   It is enabled by default since 5.3.0.