Running multiple instances
==========================
-Sometimes, it can be advantageous to run multiple instances of :prog:`dnsdist`.
+Sometimes, it can be advantageous to run multiple instances of :program:`dnsdist`.
Usecases can be:
* Multiple inbound IP addresses with different rulesets
* Taking advantage of more processes, using SO_REUSEPORT
-:prog:`dnsdist` supports loading a different configuration file with the ``--config`` command line switch.
+:program:`dnsdist` supports loading a different configuration file with the ``--config`` command line switch.
By default, ``SYSCONFDIR/dnsdist.conf`` is loaded. ``SYSCONFDIR`` is usually ``/etc`` or ``/etc/dnsdist``.
Set which action is performed when a query is blocked.
Only DNSAction.Drop (the default), DNSAction.Refused and DNSAction.Truncate are supported.
-.. function:: addBPFFilterDynBlocks(addresses, filter[, seconds])
-
- Block the set of addresses using the supplied BPF Filter, for seconds seconds (10 by default)
-
- :param addresses: A set of addresses as returned by the exceed functions.
- :param filter: and EBPF filter
- :param int seconds: Number of seconds to block for
-
.. _exceedfuncs:
Getting addresses that exceeded parameters
This is the eBPF equivalent of :func:`addDynBlocks`, blocking a set of addresses for (optionally) a number of seconds, using an eBPF dynamic filter.
The default number of seconds to block for is 10.
- :param addresses: set of Addresses as returned by an exceed function
- :param DynBPFFilter: The dynamic eBPF filter to use
+ :param addresses: set of Addresses as returned by an :ref:`exceed function <exceedfuncs>`
+ :param DynBPFFilter dynbpf: The dynamic eBPF filter to use
:param int seconds: The number of seconds this block to expire
.. function:: newBPFFilter(maxV4, maxV6, maxQNames) -> BPFFilter