.. function:: addCacheMissAction(DNSrule, action [, options])
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Add a Rule and Action to the existing cache miss rules.
If a string (or list of) is passed as the first parameter instead of a :class:`DNSRule`, it behaves as if the string or list of strings was passed to :func:`NetmaskGroupRule` or :func:`SuffixMatchNodeRule`.
.. function:: clearCacheMissRules()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove all current cache miss rules.
.. function:: getCacheMissAction(n) -> DNSDistRuleAction
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Returns the :class:`DNSDistRuleAction` associated with cache miss rule ``n``.
.. function:: getCacheMissRule(selector) -> DNSDistRuleAction
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Return the cache miss rule corresponding to the selector, if any.
The selector can be the position of the rule in the list, as an integer,
.. function:: mvCacheMissRule(from, to)
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Move cache miss rule ``from`` to a position where it is in front of ``to``.
``to`` can be one larger than the largest rule, in which case the rule will be moved to the last position.
.. function:: mvCacheMissRuleToTop()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
This function moves the last cache miss rule to the first position.
.. function:: setCacheMissRules(rules)
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Replace the current cache miss rules with the supplied list of pairs of DNS Rules and DNS Actions (see :func:`newRuleAction`)
.. function:: showCacheMissRules([options])
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Show all defined cache miss rules for queries, optionally displaying their UUIDs.
.. function:: rmCacheMissRule(id)
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove rule ``id``.
.. function:: clearResponseRules()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove all current response rules.
.. function:: clearCacheHitResponseRules()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove all current cache-hit response rules.
.. function:: clearCacheInsertedResponseRules()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove all current cache-inserted response rules.
.. function:: clearSelfAnsweredResponseRules()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Remove all current self-answered response rules.
.. function:: addXFRResponseAction(DNSRule, action [, options])
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Add a Rule and ResponseAction for zone transfers (XFR) to the existing rules.
If a string (or list of) is passed as the first parameter instead of a :class:`DNSRule`, it behaves as if the string or list of strings was passed to :func:`NetmaskGroupRule` or :func:`SuffixMatchNodeRule`.
.. function:: mvXFRResponseRule(from, to)
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Move XFR response rule ``from`` to a position where it is in front of ``to``.
``to`` can be one larger than the largest rule, in which case the rule will be moved to the last position.
.. function:: mvXFRResponseRuleToTop()
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
This function moves the last XFR response rule to the first position.
.. function:: rmXFRResponseRule(id)
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
:param int id: The position of the rule to remove if ``id`` is numerical, its UUID or name otherwise
.. function:: showXFRResponseRules([options])
- .. versionadded:: 1.10
+ .. versionadded:: 2.0.0
Show all defined XFR response rules, optionally displaying their UUIDs.