]> granicus.if.org Git - pdns/commitdiff
Minor fixes to dnsdist docs
authorHåkan Lindqvist <h@qw.se>
Thu, 20 Jun 2019 20:57:45 +0000 (22:57 +0200)
committerHåkan Lindqvist <h@qw.se>
Sun, 23 Jun 2019 21:52:07 +0000 (23:52 +0200)
DNSQType was introduced in 1.4.0, not 1.3.0
Typo in AXFR example (DNSQTypeIXFR)

pdns/dnsdistdist/docs/advanced/axfr.rst
pdns/dnsdistdist/docs/reference/constants.rst

index dc883b85ce640254a59e0d57349cae6470c142b8..4d9372a81a2f900beeebd76e4d90610f4cd960c3 100644 (file)
@@ -18,7 +18,7 @@ The first issue can be solved by routing SOA, AXFR and IXFR requests explicitly
 The second one might require allowing AXFR/IXFR from the :program:`dnsdist` source address
 and moving the source address check to :program:`dnsdist`'s side::
 
-  addAction(AndRule({OrRule({QTypeRule(DNSQType.AXFR), QTypeRule(DNSQTypeIXFR)}), NotRule(makeRule("192.168.1.0/24"))}), RCodeAction(DNSRCode.REFUSED))
+  addAction(AndRule({OrRule({QTypeRule(DNSQType.AXFR), QTypeRule(DNSQType.IXFR)}), NotRule(makeRule("192.168.1.0/24"))}), RCodeAction(DNSRCode.REFUSED))
 
 .. versionchanged:: 1.4.0
   Before 1.4.0, the QTypes were in the ``dnsdist`` namespace. Use ``dnsdist.AXFR`` and ``dnsdist.IXFR`` in these versions.
@@ -33,4 +33,4 @@ check to :program:`dnsdist`'s side::
   addAction(AndRule({OpcodeRule(DNSOpcode.Notify), NotRule(makeRule("192.168.1.0/24"))}), RCodeAction(DNSRCode.REFUSED))
 
 .. versionchanged:: 1.4.0
-  Before 1.4.0, the RCodes were in the ``dnsdist`` namespace. Use ``dnsdist.REFUSED`` in these versions.
\ No newline at end of file
+  Before 1.4.0, the RCodes were in the ``dnsdist`` namespace. Use ``dnsdist.REFUSED`` in these versions.
index 4df9586a49b4128e2449f169a88e6bd51c4fa241..1ead1ec82e0a3235239443ece6da9dd2c9f50c9a 100644 (file)
@@ -123,7 +123,7 @@ These constants represent an Action that can be returned from :func:`LuaAction`
 DNSQType
 --------
 
-.. versionchanged:: 1.3.0
+.. versionchanged:: 1.4.0
   The prefix is changed from ``dnsdist.`` to ``DNSQType``.
 
 All named `QTypes <https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4>`__ are available as constants, prefixed with ``DNSQType.``, e.g.: