]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
policy: improve example for grafting subtrees
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 13 Dec 2018 14:29:58 +0000 (15:29 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 13 Dec 2018 14:29:58 +0000 (15:29 +0100)
modules/policy/README.rst

index 90633d6bb332c4e21ae39c92f731a44fe3bd32d1..fb1db78625be1b8d5054e1a5f0212393b1ab78db 100644 (file)
@@ -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))