.. function:: rpzFile(filename, settings)
Load an RPZ from disk.
+ If multiple files are to be loaded, the zones can be distinguished by setting a ``policyName``, see below.
:param str filename: The filename to load
:param {} settings: A table to settings, see below
policyName
^^^^^^^^^^
-The name logged as 'appliedPolicy' in :doc:`protobuf <protobuf>` messages when this policy is applied.
+The name logged as ``appliedPolicy`` in :doc:`protobuf <protobuf>` messages when this policy is applied.
Defaults to ``rpzFile`` for RPZs loaded by :func:`rpzFile` or the name of the zone for RPZs loaded by :func:`rpzPrimary`.
tags
Dumps the content of the RPZ zone named *ZONE NAME* to the *FILENAME*
mentioned. This file should not exist already, PowerDNS will refuse to
overwrite it otherwise. While dumping, the recursor will not answer
- questions.
+ questions. For details on how RPZ are named see
+ `<https://docs.powerdns.com/recursor/lua-config/rpz.html#policyname>`__.
dump-saved-parent-ns-sets *FILE NAME*
Dump the entries of the map containing saved parent NS sets
get *STATISTIC* [*STATISTIC*]...
Retrieve a statistic. For items that can be queried, see
- :doc:`../metrics`
+ `<https://docs.powerdns.com/recursor/metrics.html>`__.
get-all
Retrieve all known statistics.
See also
--------
:manpage:`pdns_recursor(1)`
+`<https://docs.powerdns.com/recursor>`__