W.C.A. Wijngaards
392c1f0f54
- Fix #596 : unset the RA bit when a query is blocked by an unbound
...
RPZ nxdomain reply. The option rpz-signal-nxdomain-ra allows to
signal that a domain is externally blocked to clients when it
is blocked with NXDOMAIN by unsetting RA.
2022-01-04 13:40:07 +01:00
W.C.A. Wijngaards
83c712ca60
- Fix to pick up other class local zone information before unlock.
2021-12-13 10:00:53 +01:00
George Thessalonikefs
2c1a5203a5
- Allow local-data for classes other than IN to inherit a configured
...
local-zone's type if possible, instead of defaulting to type
transparent as per the implicit rule.
2021-12-10 17:35:36 +01:00
Florian Obser
ef076c0e15
Fix -Wshadow
2021-12-03 18:30:08 +01:00
Florian Obser
56cf526c68
Fix -Wmissing-prototypes by declaring functions static.
2021-12-03 18:29:04 +01:00
George Thessalonikefs
3dbda3aac3
- Fix #454 : listen_dnsport.c:825: error: ‘IPV6_TCLASS’ undeclared.
2021-12-01 04:26:36 +01:00
Wouter Wijngaards
9645228f03
Merge pull request #570 from rex4539/typos
...
Fix typos
2021-11-29 11:39:48 +01:00
tcarpay
c47e98a659
Merge pull request #563 from NLnetLabs/bugfix/general-edns-options3
...
Better positioning of general EDNS option handling: revisited V2
2021-11-15 15:14:51 +01:00
Dimitris Apostolou
c21d6af617
Fix typos
2021-11-13 16:56:15 +02:00
TCY16
8205c87a96
complete renaming of the modules edns list
2021-11-08 11:50:29 +01:00
W.C.A. Wijngaards
738c7db9ab
- Fix to remove unused code from rpz resolve client and action
...
function.
2021-11-05 12:13:38 +01:00
W.C.A. Wijngaards
0006c08f15
- Fix analyzer review failure in rpz action override code to not
...
crash on unlocking the local zone lock.
2021-11-05 12:02:50 +01:00
W.C.A. Wijngaards
1a94a68fc2
- Fix #552 : Unbound assumes index.html exists on RPZ host.
2021-11-02 16:45:02 +01:00
Tom Carpay
5f8447830a
Move option handling to parse-time
2021-11-01 13:48:31 +00: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
Tom Carpay
3925297d07
Remove apply_edns_options from worker and mesh...
...
to be returned in message encoding later...
2021-11-01 10:44:55 +00:00
Tom Carpay
3ebfa9fc97
Outgoing module options go to opt_list_modules_out
...
And opt_list_modules_out is reset in case of failure
BEWARE! No options from modules will be encoded in the responses now!
2021-10-27 14:01:56 +00:00
Tom Carpay
3e6eeb504d
Modules have their own outgoing ends options list
...
But nothing happens with it yet
2021-10-27 13:48:49 +00:00
W.C.A. Wijngaards
89510f4a0c
- Implement RFC8375: Special-Use Domain 'home.arpa.'.
2021-09-27 15:09:01 +02:00
W.C.A. Wijngaards
7d70e3c861
- Fix initialisation errors reported by gcc sanitizer.
2021-09-10 14:30:57 +02:00
W.C.A. Wijngaards
9fa1ae1340
- Fix RPZ locks. Do not unlock zones lock if requested and rpz find
...
zone does not find the zone. Readlock the clientip that is found
for ipbased triggers. Unlock the nsdname zone lock when done.
Unlock zone and ip in rpz nsip and nsdname callback. Unlock
authzone and localzone if clientip found in rpz worker call.
2021-08-25 14:18:29 +02:00
W.C.A. Wijngaards
c93a7fb38a
- Fix the stream wait stream_wait_count_lock and http2 buffer locks
...
setup and desetup from race condition.
2021-08-25 13:37:50 +02:00
W.C.A. Wijngaards
a9de6879b8
Merge branch 'master' into rpz-triggers
2021-08-18 09:53:35 +02:00
W.C.A. Wijngaards
d0cc58be3d
- Fix to support harden-algo-downgrade for ZONEMD dnssec checks.
2021-08-16 16:14:32 +02:00
W.C.A. Wijngaards
4034c009bb
- zonemd, fix order of bogus printout string manipulation.
2021-08-13 15:24:53 +02:00
W.C.A. Wijngaards
c8c2dfff22
- Fix zonemd verification of key that is not in DNS but in the zone
...
and needs a chain of trust.
2021-08-13 14:43:11 +02:00
W.C.A. Wijngaards
ad45e9b89e
- Fix for #431 : Squelch permission denied errors for udp connect,
...
and udp send, they are visible at higher verbosity settings.
2021-08-13 09:27:58 +02:00
W.C.A. Wijngaards
f232562430
Merge branch 'master' into rpz-triggers
2021-08-05 13:37:22 +02:00
W.C.A. Wijngaards
c9bb0604db
- Fix static analysis warnings about localzone locks that are unused.
2021-08-04 10:58:08 +02:00
daiyunwei
0784ad7a11
#420
...
clear the c->buffer in the comm_point_send_reply does resolve the "can't fit qbuffer in c->buffer" issue, but it breaks the mesh reply list function that need to reuse the answer. because the c->buffer is cleared in the comm_point_send_reply, it cannot be resued again. it means that it is not inappropriate to clear c->buffer in the comm_point_send_reply.
After some investigation, i found it is appropriate to clear c->buffer before use in the http2_query_read_done.
2021-08-03 11:40:30 +08:00
W.C.A. Wijngaards
3ed5b62578
- Fix verbose printout failure in tcp reuse unit test.
2021-08-02 16:06:36 +02:00
George Thessalonikefs
ad2bd61ed4
- Remove redundant log_assert and fix error messages.
2021-07-26 16:12:55 +02:00
George Thessalonikefs
de73af2da2
- stream reuse, do not explicitly wait for a free pending_tcp if a reuse
...
could be used.
2021-07-26 10:47:20 +02:00
George Thessalonikefs
ab318a8b95
- Add unittest for tcp_reuse functions.
2021-07-24 01:15:00 +02:00
George Thessalonikefs
1b7358e85c
- stream reuse, move log_assert to the correct location.
2021-07-23 20:51:14 +02:00
George Thessalonikefs
e1fdac7205
- stream reuse, clean links on structs that are unlinked from a list.
2021-07-23 18:45:48 +02:00
George Thessalonikefs
0c74d6abba
- Fix for #411 , #439 , #469 : stream reuse, fix loop in the free
...
pending_tcp list.
2021-07-23 18:25:06 +02:00
George Thessalonikefs
5b4555954a
- Fix for #411 , #439 , #469 : stream reuse, fix outnet deletion for all
...
non-free pending_tcp.
2021-07-23 18:05:57 +02:00
George Thessalonikefs
224571256d
- Fix for #411 , #439 , #469 : stream reuse, fix LRU list when reuse is
...
already in the tree.
2021-07-23 18:00:24 +02:00
George Thessalonikefs
f9ad139c08
- Fix for #411 , #439 , #469 : stream reuse, fix linking when touching the
...
tcp_reuse LRU list.
2021-07-23 17:51:42 +02:00
George Thessalonikefs
e2221f3388
- More log_assert for stream reuse operations.
2021-07-23 17:50:28 +02:00
W.C.A. Wijngaards
d300bc8eee
- Fix for older parsers for function call in serve expired get cached.
2021-07-16 17:55:10 +02:00
George Thessalonikefs
ca4d68c64c
- Introduce 'http-user-agent:' and 'hide-http-user-agent:' options.
2021-07-16 14:32:18 +02:00
W.C.A. Wijngaards
f693cbc90b
Revert "- With hide-version unbound also omits the version from http headers."
...
This reverts commit 9d4644b125 .
2021-07-16 14:02:55 +02:00
W.C.A. Wijngaards
9d4644b125
- With hide-version unbound also omits the version from http headers.
2021-07-16 13:45:41 +02:00
W.C.A. Wijngaards
e388ba2967
- Fix spelling in localzone.h comment.
2021-07-16 10:28:09 +02:00
W.C.A. Wijngaards
8e5c3f51a2
- Fix auth zone download on windows to unlink before rename.
2021-06-25 15:31:33 +02:00
W.C.A. Wijngaards
9d681b627f
- Fix #503 : DNS over HTTPS response truncated.
2021-06-23 14:05:59 +02:00
W.C.A. Wijngaards
79209823ac
- Fix a number of warnings reported by the gcc analyzer.
2021-06-18 18:12:26 +02:00
W.C.A. Wijngaards
cf0aad9fb6
Merge branch 'master' into rpz-triggers
2021-05-28 15:00:55 +02:00
W.C.A. Wijngaards
ea4f1ee8a6
- zonemd-check: yesno option, default no, enables the processing
...
of ZONEMD records for that zone.
2021-05-27 14:20:53 +02:00
W.C.A. Wijngaards
76532f7447
- rpz-triggers, silence qname trigger explanation in rpz-log, this is
...
backwards compatible.
2021-05-21 14:56:38 +02:00
W.C.A. Wijngaards
e5cb48c432
Merge branch 'master' into rpz-triggers
2021-05-21 14:09:30 +02:00
W.C.A. Wijngaards
0a6b22dc55
- rpz-triggers, rpz log and stats for nsip and clientip and nsdname.
2021-05-21 14:05:19 +02:00
George Thessalonikefs
ff6b527184
- Fix for #411 , #439 , #469 : Reset the DNS message ID when moving queries
...
between TCP streams.
- Refactor for uniform way to produce random DNS message IDs.
2021-05-19 15:07:32 +02:00
W.C.A. Wijngaards
ddec5aa559
- rpz-triggers, spelling fix in comment.
2021-05-19 11:40:31 +02:00
W.C.A. Wijngaards
44f5d27683
- rpz-triggers, check for alloc failure and zone for add rpz soa.
2021-05-14 17:27:15 +02:00
W.C.A. Wijngaards
568aab1b67
- rpz-triggers, in callback from iterator, if rpz is disabled, skip.
2021-05-14 16:41:54 +02:00
W.C.A. Wijngaards
355526da7d
- rpz-triggers, the added soa for client ip modified answers is affected
...
by the minimal-responses config option.
2021-05-14 16:34:38 +02:00
W.C.A. Wijngaards
2094763beb
- rpz-triggers, add rpz SOA when minimal responses is not set.
2021-05-14 16:28:55 +02:00
W.C.A. Wijngaards
50dcadd495
- rpz-triggers, for clientip modified answers the rpz SOA is added to the
...
additional section with the serial number and name of the rpz zone that
was applied.
2021-05-14 15:34:48 +02:00
W.C.A. Wijngaards
ad08971b7a
- rpz-triggers, use zone for local data zone based answer if available.
2021-05-14 14:04:42 +02:00
W.C.A. Wijngaards
e7f476d5c3
- rpz-triggers, fix comments, log no zone answers.
2021-05-14 13:57:04 +02:00
W.C.A. Wijngaards
193e37d6e8
- rpz-triggers, call module local callback for rpz local encode replies.
2021-05-14 13:42:54 +02:00
W.C.A. Wijngaards
a9df16cf9b
- rpz-triggers, fix memory allocation trouble on allocation error path.
2021-05-14 13:35:24 +02:00
W.C.A. Wijngaards
9f40e93fe6
- rpz-triggers, use sec_status_insecure like respip, AA flag on RPZ responses.
2021-05-14 13:28:10 +02:00
W.C.A. Wijngaards
32d82fac9b
Merge branch 'master' into rpz-triggers
2021-05-14 08:47:56 +02:00
W.C.A. Wijngaards
07fda669e4
- Fix #485 : Unbound occasionally reports broken stats.
2021-05-07 11:13:44 +02:00
W.C.A. Wijngaards
90d0f8bc19
- Fix to squelch tcp socket bind failures when the interface is gone.
2021-05-04 16:21:42 +02:00
George Thessalonikefs
71f311dbe1
- Fix for #367 : only attempt to get the interface for queries
...
that are no longer on the tcp_waiting_list.
2021-05-04 14:45:01 +02:00
André Cruz
e07f973938
Allow configuration of TCP timeout while waiting for response
...
This allows us to configure how long Unbound will wait for a response
on a TCP connection.
2021-04-28 16:20:46 +01:00
George Thessalonikefs
45328d37b1
- Fix compiler warning for signed/unsigned comparison for
...
max_reuse_tcp_queries.
2021-04-28 16:15:52 +02:00
André Cruz
75875d4d1c
Allow configuration of persistent TCP connections
...
Added 2 new options to configure previously hardcoded
values: max-reuse-tcp-queries and tcp-reuse-timeout. These
allow fine-grained control over how unbound uses persistent
TCP connections to authority servers.
2021-04-21 13:50:45 +01:00
W.C.A. Wijngaards
69349c7c24
- rpz-triggers, nicer logging for response IP triggers.
2021-04-14 16:35:39 +02:00
W.C.A. Wijngaards
a23efc70ee
- rpz-triggers, nicer logging for qname and clientip triggers.
2021-04-14 13:54:27 +02:00
W.C.A. Wijngaards
ab94ca9684
- rpz-triggers, nicer logging for nsdname and nsip triggers, one line and
...
only when it applies to the delegation point.
2021-04-14 12:11:11 +02:00
W.C.A. Wijngaards
b366441157
Merge branch 'master' into rpz-triggers
2021-04-14 09:39:41 +02:00
W.C.A. Wijngaards
55ba863440
- Fix that nxdomain synthesis does not happen above the stub or
...
forward definition.
2021-04-13 13:52:57 +02:00
W.C.A. Wijngaards
0491176315
- rpz-triggers, spelling
2021-04-09 08:38:18 +02:00
W.C.A. Wijngaards
473f0cc44b
- rpz-triggers, precedence fix for nsdname and nsip triggers.
2021-04-08 14:39:48 +02:00
W.C.A. Wijngaards
f2d7620308
Merge branch 'master' into rpz-triggers
2021-04-08 14:28:26 +02:00
W.C.A. Wijngaards
7396eff7af
- Fix for #411 : Depth protect for crash on deleted element timeout.
2021-04-08 13:47:06 +02:00
W.C.A. Wijngaards
f64358b351
Merge branch 'master' into rpz-triggers
2021-04-01 14:34:25 +02:00
W.C.A. Wijngaards
fe324823f8
- Fix to stop IPv6 PMTU discovery.
2021-04-01 13:45:34 +02:00
W.C.A. Wijngaards
a2ea701f31
- rpz-triggers, fix what domain name to match for nsdname.
2021-04-01 13:11:51 +02:00
W.C.A. Wijngaards
1c75e62804
- rpz-triggers, separate cache storage of RPZ records from network records.
2021-04-01 12:06:14 +02:00
W.C.A. Wijngaards
49d9e91492
Merge branch 'master' into rpz-triggers
2021-03-25 17:28:53 +01:00
George Thessalonikefs
50d773436d
- Fix for #367 : fix memory leak when cannot bind to listening port.
2021-03-22 16:46:17 +01:00
W.C.A. Wijngaards
6289806f41
- Fix memory leak reported by asan in rpz SOA record query name.
2021-03-22 15:29:34 +01:00
W.C.A. Wijngaards
574c1fa50a
- Fix compile error in listen_dnsport on Android.
2021-03-22 15:02:19 +01:00
W.C.A. Wijngaards
a8e0de95b8
- rpz-triggers, remove unused variable warning.
2021-03-22 09:52:00 +01:00
W.C.A. Wijngaards
3dd804755b
- rpz-triggers, function documentation comments for iterator callback
...
functions.
2021-03-22 09:49:22 +01:00
W.C.A. Wijngaards
5a23c84951
- rpz triggers, fix query name on trigger after cname.
2021-03-19 17:36:09 +01:00
W.C.A. Wijngaards
7f39003c04
- rpz triggers, implement qname trigger after cname.
2021-03-19 17:31:44 +01:00
W.C.A. Wijngaards
1a528238e2
- rpz triggers, use tld name for tld pointer in suffix removal.
2021-03-12 16:07:37 +01:00
W.C.A. Wijngaards
e7afe0b153
- rpz triggers, rpz_insert_rr nicer.
2021-03-12 14:35:34 +01:00
W.C.A. Wijngaards
2d4523d946
- rpz triggers, fix that nsdname suffix removal returns allocated memory
...
of the correct length and the correct dnamelen.
2021-03-12 14:32:10 +01:00
W.C.A. Wijngaards
5ea042c863
- rpz triggers, document statistics and fix comment about statistics.
2021-03-12 13:24:17 +01:00
W.C.A. Wijngaards
62674aaff8
- rpz triggers, fix to put braces around operator.
2021-03-12 13:13:17 +01:00
W.C.A. Wijngaards
4f892a37bd
- rpz triggers, spelling fix.
2021-03-12 10:21:29 +01:00