File: README.rst

package info (click to toggle)
knot-resolver 5.6.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,088 kB
  • sloc: javascript: 42,732; ansic: 34,753; python: 4,603; cpp: 2,107; sh: 1,883; makefile: 199; xml: 193
file content (23 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.. SPDX-License-Identifier: GPL-3.0-or-later

.. _mod-serve_stale:

Serve stale
===========

Demo module that allows using timed-out records in case kresd is
unable to contact upstream servers.

By default it allows stale-ness by up to one day,
after roughly four seconds trying to contact the servers.
It's quite configurable/flexible; see the beginning of the module source for details.
See also the RFC draft_ (not fully followed) and :any:`cache.ns_tout`.

Running
-------
.. code-block:: lua

    modules = { 'serve_stale < cache' }

.. _draft: https://tools.ietf.org/html/draft-ietf-dnsop-serve-stale-00