# General information about the project.
project = u'Knot Resolver'
-copyright = u'2014-2020 CZ.NIC labs'
+copyright = u'2014-2022 CZ.NIC labs'
with open('../meson.build') as f:
for line in f:
match = re.match(r"\s*version\s*:\s*'([^']+)'.*", line)
('index', 'knot-resolver', u'Knot Resolver', u'CZ.NIC Labs',
'Knot Resolver', 'Caching DNS resolver.', 'Network services'),
]
+
+# reStructuredText that will be included at the beginning of every source file that is read.
+# This is a possible place to add substitutions that should be available in every file.
+rst_prolog = """
+.. |yaml| replace:: YAML
+.. |lua| replace:: Lua
+"""
.. note::
- When copy&pasting examples from this manual please pay close
- attention to brackets and also line ordering - order of lines matters.
+ When copy&pasting examples from this manual please pay close
+ attention to brackets and also line ordering - order of lines matters.
- The configuration language is in fact Lua script, so you can use full power
- of this programming language. See article
- `Learn Lua in 15 minutes`_ for a syntax overview.
+ The configuration language is in fact Lua script, so you can use full power
+ of this programming language. See article
+ `Learn Lua in 15 minutes`_ for a syntax overview.
Easiest way to configure Knot Resolver is to paste your configuration into
configuration file ``/etc/knot-resolver/kresd.conf``.
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
network:
- listen:
- - interface: ['192.0.2.1', '2001:db8::1'] # unencrypted DNS on port 53 is default
- - interface: 'eth0'
- port: 853
- kind: 'dot'
+ listen:
+ - interface: ['192.0.2.1', '2001:db8::1'] # unencrypted DNS on port 53 is default
+ - interface: 'eth0'
+ port: 853
+ kind: 'dot'
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
Network interfaces to listen on and supported protocols are configured using :func:`net.listen()` function.
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua
.. tabs::
- .. group-tab:: yaml
+ .. group-tab:: |yaml|
.. code-block:: yaml
- .. group-tab:: lua legacy
+ .. group-tab:: |lua|
.. code-block:: lua