- 05 Nov, 2019 1 commit
-
-
Ondřej Surý authored
-
- 01 Oct, 2019 2 commits
-
-
Ondřej Surý authored
Use the semantic patch from the previous commit to replace all the calls to dns_name_copy() with NULL as third argument with dns_name_copynf().
-
Ondřej Surý authored
This second commit uses second semantic patch to replace the calls to dns_name_copy() with NULL as third argument where the result was stored in a isc_result_t variable. As the dns_name_copy(..., NULL) cannot fail gracefully when the third argument is NULL, it was just a bunch of dead code. Couple of manual tweaks (removing dead labels and unused variables) were manually applied on top of the semantic patch.
-
- 23 Jul, 2019 1 commit
-
-
Ondřej Surý authored
-
- 08 Mar, 2019 1 commit
-
-
Ondřej Surý authored
-
- 06 Dec, 2018 1 commit
-
-
Evan Hunt authored
- the AD flag was not being cleared correctly when filtering - enabled dnssec valdiation in the filter-aaaa test to confirm this works correctly now
-
- 22 Nov, 2018 2 commits
-
-
Witold Krecicki authored
- Make isc_mutexblock_init/destroy return void - Minor cleanups
-
Ondřej Surý authored
-
- 08 Nov, 2018 1 commit
-
-
Ondřej Surý authored
-
- 23 Oct, 2018 4 commits
-
-
Mark Andrews authored
-
Witold Krecicki authored
-
Witold Krecicki authored
-
Witold Krecicki authored
this makes the cache more efficient and eliminates duplicates queries.
-
- 08 Aug, 2018 2 commits
-
-
Ondřej Surý authored
-
Ondřej Surý authored
-
- 12 Jun, 2018 3 commits
-
-
Evan Hunt authored
-
Evan Hunt authored
-
Witold Krecicki authored
- make qname-minimization option tristate {strict,relaxed,disabled} - go straight for the record if we hit NXDOMAIN in relaxed mode - go straight for the record after 3 labels without new delegation or 7 labels total - use start of fetch (and not time of response) as 'now' time for querying cache for zonecut when following delegation.
-
- 29 May, 2018 1 commit
-
-
Ondřej Surý authored
This commit reverts the previous change to use system provided entropy, as (SYS_)getrandom is very slow on Linux because it is a syscall. The change introduced in this commit adds a new call isc_nonce_buf that uses CSPRNG from cryptographic library provider to generate secure data that can be and must be used for generating nonces. Example usage would be DNS cookies. The isc_random() API has been changed to use fast PRNG that is not cryptographically secure, but runs entirely in user space. Two contestants have been considered xoroshiro family of the functions by Villa&Blackman and PCG by O'Neill. After a consideration the xoshiro128starstar function has been used as uint32_t random number provider because it is very fast and has good enough properties for our usage pattern. The other change introduced in the commit is the more extensive usage of isc_random_uniform in places where the usage pattern was isc_random() % n to prevent modulo bias. For usage patterns where only 16 or 8 bits are needed (DNS Message ID), the isc_random() functions has been renamed to isc_random32(), and isc_random16() and isc_random8() functions have been introduced by &-ing the isc_random32() output with 0xffff and 0xff. Please note that the functions that uses stripped down bit count doesn't pass our NIST SP 800-22 based random test.
-
- 16 May, 2018 1 commit
-
-
Ondřej Surý authored
The three functions has been modeled after the arc4random family of functions, and they will always return random bytes. The isc_random family of functions internally use these CSPRNG (if available): 1. getrandom() libc call (might be available on Linux and Solaris) 2. SYS_getrandom syscall (might be available on Linux, detected at runtime) 3. arc4random(), arc4random_buf() and arc4random_uniform() (available on BSDs and Mac OS X) 4. crypto library function: 4a. RAND_bytes in case OpenSSL 4b. pkcs_C_GenerateRandom() in case PKCS#11 library
-
- 09 Apr, 2018 1 commit
-
-
Michał Kępień authored
Replace dns_fixedname_init() calls followed by dns_fixedname_name() calls with calls to dns_fixedname_initname() where it is possible without affecting current behavior and/or performance. This patch was mostly prepared using Coccinelle and the following semantic patch: @@ expression fixedname, name; @@ - dns_fixedname_init(&fixedname); ... - name = dns_fixedname_name(&fixedname); + name = dns_fixedname_initname(&fixedname); The resulting set of changes was then manually reviewed to exclude false positives and apply minor tweaks. It is likely that more occurrences of this pattern can be refactored in an identical way. This commit only takes care of the low-hanging fruit.
-
- 06 Apr, 2018 3 commits
-
-
Witold Krecicki authored
libdns refactoring: get rid of multiple versions of dns_view_find, dns_view_findzonecut and dns_view_flushcache
-
Witold Krecicki authored
-
Witold Krecicki authored
-
- 23 Feb, 2018 1 commit
-
-
Ondřej Surý authored
-
- 15 Feb, 2018 2 commits
-
-
Mark Andrews authored
-
Mark Andrews authored
-
- 12 Sep, 2017 1 commit
-
-
Mark Andrews authored
-
- 30 Aug, 2017 1 commit
-
-
Tinderbox User authored
-
- 30 Dec, 2016 2 commits
-
-
Tinderbox User authored
-
Mark Andrews authored
-
- 29 Jun, 2016 1 commit
-
-
Mark Andrews authored
clone and gai_error.
-
- 27 Jun, 2016 1 commit
-
-
Mark Andrews authored
-
- 09 Jul, 2015 1 commit
-
-
Evan Hunt authored
3938. [func] Added quotas to be used in recursive resolvers that are under high query load for names in zones whose authoritative servers are nonresponsive or are experiencing a denial of service attack. - "fetches-per-server" limits the number of simultaneous queries that can be sent to any single authoritative server. The configured value is a starting point; it is automatically adjusted downward if the server is partially or completely non-responsive. The algorithm used to adjust the quota can be configured via the "fetch-quota-params" option. - "fetches-per-zone" limits the number of simultaneous queries that can be sent for names within a single domain. (Note: Unlike "fetches-per-server", this value is not self-tuning.) - New stats counters have been added to count queries spilled due to these quotas. See the ARM for details of these options. [RT #37125]
-
- 05 Jul, 2015 2 commits
-
-
Tinderbox User authored
-
Mark Andrews authored
experimental SIT option of BIND 9.10. The following named.conf directives are avaliable: send-cookie, cookie-secret, cookie-algorithm and nocookie-udp-size. The following dig options are available: +[no]cookie[=value] and +[no]badcookie. [RT #39928]
-
- 25 Jun, 2015 1 commit
-
-
Mark Andrews authored
[RT #37125]
-
- 23 May, 2015 1 commit
-
-
Francis Dupont authored
-
- 18 Mar, 2015 1 commit
-
-
Mukund Sivaraman authored
-
- 27 Feb, 2015 1 commit
-
-
Mark Andrews authored
reload / reconfig events. [RT #38622]
-