Yorgos Thessalonikefs
bc61034f60
code review: use proper roundrobin index
...
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2025-09-17 12:19:20 +02:00
Yorgos Thessalonikefs
73e408f1d0
A few changes for TTL processing:
...
- Cached messages that reach 0 TTL are considered expired. This prevents
Unbound itself from issuing replies with TTL 0 and possibly causing a
thundering herd at the last second. Upstream replies of TTL 0 still
get the usual pass-through but they are not considered for caching
from Unbound or any of its caching modules.
- 'serve-expired-reply-ttl' is changed and is now capped by the original
TTL value of the record to try and make some sense when replying
with expired records.
- TTL decoding was updated to adhere to RFC8767 section 4 where a set
high-order bit means the value is positive instead of 0.
2025-09-15 10:03:35 +02:00
Yorgos Thessalonikefs
d521135f66
Merge branch 'master' into features/no-ttl-zero-cacherep
2025-09-12 15:24:06 +02:00
Jose Luis Duran
41c55ffac1
Fix typos ( #1299 )
2025-07-02 10:50:49 +02:00
W.C.A. Wijngaards
a8aa1dbbe1
- Fix conditional expressions with parentheses for bitwise and.
2025-06-11 16:42:43 +02:00
W.C.A. Wijngaards
50fcf71f04
- ttl-zero-cacherep, Responses in the last second of their cache TTL,
...
get an extra second. That makes the TTL not 0, since they are from
cache and can be cached by the client.
2024-11-11 15:43:10 +01:00
Yorgos Thessalonikefs
b7c61d7cc2
- Fix CVE-2024-8508, unbounded name compression could lead to denial of
...
service.
2024-10-03 17:41:20 +02:00
W.C.A. Wijngaards
ccbe31c21f
- Fix trim of EDE text from large udp responses from spinning cpu.
2024-02-22 16:22:31 +01:00
W.C.A. Wijngaards
39df4f0923
- disable-edns-do, queriers receive no EDNS in response if the
...
disable-edns-do option is enabled and they set the DO flag. And unit test
for that.
2023-10-04 13:54:05 +02:00
George Thessalonikefs
4ccb613396
Merge branch 'master' into features/downstream-cookies
2023-08-05 20:37:48 +02:00
George Thessalonikefs
b6e2f4dbf8
- For #762 : Formatting.
2023-08-04 19:03:23 +02:00
George Thessalonikefs
8aec671860
- More braces and formatting for Fix for EDNS EDE size calculation to
...
avoid future bugs.
2023-08-01 15:15:33 +02:00
W.C.A. Wijngaards
990b12bc8e
- Fix for EDNS EDE size calculation.
2023-08-01 15:08:50 +02:00
George Thessalonikefs
08e11284fb
- For #911 : Try to trim EXTRA-TEXT (and LDNS_EDE_OTHER options
...
altogether) before giving up on attaching EDE options.
2023-08-01 09:55:28 +02:00
Natalie Reece
67e52ea9c5
Exclude EDE before other EDNS options when there isn't enough space
2023-07-11 17:01:26 -06:00
Willem Toorop
71f23ef354
extended_error_encode() for extended errors
2022-09-28 09:57:56 +02:00
TCY16
8205c87a96
complete renaming of the modules edns list
2021-11-08 11:50:29 +01:00
tcarpay
fa73142b79
Apply suggestions from code review
...
Co-authored-by: Willem Toorop <willem@nlnetlabs.nl>
2021-11-08 11:02:54 +01:00
Tom Carpay
89d7476539
split edns_data.opt_list in opt_list_in and opt_list_out
...
opt_list_in for parsed (incoming) edns options, and
opt_list_out for outgoing (to be encoded) edns options
2021-11-01 12:48:40 +00:00
George Thessalonikefs
f5b7169729
Merge branch 'orig_ttl' of https://github.com/rijswijk/unbound into rijswijk-orig_ttl
2021-01-25 17:39:24 +01:00
Roland van Rijswijk-Deij
c4c849d878
Rebase on master
2021-01-22 16:44:56 +00:00
Willem Toorop
48ecf95108
Merge branch 'master' into features/padding
2021-01-22 10:29:50 +01:00
W.C.A. Wijngaards
4990dae87d
- Fix that minimal-responses does not remove addresses from a priming
...
query response.
2020-10-22 09:26:27 +02:00
Ubuntu
506dad946b
Ensure packet_rrset_data is always initialised to zero upon allocation
2020-07-29 15:26:42 +00:00
Ubuntu
ec6fde611c
Cleaned up adjustment in message encoding, fixes spurious negative TTLs
2020-07-15 15:36:06 +00:00
Ubuntu
b5b79e3a36
Add feature to serve original TTLs rather than decrementing ones
2020-07-15 15:15:45 +00:00
Willem Toorop
2c8a91c2f9
pad-queries default yes
2020-04-14 08:52:51 +02:00
Willem Toorop
4f78b37c61
Down- and upstream padding a la RFC7830 & RFC8467
2020-04-02 18:34:03 +02:00
gthess
f7fe95ad7b
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.
2020-02-05 14:20:27 +01:00
W.C.A. Wijngaards
80c2c69fa7
- Fix log_dns_msg to log irrespective of minimal responses config.
2019-08-21 17:41:29 +02:00
W.C.A. Wijngaards
368386c011
- Fix #48 : Unbound returns additional records on NODATA response,
...
if minimal-responses is enabled, also the additional for negative
responses is removed.
2019-07-12 14:34:35 +02:00
Wouter Wijngaards
7bb6358540
Better fix.
...
git-svn-id: file:///svn/unbound/trunk@4987 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-27 13:46:44 +00:00
Wouter Wijngaards
ca33c52086
- Fix windows compile for new rrset roundrobin fix.
...
git-svn-id: file:///svn/unbound/trunk@4986 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-27 13:35:29 +00:00
Wouter Wijngaards
d5922830d0
- Fix #4141 : More randomness to rrset-roundrobin.
...
git-svn-id: file:///svn/unbound/trunk@4950 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-10-25 08:26:40 +00:00
Wouter Wijngaards
898d4c8dd9
- Fix memory leak when message parse fails partway through copy.
...
- remove unused udpsize assignment in message encode.
git-svn-id: file:///svn/unbound/trunk@4904 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-09-13 12:30:44 +00:00
Wouter Wijngaards
dd0da65da9
fix for lint
...
git-svn-id: file:///svn/unbound/trunk@4197 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-05-29 14:34:28 +00:00
Wouter Wijngaards
8b2397542e
- Fix assertion for low buffer size and big edns payload when worker
...
overrides udpsize.
git-svn-id: file:///svn/unbound/trunk@4195 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-05-29 07:32:45 +00:00
Wouter Wijngaards
cae9809e11
- Response actions based on IP address from Jinmei Tatuya (Infoblox).
...
git-svn-id: file:///svn/unbound/trunk@4035 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-03-07 14:58:51 +00:00
Wouter Wijngaards
9d2b5ca345
- Removed patch comments from acllist.c and msgencode.c
...
git-svn-id: file:///svn/unbound/trunk@3886 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-10-18 13:20:42 +00:00
Wouter Wijngaards
503df095b2
- Patch that resolves CNAMEs entered in local-data conf statements that
...
point to data on the internet, from Jinmei Tatuya (Infoblox).
git-svn-id: file:///svn/unbound/trunk@3885 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-10-18 13:18:20 +00:00
Wouter Wijngaards
40dd2acfd9
- generic edns option parse and store code.
...
git-svn-id: file:///svn/unbound/trunk@3740 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-05-31 15:08:05 +00:00
Wouter Wijngaards
8a6817d1c9
- please afl-gcc (llvm) for uninitialised variable warning.
...
git-svn-id: file:///svn/unbound/trunk@3461 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-07-30 08:51:51 +00:00
Wouter Wijngaards
b2bdce46be
- rename ldns subdirectory to sldns to avoid name collision.
...
git-svn-id: file:///svn/unbound/trunk@3380 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-26 10:21:38 +00:00
Wouter Wijngaards
2b90f38a70
And fix #551 REGENT to COPYRIGHT HOLDER in license in file headings.
...
git-svn-id: file:///svn/unbound/trunk@3079 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 13:28:39 +00:00
Wouter Wijngaards
d3cbd76546
- Fix sldns to use sldns_ prefix for all ldns_ variables.
...
git-svn-id: file:///svn/unbound/trunk@3022 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-12-03 09:11:16 +00:00
Wouter Wijngaards
29e96e86c9
- separate ldns into core ldns inside ldns/ subdirectory. No more
...
--with-ldns is needed and unbound does not rely on libldns.
git-svn-id: file:///svn/unbound/trunk@2998 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-10-31 15:09:26 +00:00
Wouter Wijngaards
f1fd2b53eb
- Fix for 2038, with time_t instead of uint32_t.
...
git-svn-id: file:///svn/unbound/trunk@2939 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-08-20 12:23:42 +00:00
Wouter Wijngaards
4a3efd5ea9
- Fix round-robin doesn't work with some Windows clients (from Ilya Bakulin).
...
git-svn-id: file:///svn/unbound/trunk@2899 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-05-15 11:56:22 +00:00
Wouter Wijngaards
855434b761
- code improve for minimal responses, small speed increase.
...
git-svn-id: file:///svn/unbound/trunk@2881 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-04-10 14:29:35 +00:00
Wouter Wijngaards
cf147df593
- Applied patch from Daisuke HIGASHI for rrset-roundrobin and
...
minimal-responses features.
git-svn-id: file:///svn/unbound/trunk@2658 be551aaa-1e26-0410-a405-d3ace91eadb9
2012-04-10 09:16:39 +00:00