Commit 02718176 authored by Grigorii Demidov's avatar Grigorii Demidov
Browse files

docs: some additions

parent 117a6a8d
......@@ -83,6 +83,7 @@ You can use next template variables:
- **NO_MINIMIZE** - 'true' of 'false', enables or disables query minimization respectively.
- **WORKING_DIR** - working directory, it is a value of **SOCKET_WRAPPER_DIR**
environment variable.
- **TRUST_ANCHOR** - value of **trust-anchor** config key, see `scenario guide`_
d) **Setting up your environment**
......@@ -140,13 +141,15 @@ runs tests for Knot DNS Resolver daemon.
configuration template example
::
net.listen('{{SELF_ADDR}}',53)
net = { '{{SELF_ADDR}}' }
modules = {'stats', 'policy', 'hints'}
cache.size = 1*MB
modules = {'stats', 'block', 'hints'}
hints.root({['k.root-servers.net'] = '{{ROOT_ADDR}}'})
option('NO_MINIMIZE', {{NO_MINIMIZE}})
option('ALLOW_LOCAL', true)
trust_anchors.add('{{TRUST_ANCHOR}}')
verbose(true)
-- Self-checks on globals
assert(help() ~= nil)
assert(worker.id ~= nil)
......@@ -163,7 +166,7 @@ configuration template example
ev = event.recurrent(1 * sec, function (ev) return 1 end)
event.cancel(ev)
ev = event.after(0, function (ev) return 1 end)
Below is a example of script, which tests Power DNS Recursor
.. code-block:: bash
......@@ -223,4 +226,4 @@ configuration template example, shown only changed lines of original recursor.co
.. _`Knot DNS Resolver`: https://gitlab.labs.nic.cz/knot/resolver/blob/master/README.md
.. _`PowerDNS Recursor`: https://doc.powerdns.com/md/recursor/
.. _here: https://git.samba.org/?p=socket_wrapper.git;a=blob;f=doc/socket_wrapper.1.txt;hb=HEAD
.. _`scenario guide` : https://gitlab.labs.nic.cz/knot/deckard/blob/master/SCENARIO_GUIDE.rst
\ No newline at end of file
.. _`scenario guide` : https://gitlab.labs.nic.cz/knot/deckard/blob/master/SCENARIO_GUIDE.rst
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment