daemon.rst 1000 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Knot DNS Resolver daemon 
========================

Requirements
------------

* libuv_ 1.0+ (a multi-platform support library with a focus on asynchronous I/O)

Starting the daemon
-------------------

There is a separate resolver library in the `lib` directory, and a minimalistic daemon in
the `daemon` directory. The daemon accepts a few CLI parameters, and there's no support for configuration
right now.

.. code-block:: bash

	$ ./daemon/kresolved -h
	$ ./daemon/kresolved -a 127.0.0.1#53

.. _libuv: https://github.com/libuv/libuv
22 23 24 25 26 27 28 29 30

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

31
	$ kresolved /var/run/knot-resolver
32
	...
33
	[system] started in interactive mode, type 'help()'
Marek Vavruša's avatar
Marek Vavruša committed
34
	> modules.load('cachectl')
35
	> return cachectl.size()
36
	{ "size": 53 }