From: Spirillen <44526987+spirillen@users.noreply.github.com> Date: Wed, 7 Nov 2018 01:14:11 +0000 (+0100) Subject: Update rpz.rst X-Git-Tag: auth-4.2.0-alpha1~53^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7943b54f89e44d4a893999bc6d54ae5004e4e8c;p=thirdparty%2Fpdns.git Update rpz.rst Trying again as miss Travis didn't like i was home early .... This time I've moved the new options into the codeblock hoing thiscan satisfy Miss Travis --- diff --git a/pdns/recursordist/docs/lua-config/rpz.rst b/pdns/recursordist/docs/lua-config/rpz.rst index c2d15a4586..80cda4bdec 100644 --- a/pdns/recursordist/docs/lua-config/rpz.rst +++ b/pdns/recursordist/docs/lua-config/rpz.rst @@ -28,6 +28,10 @@ To slave from a master and start IXFR to get updates, use for example: In this example, 'policy.rpz' denotes the name of the zone to query for. +As of .. versionchanged:: 4.2.0: you can add IP blocks into the rpzMaster as: + + rpzMaster({"192.0.2.4","192.0.2.5"}, "policy.rpz", {defpol=Policy.Drop}) + .. function:: rpzFile(filename, settings) Load an RPZ from disk. @@ -43,7 +47,7 @@ In this example, 'policy.rpz' denotes the name of the zone to query for. Load an RPZ from AXFR and keep retrieving with IXFR. - :param str address: The IP address to transfer the RPZ from. Also accepts a list of addresses since 4.2.0 in which case they will be tried one after another in the submitted order until a response is obtained. List of IP shall be wrapped in ``{}`` and have ``""`` around each IP block. IP list format ex: ``{"3.3.3.3","4.4.4.4"}`` + :param str address: The IP address to transfer the RPZ from. Also accepts a list of addresses since 4.2.0 in which case they will be tried one after another in the submitted order until a response is obtained. :param str name: The name of this RPZ :param {} settings: A table to settings, see below