]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoTest keytimes on policy changes
Matthijs Mekking [Tue, 12 May 2020 15:12:21 +0000 (17:12 +0200)] 
Test keytimes on policy changes

This improves keytime testing on reconfiguration of the
dnssec-policy.

6 years agoTest keytimes on CSK rollover
Matthijs Mekking [Mon, 11 May 2020 13:12:32 +0000 (15:12 +0200)] 
Test keytimes on CSK rollover

This improves keytime testing on CSK rollover.  It now
tests for specific times, and also tests for SyncPublish and
Removed keytimes.

Since an "active key" for ZSK and KSK means something
different, this makes it tricky to decide when a CSK is
active. An "active key" intuitively means the key is signing
so we say a CSK is active when it is creating zone signatures.

This change means a lot of timings for the CSK rollover tests
need to be adjusted.

The keymgr code needs a slight change on calculating the
prepublication time: For a KSK we need to include the parent
registration delay, but for CSK we look at the zone signing
property and stick with the ZSK prepublication calculation.

6 years agoTest keytimes on KSK rollover
Matthijs Mekking [Mon, 4 May 2020 10:33:52 +0000 (12:33 +0200)] 
Test keytimes on KSK rollover

This improves keytime testing on KSK rollover.  It now
tests for specific times, and also tests for SyncPublish and
Removed keytimes.

6 years agokasp: registration delay adjustments
Matthijs Mekking [Mon, 4 May 2020 10:30:40 +0000 (12:30 +0200)] 
kasp: registration delay adjustments

Registration delay is not part of the Iret retire interval, thus
removed from the calculation when setting the Delete time metadata.

Include the registration delay in prepublication time, because
we need to prepublish the key sooner than just the Ipub
publication interval.

6 years agoTest keytimes on ZSK rollover
Matthijs Mekking [Fri, 1 May 2020 11:43:52 +0000 (13:43 +0200)] 
Test keytimes on ZSK rollover

This improves keytime testing on ZSK rollover.  It now
tests for specific times, and also tests for SyncPublish and
Removed keytimes.

6 years agoTest keytimes on enable-dnssec case
Matthijs Mekking [Thu, 30 Apr 2020 11:48:07 +0000 (13:48 +0200)] 
Test keytimes on enable-dnssec case

This improves keytime testing for enabling DNSSEC.  It now
tests for specific times, and also tests for SyncPublish.

6 years agoSet SyncPublish on keys
Matthijs Mekking [Thu, 30 Apr 2020 11:22:23 +0000 (13:22 +0200)] 
Set SyncPublish on keys

Set the SyncPublish metadata on keys that don't have them yet.

6 years agoStart testing keytiming metadata
Matthijs Mekking [Thu, 30 Apr 2020 11:13:12 +0000 (13:13 +0200)] 
Start testing keytiming metadata

This commit adds testing keytiming metadata.  In order to facilitate
this, the kasp system test undergoes a few changes:

1. When finding a key file, rather than only saving the key ID,
   also save the base filename and creation date with `key_save`.
   These can be used later to set expected key times.
2. Add a test function `set_addkeytime` that takes a key, which
   keytiming to update, a datetime in keytiming format, and a number
   (seconds) to add, and sets the new time in the given keytime
   parameter of the given key.  This is used to set the expected key
   times.
3. Split `check_keys` in `check_keys` and `check_keytimes`.  First we
   need to find the keyfile before we can check the keytimes.
   We need to retrieve the creation date (and sometimes other
   keytimes) to determine the other expected key times.
4. Add helper functions to set the expected key times per policy.
   This avoids lots of duplication.

Check for keytimes for the first test cases (all that do not cover
rollovers).

6 years agoStop keeping track of key parameter count
Matthijs Mekking [Wed, 29 Apr 2020 08:51:41 +0000 (10:51 +0200)] 
Stop keeping track of key parameter count

Stop tracking in the comments the number of key parameters in the
kasp system test, it adds nothing beneficial.

6 years agoFix some more test output filenames
Matthijs Mekking [Wed, 29 Apr 2020 08:01:27 +0000 (10:01 +0200)] 
Fix some more test output filenames

After removing dnssec-settime calls that set key rollover
relationship, we can adjust the counts in test output filenames.

Also fix a couple of more wrong counts in output filenames.

6 years agoSet key rollover relationship without settime
Matthijs Mekking [Wed, 29 Apr 2020 07:37:41 +0000 (09:37 +0200)] 
Set key rollover relationship without settime

Using dnssec-setttime after dnssec-keygen in the kasp system test
can lead to off by one second failures, so reduce the usage of
dnssec-settime in the setup scripts.  This commit deals with
setting the key rollover relationship (predecessor/successor).

6 years agoMove setting keytimes from settime to keygen
Matthijs Mekking [Tue, 28 Apr 2020 14:10:57 +0000 (16:10 +0200)] 
Move setting keytimes from settime to keygen

In the kasp system test, we are going to set the keytimes on
dnssec-keygen so we can test them against the key creation time.
This prevents off by one second in the test, something that can
happen if you set those times with dnssec-settime after
dnssec-keygen.

Also fix some test output filenames.

6 years agoSet keytimes appropriately when using kasp
Matthijs Mekking [Tue, 28 Apr 2020 13:05:43 +0000 (15:05 +0200)] 
Set keytimes appropriately when using kasp

While kasp relies on key states to determine when a key needs to
be published or be used for signing, the keytimes are used by
operators to get some expectation of key publication and usage.

Update the code such that these keytimes are set appropriately.
That means:
- Print "PublishCDS" and "DeleteCDS" times in the state files.
- The keymgr sets the "Removed" and "PublishCDS" times and derives
  those from the dnssec-policy.
- Tweak setting of the "Retired" time, when retiring keys, only
  update the time to now when the retire time is not yet set, or is
  in the future.

This also fixes a bug in "keymgr_transition_time" where we may wait
too long before zone signatrues become omnipresent or hidden. Not
only can we skip waiting the sign delay Dsgn if there is no
predecessor, we can also skip it if there is no successor.

Finally, this commit moves setting the lifetime, reducing two calls
to one.

6 years agokeygen -k: allow to set times, not genonly
Matthijs Mekking [Tue, 28 Apr 2020 12:32:57 +0000 (14:32 +0200)] 
keygen -k: allow to set times, not genonly

For testing purposes mainly, we want to allow set keytimings on
generated keys, such that we don't have to "keygen/settime" which
can result in one second off times.

6 years agoMerge branch '1164-add-danger-python-to-gitlab-ci' into 'master'
Ondřej Surý [Mon, 1 Jun 2020 11:40:58 +0000 (11:40 +0000)] 
Merge branch '1164-add-danger-python-to-gitlab-ci' into 'master'

Add Danger Python to GitLab CI

Closes #1164

See merge request isc-projects/bind9!3583

6 years agoAdd Danger Python to GitLab CI
Michał Kępień [Mon, 25 May 2020 10:49:36 +0000 (12:49 +0200)] 
Add Danger Python to GitLab CI

Certain rules of the BIND development process are not codified anywhere
and/or are used inconsistently.  In an attempt to improve this
situation, add a GitLab CI job which uses Danger Python to add comments
to merge requests when certain expectations are not met.  Two categories
of feedback are used, only one of which - fail() - causes the GitLab CI
job to fail.  Exclude dangerfile.py from Python QA checks as the way the
contents of that file are evaluated triggers a lot of Flake8 and PyLint
warnings.

6 years agoMerge branch 'ondrej/fix-higlight-typo' into 'master'
Ondřej Surý [Mon, 1 Jun 2020 07:45:39 +0000 (07:45 +0000)] 
Merge branch 'ondrej/fix-higlight-typo' into 'master'

Fix typo (higlight -> highlight) in documentation

See merge request isc-projects/bind9!3610

6 years agoFix typo (higlight -> highlight) in documentation
Ondřej Surý [Mon, 1 Jun 2020 07:41:52 +0000 (09:41 +0200)] 
Fix typo (higlight -> highlight) in documentation

6 years agoMerge branch 'sgoldlust-1826-various-text-edits-needed-in-bind-arm-patch-99571' into...
Ondřej Surý [Mon, 1 Jun 2020 07:32:40 +0000 (07:32 +0000)] 
Merge branch 'sgoldlust-1826-various-text-edits-needed-in-bind-arm-patch-99571' into 'master'

Text edits in reference.rst

See merge request isc-projects/bind9!3569

