From de1d517c38ad207cc8b82ef98b54b4e2bd304965 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 19 Dec 2017 07:22:11 +0100 Subject: [PATCH] dnsdist docs: Fix several warnings --- pdns/dnsdistdist/docs/advanced/multiple-instance.rst | 4 ++-- pdns/dnsdistdist/docs/reference/config.rst | 8 -------- pdns/dnsdistdist/docs/reference/ebpf.rst | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pdns/dnsdistdist/docs/advanced/multiple-instance.rst b/pdns/dnsdistdist/docs/advanced/multiple-instance.rst index 7e870e12a..5c0ff19ae 100644 --- a/pdns/dnsdistdist/docs/advanced/multiple-instance.rst +++ b/pdns/dnsdistdist/docs/advanced/multiple-instance.rst @@ -1,13 +1,13 @@ 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``. diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index e9d28238e..02e0a7e0a 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -640,14 +640,6 @@ Dynamic Blocks 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 diff --git a/pdns/dnsdistdist/docs/reference/ebpf.rst b/pdns/dnsdistdist/docs/reference/ebpf.rst index 2c34c4d6d..e48a77a7a 100644 --- a/pdns/dnsdistdist/docs/reference/ebpf.rst +++ b/pdns/dnsdistdist/docs/reference/ebpf.rst @@ -8,8 +8,8 @@ These are all the functions, objects and methods related to the :doc:`../advance 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 ` + :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 -- 2.50.1