From: Petr Špaček Date: Thu, 13 Dec 2018 14:29:58 +0000 (+0100) Subject: policy: improve example for grafting subtrees X-Git-Tag: v3.2.0~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9ff1bf7e2129037afc47f15e416fcf102799624;p=thirdparty%2Fknot-resolver.git policy: improve example for grafting subtrees --- diff --git a/modules/policy/README.rst b/modules/policy/README.rst index 90633d6bb..fb1db7862 100644 --- a/modules/policy/README.rst +++ b/modules/policy/README.rst @@ -171,9 +171,9 @@ For example, if you add an alternative top-level domain while using the ICANN ro .. code-block:: lua - :caption: Example configuration + :caption: Example configuration: graft DNS sub-trees ``faketldtest``, ``sld.example``, and ``internal.example.com`` into existing namespace - extraTrees = policy.todnames({'libre', 'null'}) + extraTrees = policy.todnames({'faketldtest', 'sld.example', 'internal.example.com'}) -- Beware: the rule order is important, as STUB is not a chain action. policy.add(policy.suffix(policy.FLAGS({'NO_CACHE'}), extraTrees)) policy.add(policy.suffix(policy.STUB({'2001:db8::1'}), extraTrees))