6 years agoGrammar, clarity, and content fixes in reference.rst
Suzanne Goldlust [Thu, 14 May 2020 22:19:00 +0000 (22:19 +0000)] 
Grammar, clarity, and content fixes in reference.rst

Also converted logging-categories.rst from a table to text and adjusted
the util/check-categories.sh script.

6 years agoText, grammar, typo, and clarity edits in multiple ARM chapters
Suzanne Goldlust [Wed, 13 May 2020 21:22:34 +0000 (21:22 +0000)] 
Text, grammar, typo, and clarity edits in multiple ARM chapters

Files requirements.rst, configuration.rs, plugins.rst, and partially
reference.rst has been edited.

6 years agoMerge branch '1888-text-edits-in-catz-rst' into 'master'
Ondřej Surý [Mon, 1 Jun 2020 07:02:44 +0000 (07:02 +0000)] 
Merge branch '1888-text-edits-in-catz-rst' into 'master'

Resolve "Text edits in catz.rst"

Closes #1888

See merge request isc-projects/bind9!3596

6 years agoContent and grammar edits to catz.rst
Suzanne Goldlust [Mon, 1 Jun 2020 07:02:44 +0000 (07:02 +0000)] 
Content and grammar edits to catz.rst

6 years agoMerge branch '1894-edits-to-contributing-md' into 'master'
Ondřej Surý [Mon, 1 Jun 2020 07:01:16 +0000 (07:01 +0000)] 
Merge branch '1894-edits-to-contributing-md' into 'master'

Resolve "Edits to CONTRIBUTING.md"

Closes #1894

See merge request isc-projects/bind9!3603

6 years agoContent updates to CONTRIBUTING.md
Suzanne Goldlust [Mon, 1 Jun 2020 07:01:15 +0000 (07:01 +0000)] 
Content updates to CONTRIBUTING.md

6 years agoMerge branch '1898-rst-files-should-be-independent-of-configure-option' into 'master'
Mark Andrews [Mon, 1 Jun 2020 04:51:42 +0000 (04:51 +0000)] 
Merge branch '1898-rst-files-should-be-independent-of-configure-option' into 'master'

Resolve "'.rst' files should be independent of configure option."

Closes #1898

See merge request isc-projects/bind9!3604

6 years agoremove ' // not configured' comment when generating options.active
Mark Andrews [Fri, 29 May 2020 05:43:18 +0000 (15:43 +1000)] 
remove ' // not configured' comment when generating options.active

6 years agoMerge branch '1857-assertion-failure-insist-nlabels-name-labels' into 'master'
Evan Hunt [Fri, 29 May 2020 21:50:17 +0000 (21:50 +0000)] 
Merge branch '1857-assertion-failure-insist-nlabels-name-labels' into 'master'

Resolve "assertion failure in 9.16.2: name.c:1738: INSIST(nlabels == name->labels)"

Closes #1857

See merge request isc-projects/bind9!3577

6 years agoCHANGES, release note
Evan Hunt [Tue, 19 May 2020 01:09:08 +0000 (18:09 -0700)] 
CHANGES, release note

6 years agoEnsure tree lock is always held when dns_rbt_fullnamefromnode is called
Mark Andrews [Tue, 19 May 2020 06:19:26 +0000 (16:19 +1000)] 
Ensure tree lock is always held when dns_rbt_fullnamefromnode is called

6 years agopass the nodename to add32() instead of calling dns_rbt_fullnamefromnode()
Evan Hunt [Tue, 19 May 2020 01:09:08 +0000 (18:09 -0700)] 
pass the nodename to add32() instead of calling dns_rbt_fullnamefromnode()

in addition to being more efficient, this prevents a possible crash by
looking up the node name before the tree sructure can be changed when
cleaning up dead nodes in addrdataset().

6 years agoMerge branch 'wpk/fix-leaking-mutexes-and-conditionals' into 'master'
Ondřej Surý [Fri, 29 May 2020 19:47:26 +0000 (19:47 +0000)] 
Merge branch 'wpk/fix-leaking-mutexes-and-conditionals' into 'master'

Add missing isc_mutex_destroy and isc_conditional_destroy calls.

Closes #1893

See merge request isc-projects/bind9!3600

6 years agoCHANGES and release notes
Witold Kręcicki [Thu, 28 May 2020 10:38:29 +0000 (12:38 +0200)] 
CHANGES and release notes

6 years agoClear sock->magic to 0 when destroying a netmgr socket
Witold Kręcicki [Thu, 28 May 2020 12:47:04 +0000 (14:47 +0200)] 
Clear sock->magic to 0 when destroying a netmgr socket

6 years agoAdd missing isc_mutex_destroy and isc_conditional_destroy calls.
Witold Kręcicki [Thu, 28 May 2020 10:34:37 +0000 (12:34 +0200)] 
Add missing isc_mutex_destroy and isc_conditional_destroy calls.

While harmless on Linux, missing isc_{mutex,conditional}_destroy
causes a memory leak on *BSD. Missing calls were added.

6 years agoMerge branch 'feature/rndc-confgen-quiet' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:59:42 +0000 (13:59 +0000)] 
Merge branch 'feature/rndc-confgen-quiet' into 'master'

Make possible not printing written path

See merge request isc-projects/bind9!3578

6 years agoMake possible not printing written path
Petr Menšík [Fri, 22 May 2020 18:40:06 +0000 (20:40 +0200)] 
Make possible not printing written path

Changes written path from stderr to stdout if enabled.
Adds -q parameter to hide written path.

6 years agoMerge branch '1872-text-edits-in-advanced-rst' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:21:46 +0000 (13:21 +0000)] 
Merge branch '1872-text-edits-in-advanced-rst' into 'master'

Resolve "Text edits in advanced.rst"

Closes #1872

See merge request isc-projects/bind9!3580

6 years agoOops, missed one text edit.
Suzanne Goldlust [Fri, 22 May 2020 20:42:22 +0000 (20:42 +0000)] 
Oops, missed one text edit.

6 years agoVarious text edits to advanced.rst
Suzanne Goldlust [Fri, 22 May 2020 20:38:17 +0000 (20:38 +0000)] 
Various text edits to advanced.rst

6 years agoMerge branch '1825-improperly-formatted-commands-in-bind-arm' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:20:09 +0000 (13:20 +0000)] 
Merge branch '1825-improperly-formatted-commands-in-bind-arm' into 'master'

Resolve "Improperly formatted commands in BIND ARM"

Closes #1825

See merge request isc-projects/bind9!3579

6 years agoFix incorrect command formatting
Suzanne Goldlust [Fri, 22 May 2020 19:17:06 +0000 (19:17 +0000)] 
Fix incorrect command formatting

6 years agoMerge branch '1881-text-edits-in-dnssec-rst' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:15:24 +0000 (13:15 +0000)] 
Merge branch '1881-text-edits-in-dnssec-rst' into 'master'

Resolve "Text edits in dnssec.rst"

Closes #1881

See merge request isc-projects/bind9!3589

6 years agoContent and grammar edits to dnssec.rst
Suzanne Goldlust [Tue, 26 May 2020 17:42:52 +0000 (17:42 +0000)] 
Content and grammar edits to dnssec.rst

6 years agoMerge branch '1882-text-edits-in-managed-keys-rst' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:11:20 +0000 (13:11 +0000)] 
Merge branch '1882-text-edits-in-managed-keys-rst' into 'master'

Resolve "Text edits in managed-keys.rst"

Closes #1882

See merge request isc-projects/bind9!3590

6 years agoContent and grammar changes to managed-keys.rst
Suzanne Goldlust [Tue, 26 May 2020 19:53:55 +0000 (19:53 +0000)] 
Content and grammar changes to managed-keys.rst

6 years agoMerge branch '1886-text-edits-in-dlz-rst' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:02:18 +0000 (13:02 +0000)] 
Merge branch '1886-text-edits-in-dlz-rst' into 'master'

Resolve "Text edits in dlz.rst"

Closes #1886

See merge request isc-projects/bind9!3594

6 years agoContent and grammar updates to dlz.rst
Suzanne Goldlust [Wed, 27 May 2020 17:15:23 +0000 (17:15 +0000)] 
Content and grammar updates to dlz.rst

6 years agoMerge branch '1887-text-edits-in-dyndb-rst' into 'master'
Ondřej Surý [Fri, 29 May 2020 13:00:10 +0000 (13:00 +0000)] 
Merge branch '1887-text-edits-in-dyndb-rst' into 'master'

