From: Remi Gacogne Date: Wed, 24 Apr 2019 13:34:43 +0000 (+0200) Subject: dnsdist: Document `setECSOverride()` X-Git-Tag: dnsdist-1.4.0-alpha2~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ced9079bcd3532e603c7de9a8b1993614a96309d;p=thirdparty%2Fpdns.git dnsdist: Document `setECSOverride()` --- 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