]> git.ipfire.org Git - thirdparty/unbound.git/commit
Serve stale (#159)
authorgthess <george@nlnetlabs.nl>
Wed, 5 Feb 2020 13:20:27 +0000 (14:20 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2020 13:20:27 +0000 (14:20 +0100)
commitf7fe95ad7bae690781f9b78ca252a44fc072ca33
tree576a4d9f06aca269209c574e273a5c6d38c27345
parent5980d9c3891d0721bd1f648c78d9760e507da07d
Serve stale (#159)

- Added serve-stale functionality as described in
  draft-ietf-dnsop-serve-stale-10. `serve-expired-*` options can be used
  to configure the behavior.
- Updated cachedb to honor `serve-expired-ttl`; Fixes #107.
- Renamed statistic `num.zero_ttl` to `num.expired` as expired replies
  come with a configurable TTL value (`serve-expired-reply-ttl`).
- Fixed stats when replying with cached, cname-aliased records.
- Added missing default values for redis cachedb backend.
38 files changed:
cachedb/cachedb.c
daemon/remote.c
daemon/stats.c
daemon/worker.c
doc/Changelog
doc/example.conf.in
doc/unbound-control.8.in
doc/unbound.conf.5.in
edns-subnet/subnetmod.c
libunbound/libworker.c
libunbound/unbound.h
services/cache/dns.c
services/cache/dns.h
services/mesh.c
services/mesh.h
smallapp/unbound-control.c
testcode/replay.h
testdata/serve_expired.rpl [new file with mode: 0644]
testdata/serve_expired_client_timeout.rpl [new file with mode: 0644]
testdata/serve_expired_reply_ttl.rpl [new file with mode: 0644]
testdata/serve_expired_servfail.rpl [new file with mode: 0644]
testdata/serve_expired_ttl.rpl [new file with mode: 0644]
testdata/serve_expired_ttl_client_timeout.rpl [new file with mode: 0644]
testdata/serve_expired_zerottl.rpl [new file with mode: 0644]
util/config_file.c
util/config_file.h
util/configlexer.c
util/configlexer.lex
util/configparser.c
util/configparser.h
util/configparser.y
util/data/msgencode.c
util/data/msgparse.h
util/data/msgreply.c
util/data/packed_rrset.c
util/fptr_wlist.c
util/fptr_wlist.h
util/module.h