Resolve "Text edits in dyndb.rst"

Closes #1887

See merge request isc-projects/bind9!3595

6 years agoContent and grammar updates to dyndb.rst
Suzanne Goldlust [Wed, 27 May 2020 17:21:46 +0000 (17:21 +0000)] 
Content and grammar updates to dyndb.rst

6 years agoMerge branch '1774-fix-windows-build' into 'master'
Ondřej Surý [Fri, 29 May 2020 12:31:22 +0000 (12:31 +0000)] 
Merge branch '1774-fix-windows-build' into 'master'

Get Windows builds working again

Closes #1774

See merge request isc-projects/bind9!3571

6 years agoStop using AC_C_FLEXIBLE_ARRAY_MEMBER, support for it is part of C99
Ondřej Surý [Thu, 28 May 2020 07:26:55 +0000 (09:26 +0200)] 
Stop using AC_C_FLEXIBLE_ARRAY_MEMBER, support for it is part of C99

6 years agoDefine WIN32_LEAN_AND_MEAN globally instead of anecdotically
Ondřej Surý [Thu, 28 May 2020 07:02:45 +0000 (09:02 +0200)] 
Define WIN32_LEAN_AND_MEAN globally instead of anecdotically

6 years agoUse forward slashes instead of backslashes as directory separator on Windows
Ondřej Surý [Wed, 27 May 2020 12:48:59 +0000 (14:48 +0200)] 
Use forward slashes instead of backslashes as directory separator on Windows

6 years agoCleanup the shell scripts used to run tests on Windows
Ondřej Surý [Wed, 27 May 2020 10:23:54 +0000 (12:23 +0200)] 
Cleanup the shell scripts used to run tests on Windows

6 years agoAdd support for replacing {,top_,abs_}{srcdir,builddir} from win32util/Configure
Ondřej Surý [Wed, 27 May 2020 09:48:28 +0000 (11:48 +0200)] 
Add support for replacing {,top_,abs_}{srcdir,builddir} from win32util/Configure

6 years agoAdd xsl.c generation to vcxproj files for named build
Ondřej Surý [Thu, 21 May 2020 15:05:11 +0000 (17:05 +0200)] 
Add xsl.c generation to vcxproj files for named build

6 years agoSet the PACKAGE_BUILDER to include _MSC_VER
Ondřej Surý [Thu, 21 May 2020 13:32:28 +0000 (15:32 +0200)] 
Set the PACKAGE_BUILDER to include _MSC_VER

6 years agoMove the dependencies from sln to vcxproj files
Ondřej Surý [Thu, 21 May 2020 12:45:46 +0000 (14:45 +0200)] 
Move the dependencies from sln to vcxproj files

6 years agoFix the makejournal.vcxproj file
Ondřej Surý [Thu, 21 May 2020 10:44:57 +0000 (12:44 +0200)] 
Fix the makejournal.vcxproj file

6 years agoUpdate how we build bind.keys.h (both POSIX and Windows)
Ondřej Surý [Thu, 21 May 2020 09:50:56 +0000 (11:50 +0200)] 
Update how we build bind.keys.h (both POSIX and Windows)

The code in util/bindkeys.pl was overly complicated and it could not be
reused on Windows because redirecting stdin and stdout at the same time
from perl is overly complicated.

Now the util/bindkeys.pl accepts the input file as the first and only
argument and prints the header file to stdout.  This allows the same
utility to be used from automake and win32/Configure script.

6 years agoAlways save build artifacts on Windows
Ondřej Surý [Thu, 21 May 2020 08:34:34 +0000 (10:34 +0200)] 
Always save build artifacts on Windows

6 years agoFix the missing thread_local define on Windows
Ondřej Surý [Thu, 21 May 2020 08:33:30 +0000 (10:33 +0200)] 
Fix the missing thread_local define on Windows

6 years agoMake win32util/Configure aligned with autoconf-style
Ondřej Surý [Thu, 21 May 2020 08:04:31 +0000 (10:04 +0200)] 
Make win32util/Configure aligned with autoconf-style

6 years agoRestore the GSSAPI compilation on Windows (but we should really switch to SSPI/Kerberos)
Ondřej Surý [Wed, 20 May 2020 14:06:18 +0000 (16:06 +0200)] 
Restore the GSSAPI compilation on Windows (but we should really switch to SSPI/Kerberos)

6 years agoRestore the Windows build and test jobs
Ondřej Surý [Wed, 20 May 2020 13:12:17 +0000 (15:12 +0200)] 
Restore the Windows build and test jobs

6 years agoAdd ltdl.h shim for Windows
Ondřej Surý [Tue, 19 May 2020 14:36:01 +0000 (16:36 +0200)] 
Add ltdl.h shim for Windows

6 years agoMerge branch '1858-silence-tsan-in-bin-nsupdate-nsupdate-c' into 'master'
Mark Andrews [Thu, 28 May 2020 00:43:19 +0000 (00:43 +0000)] 
Merge branch '1858-silence-tsan-in-bin-nsupdate-nsupdate-c' into 'master'

Resolve "Silence TSAN in bin/nsupdate/nsupdate.c"

Closes #1858

See merge request isc-projects/bind9!3558

6 years agoLock access to 'answer' to silence TSAN
Mark Andrews [Tue, 19 May 2020 03:25:41 +0000 (13:25 +1000)] 
Lock access to 'answer' to silence TSAN

6 years agoMerge branch 'wpk-dirty-query-debuglog' into 'master'
Evan Hunt [Tue, 26 May 2020 08:47:15 +0000 (08:47 +0000)] 
Merge branch 'wpk-dirty-query-debuglog' into 'master'

single-query trace logging

Closes #1851

See merge request isc-projects/bind9!3545

6 years agoCHANGES, README, release note
Evan Hunt [Fri, 15 May 2020 23:34:09 +0000 (16:34 -0700)] 
CHANGES, README, release note

6 years agoadd a quick-and-dirty method of debugging a single query
Evan Hunt [Fri, 15 May 2020 23:37:44 +0000 (16:37 -0700)] 
add a quick-and-dirty method of debugging a single query

when built with "configure --enable-singletrace", named will produce
detailed query logging at the highest debug level for any query with
query ID zero.

this enables monitoring of the progress of a single query by specifying
the QID using "dig +qid=0". the "client" logging category should be set
to a low severity level to suppress logging of other queries. (the
chance of another query using QID=0 at the same time is only 1 in 2^16.)

"--enable-singletrace" turns on "--enable-querytrace" as well, so if the
logging severity is not lowered, all other queries will be logged
verbosely as well. compiling with either of these options will impair
query performance; they should only be turned on when testing or
troubleshooting.

6 years agoadd "dig +qid" option to set QID to desired value
Evan Hunt [Fri, 8 May 2020 19:39:16 +0000 (12:39 -0700)] 
add "dig +qid" option to set QID to desired value

6 years agoMerge branch 'each-bool-conditionals' into 'master'
Evan Hunt [Tue, 26 May 2020 00:00:05 +0000 (00:00 +0000)] 
Merge branch 'each-bool-conditionals' into 'master'

remove unnecessary 'true' and 'false' comparisons in boolean expressions

See merge request isc-projects/bind9!3312

6 years agochange "expr == false" to "!expr" in conditionals
Evan Hunt [Mon, 30 Mar 2020 20:49:55 +0000 (13:49 -0700)] 
change "expr == false" to "!expr" in conditionals

6 years agochange 'expr == true' to 'expr' in conditionals
Evan Hunt [Mon, 30 Mar 2020 20:47:58 +0000 (13:47 -0700)] 
change 'expr == true' to 'expr' in conditionals

6 years agoMerge branch '1860-delv-crashes-processing-deprecated-trusted-keys-clause-in-anchor...
Mark Andrews [Mon, 25 May 2020 22:27:51 +0000 (22:27 +0000)] 
Merge branch '1860-delv-crashes-processing-deprecated-trusted-keys-clause-in-anchor-file' into 'master'

Resolve "delv crashes processing deprecated "trusted-keys" clause in anchor file"

Closes #1860

See merge request isc-projects/bind9!3568

6 years agoAdd CHANGES
Mark Andrews [Wed, 20 May 2020 04:25:49 +0000 (14:25 +1000)] 
Add CHANGES

6 years agoHandle deprecated 'trusted-keys' style anchors
Mark Andrews [Wed, 20 May 2020 04:22:40 +0000 (14:22 +1000)] 
Handle deprecated 'trusted-keys' style anchors

