]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: daemon, documented console
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 19 Mar 2015 13:14:27 +0000 (14:14 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 19 Mar 2015 13:14:27 +0000 (14:14 +0100)
doc/daemon.rst

index 96e00750cb47e17915508026b12a7d7a0b3b446a..130663e68722aa6c59167b0c81f9e098ab41f2bb 100644 (file)
@@ -19,3 +19,18 @@ right now.
        $ ./daemon/kresolved -a 127.0.0.1#53
 
 .. _libuv: https://github.com/libuv/libuv
+
+Interacting with the daemon
+---------------------------
+
+The daemon features a CLI interface if launched interactively, type ``help`` to see the list of available commands.
+You can load modules this way and use their properties to get information about statistics and such.
+
+.. code-block:: bash
+
+       $ kresolved
+       ...
+       [system] started in interactive mode, type 'help'
+       > load cached
+       > cached.cached_size
+       { "size": 53 }
\ No newline at end of file