]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document how to generate a console key without dnsdist
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Apr 2024 13:15:55 +0000 (15:15 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Apr 2024 13:15:55 +0000 (15:15 +0200)
pdns/dnsdistdist/docs/guides/console.rst

index 35e65be9583acd5b1b4e34302956f1d2da62228d..68164b8d5a8f5904e9c4b6757c7ac50a0dae5d68 100644 (file)
@@ -20,6 +20,10 @@ Once you have a console-enabled dnsdist, the first step to enable encryption is
   > makeKey()
   setKey("ENCODED KEY")
 
+The key does not have a specific format, so base-64 encoding 32 random bytes works as well::
+
+  $ dd if=/dev/random bs=1 count=32 status=none | base64
+
 Then add the generated :func:`setKey` line to your dnsdist configuration file, along with a :func:`controlSocket`:
 
 .. code-block:: lua