6 years agoCheck that delv supports deprecated trusted-keys
Mark Andrews [Wed, 20 May 2020 04:20:29 +0000 (14:20 +1000)] 
Check that delv supports deprecated trusted-keys

6 years agoMerge branch '1868-edns-udp-buffer-size-tweaks' into 'master'
Michał Kępień [Mon, 25 May 2020 12:38:28 +0000 (12:38 +0000)] 
Merge branch '1868-edns-udp-buffer-size-tweaks' into 'master'

EDNS UDP buffer size tweaks

Closes #1868

See merge request isc-projects/bind9!3576

6 years agoAdd CHANGES entry
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Add CHANGES entry

5417. [cleanup] The code determining the advertised UDP buffer size in
outgoing EDNS queries has been refactored to improve its
clarity. [GL #1868]

6 years agoUpdate "edns-udp-size" documentation in the ARM
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Update "edns-udp-size" documentation in the ARM

Update the description of the process for determining the advertised UDP
buffer size in outgoing queries so that it matches the code.

6 years agoImprove the "hint" variable comment
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Improve the "hint" variable comment

Replace an existing comment with a more verbose explanation of when the
"hint" variable is set in resquery_send() and how its value affects the
advertised UDP buffer size in outgoing queries.

6 years agoEnsure server-specific "edns-udp-size" is obeyed
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Ensure server-specific "edns-udp-size" is obeyed

If "edns-udp-size" is set in a "server" block matching the queried
server, it is accounted for in the process of determining the advertised
UDP buffer size, but its value may still be overridden before the query
is sent.  This behavior contradicts the ARM which claims that when set,
the server-specific "edns-udp-size" value is used for all EDNS queries
sent to a given server.

Furthermore, calling dns_peer_getudpsize() with the "udpsize" variable
as an argument makes the code hard to follow as that call may either
update the value of "udpsize" or leave it untouched.

Ensure the code matches the documentation by moving the
dns_peer_getudpsize() call below all other blocks of code potentially
affecting the advertised UDP buffer size, which is where it was located
when server-specific "edns-udp-size" support was first implemented [1].
Improve code readability by calling dns_peer_getudpsize() with a helper
variable instead of "udpsize".

[1] see commit 1c153afce556ff3c687986fb7c4a0b0a7f5e7cd8

6 years agoRestore semantic meaning of DNS_FETCHOPT_EDNS512
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Restore semantic meaning of DNS_FETCHOPT_EDNS512

When the DNS_FETCHOPT_EDNS512 flag was first introduced [1], it enforced
advertising a 512-byte UDP buffer size in an outgoing query.  Ever since
EDNS processing code got updated [2], that flag has still been set upon
detection of certain query timeout patterns, but it has no longer been
affecting the calculations of the advertised UDP buffer size in outgoing
queries.  Restore original semantic meaning of DNS_FETCHOPT_EDNS512 by
ensuring the advertised UDP buffer size is set to 512 bytes when that
flag is set.  Update existing comments and add new ones to improve code
readability.

[1] see commit 08c90261660649ca7d92065f6f13a61ec5a9a86d
[2] see commit 8e15d5eb3a000f1341e6bea0ddbc28d6dd2a0591

6 years agoRemove fctx->reason and a misleading log message
Michał Kępień [Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)] 
Remove fctx->reason and a misleading log message

The following message:

    success resolving '<name>' (in '<domain>'?) after reducing the advertised EDNS UDP packet size to 512 octets

can currently be logged even if the EDNS UDP buffer size advertised in
queries sent to a given server had already been set to 512 octets before
the fetch context was created (e.g. due to the server responding
intermittently).  In other words, this log message may be misleading as
lowering the advertised EDNS UDP buffer size may not be the actual cause
of <name> being successfully resolved.  Remove the log message in
question to prevent confusion.

As this log message is the only existing user of the "reason" field in
struct fetchctx, remove that field as well, along with all the code
related to it.

6 years agoMerge branch '1861-named_checknames_get-missing-dbc' into 'master'
Mark Andrews [Mon, 25 May 2020 01:46:22 +0000 (01:46 +0000)] 
Merge branch '1861-named_checknames_get-missing-dbc' into 'master'

Resolve "named_checknames_get missing DBC"

