]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Dcocument the new 'clearConsoleHistory()' command 9379/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Aug 2020 08:47:25 +0000 (10:47 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Aug 2020 08:47:25 +0000 (10:47 +0200)
pdns/dnsdistdist/docs/reference/config.rst

index 3dee111fa4cbbc767aa2fcb954775ee50d306332..ab594888fb94d37ccf8812544ccabf7c57f899d6 100644 (file)
@@ -232,6 +232,14 @@ Control Socket, Console and Webserver
 
   :param str netmask: A CIDR netmask, e.g. ``"192.0.2.0/24"``. Without a subnetmask, only the specific address is allowed.
 
+.. function:: clearConsoleHistory()
+
+  .. versionadded:: 1.6.0
+
+  Clear the internal (in-memory) buffers of console commands. These buffers are used to provide the :func:`delta` command and
+  console completion and history, and can end up being quite large when a lot of commands are issued via the console, consuming
+  a noticeable amount of memory.
+
 .. function:: controlSocket(address)
 
   Bind to ``addr`` and listen for a connection for the console. Since 1.3.0 only connections from local users are allowed
@@ -241,6 +249,10 @@ Control Socket, Console and Webserver
 
   :param str address: An IP address with optional port. By default, the port is 5199.
 
+.. function:: delta()
+
+  Issuing `delta` on the console will print the changes to the configuration that have been made since startup.
+
 .. function:: inClientStartup()
 
   Returns true while the console client is parsing the configuration.