]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix invalid '\5domain' label, should be \6domain
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 30 Jul 2019 16:33:03 +0000 (18:33 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 7 Aug 2019 09:04:57 +0000 (11:04 +0200)
Reported by @ph1 (thanks!).

pdns/dnsdistdist/docs/reference/kvs.rst

index d88cc98db0ab808867668089e759dd03fd9fca03..bb79f63e40f251d138bce14c5520c656c85ef4af 100644 (file)
@@ -26,8 +26,8 @@ For example, to do a suffix-based lookup into a LMDB KVS database, the following
 For a query whose qname is "sub.domain.powerdns.com.", and for which only the "\8powerdns\3com\0" key exists in the database,
 this would result in the following lookups:
 
- * \3sub\5domain\8powerdns\3com\0
- * \5domain\8powerdns\3com\0
+ * \3sub\6domain\8powerdns\3com\0
+ * \6domain\8powerdns\3com\0
  * \8powerdns\3com\0
 
 Then a match is found for the last key, and the corresponding value is stored into the 'kvs-suffix-result' tag. This tag can now be used in subsequent rules to take an action based on the result of the lookup.
@@ -81,8 +81,8 @@ If the value found in the LMDB database for the key '\8powerdns\3com\0' was 'thi
   Return a new KeyValueLookupKey object that, when passed to :func:`KeyValueStoreLookupAction`, will return a vector of keys based on the labels of the qname in DNS wire format.
   For example if the qname is sub.domain.powerdns.com. the following keys will be returned:
 
-   * \3sub\5domain\8powerdns\3com\0
-   * \5domain\8powerdns\3com\0
+   * \3sub\6domain\8powerdns\3com\0
+   * \6domain\8powerdns\3com\0
    * \8powerdns\3com\0
    * \3com\0
    * \0