Closes #1861

See merge request isc-projects/bind9!3567

6 years agoAdd DBC checks to named_checknames_get
Mark Andrews [Wed, 20 May 2020 01:56:37 +0000 (11:56 +1000)] 
Add DBC checks to named_checknames_get

6 years agoSet obj to NULL so INSIST makes sense
Mark Andrews [Wed, 20 May 2020 01:56:01 +0000 (11:56 +1000)] 
Set obj to NULL so INSIST makes sense

6 years agoMerge branch 'mnowak/automake-unit-tests' into 'master'
Michal Nowak [Thu, 21 May 2020 10:15:18 +0000 (10:15 +0000)] 
Merge branch 'mnowak/automake-unit-tests' into 'master'

Provide unit test driver

Closes #1722

See merge request isc-projects/bind9!3554

6 years agoProvide unit test driver
Michal Nowak [Fri, 3 Apr 2020 09:26:02 +0000 (11:26 +0200)] 
Provide unit test driver

This adds a unit test driver for BIND with Automake.  It runs the unit
test program provided as its sole command line argument and then looks
for a core dump generated by that test program.  If one is found, the
driver prints the backtrace into the test log.

6 years agoMerge branch 'michal/do-not-install-python-packages-in-gitlab-ci-jobs' into 'master'
Michał Kępień [Thu, 21 May 2020 09:36:47 +0000 (09:36 +0000)] 
Merge branch 'michal/do-not-install-python-packages-in-gitlab-ci-jobs' into 'master'

Do not install Python packages in GitLab CI jobs

See merge request isc-projects/bind9!3555

6 years agoAdd py.test-3 to the list of tested pytest names
Michał Kępień [Thu, 21 May 2020 09:33:11 +0000 (11:33 +0200)] 
Add py.test-3 to the list of tested pytest names

Some operating systems (e.g. CentOS, OpenBSD) install the main pytest
script as "py.test-3".  Add that name to the list of names passed to
AC_PATH_PROGS() in order for pytest to be properly detected on a broader
range of operating systems.

6 years agoDo not use f-strings in Python system tests
Michał Kępień [Thu, 21 May 2020 09:33:11 +0000 (11:33 +0200)] 
Do not use f-strings in Python system tests

Use str.format() instead of f-strings in Python system tests to enable
them to work on Python 3 versions older than 3.6 as the latter is not
available on some operating systems used in GitLab CI that are still
actively supported (CentOS 6, Debian 9, Ubuntu 16.04).

6 years agoDo not install doc build tools in GitLab CI jobs
Michał Kępień [Thu, 21 May 2020 09:33:11 +0000 (11:33 +0200)] 
Do not install doc build tools in GitLab CI jobs

As documentation building utilities are now all included in operating
system images used in GitLab CI, do not install them in each "docs" CI
job any more.

6 years agoDo not install Python packages in GitLab CI jobs
Michał Kępień [Thu, 21 May 2020 09:33:11 +0000 (11:33 +0200)] 
Do not install Python packages in GitLab CI jobs

As Python QA tools, BIND system test prerequisites, and documentation
building utilities are now all included in operating system images used
in GitLab CI, do not use pip for installing them in each CI job any
more.

6 years agoMerge branch 'michal/update-release-checklist' into 'master'
Michał Kępień [Thu, 21 May 2020 07:15:10 +0000 (07:15 +0000)] 
Merge branch 'michal/update-release-checklist' into 'master'

Update release checklist

See merge request isc-projects/bind9!3566

6 years agoUpdate release checklist
Michał Kępień [Thu, 21 May 2020 07:14:27 +0000 (09:14 +0200)] 
Update release checklist

  - First merge release branches to maintenance branches, then push
    tags.  If tags are pushed first and a given set of releases contains
    security fixes, the push will be rejected by a server-side Git hook.

  - Update ABI check job name.

  - Add an item for updating QA tools used in GitLab CI after each
    public release.

6 years agoMerge branch '1854-extend-loop-limit-by-1' into 'master'
Mark Andrews [Thu, 21 May 2020 00:28:45 +0000 (00:28 +0000)] 
Merge branch '1854-extend-loop-limit-by-1' into 'master'

Resolve "Extend loop limit by 1."

Closes #1854

See merge request isc-projects/bind9!3548