From ced9079bcd3532e603c7de9a8b1993614a96309d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 24 Apr 2019 15:34:43 +0200 Subject: [PATCH] dnsdist: Document `setECSOverride()` --- pdns/dnsdistdist/docs/reference/config.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index c6992f77c6..b4f6cc919c 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -309,6 +309,12 @@ Access Control Lists EDNS Client Subnet ~~~~~~~~~~~~~~~~~~ +.. function:: setECSOverride(bool) + + When ``useClientSubnet`` in :func:`newServer` is set and dnsdist adds an EDNS Client Subnet Client option to the query, override an existing option already present in the query, if any + + :param bool: Whether to override an existing EDNS Client Subnet option present in the query. Defaults to false + .. function:: setECSSourcePrefixV4(prefix) When ``useClientSubnet`` in :func:`newServer` is set and dnsdist adds an EDNS Client Subnet Client option to the query, truncate the requestors IPv4 address to ``prefix`` bits -- 2.47.2