]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Simplify the sample rule to disable caching for NOTIFY queries
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 23 Jan 2023 14:13:50 +0000 (15:13 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 23 Jan 2023 14:13:50 +0000 (15:13 +0100)
pdns/dnsdistdist/docs/advanced/axfr.rst

index a2ebe3910350c339269d47d211b8fd75c96e1d54..0be88d31f573a3a1219ab9e0da23b000c03257f9 100644 (file)
@@ -65,5 +65,5 @@ check to :program:`dnsdist`'s side::
 
   .. code-block:: lua
 
-    -- this rule will disable caching for NOTIFY responses
-    addAction(AndRule({OpcodeRule(DNSOpcode.Notify), QTypeRule(DNSQType.SOA)}), SetSkipCacheAction())
+    -- this rule will disable the caching of responses for NOTIFY queries
+    addAction(OpcodeRule(DNSOpcode.Notify), SetSkipCacheAction())