Commit Graph
27551 Commits
Author SHA1 Message Date
Evan Hunt 3cf4ecf177 more reliable method for killing "ans" servers on windows
as perl and python are both native to cygwin, we don't want to use
the "kill -f" option to terminate them.
2019-01-25 10:43:10 -08:00
Evan Hunt b5f8d60565 update ifconfig.bat with current test interfaces
the addresses set up in ifconfig.bat were out of sync with the
ones in ifconfig.sh
2019-01-25 10:43:10 -08:00
Evan Hunt 47ef534511 update conf.sh.win32 test list
- the test lists in conf.sh.in and conf.sh.win32 were out of sync
2019-01-25 10:43:10 -08:00
Evan Hunt fe901beade Merge branch '560-dnssec-keymgr-root-v9_12' into 'v9_12'
improve handling of trailing dots in dnssec-keymgr and dnssec-coverage

See merge request isc-projects/bind9!1394
2019-01-24 17:23:36 -05:00
Evan Hunt 4f06d65e38 improve handling of trailing dots in dnssec-keymgr and dnssec-coverage
- mishandling of trailing dots caused bad behavior with the
  root zone or names like "example.com."
- fixing this exposed an error in dnssec-coverage caused the
  wrong return value if there were KSK errors but no ZSK errors
- incidentally silenced the dnssec-keygen output in the coverage
  system test

(cherry picked from commit 1ccf4e6c16)
2019-01-24 13:51:53 -08:00
Evan Hunt 0c2ba7d303 Merge branch 'each-dead-code-cleanup-v9_12' into 'v9_12'
remove dead RPZ code

See merge request isc-projects/bind9!1393
2019-01-24 15:05:12 -05:00
Matthijs MekkingandEvan Hunt a5c834b49b Remove dead code
(cherry picked from commit 7c13f1779e)
2019-01-24 12:04:32 -08:00
Evan Hunt 166a3aad4d Merge branch 'each-set-magic-last-v9_12' into 'v9_12'
set the magic number at the end of dns_dt_create()

See merge request isc-projects/bind9!1386
2019-01-23 14:15:04 -05:00
Evan Hunt 950023d36e set the magic number at the end of dns_dt_create()
(cherry picked from commit c29abd307c)
2019-01-23 11:13:32 -08:00
Evan Hunt 4c0460f143 Merge branch '117-running-dnssec-keymgr-with-old-keys-inactivates-deletes-them-immediately-v9_12' into 'v9_12'
Resolve "Running dnssec-keymgr with old keys inactivates/deletes them immediately"

See merge request isc-projects/bind9!1379
2019-01-22 13:44:42 -05:00
Mark AndrewsandEvan Hunt 15b4240764 introducing keymgr need to preserve functionality
(cherry picked from commit 083b730ec7)
2019-01-22 10:22:10 -08:00
Evan Hunt b8cb9077e2 Merge branch '630-dont-enable-fips-mode-on-windows-v9_12' into 'v9_12'
Disable FIPS mode on Windows

See merge request isc-projects/bind9!1375
2019-01-21 17:01:46 -05:00
Ondřej SurýandEvan Hunt 8633be8269 Disable FIPS mode on Windows
(cherry picked from commit 6aae193ded)
2019-01-21 14:01:24 -08:00
Mark Andrews 1ef4bc4dd1 Merge branch 'each-remove-fprintf-v9_12' into 'v9_12'
clean up debugging fprintf

See merge request isc-projects/bind9!1369
2019-01-21 01:12:44 -05:00
Evan HuntandMark Andrews bc912227d6 removed a debugging fprintf
(cherry picked from commit 6c478a3dae)
2019-01-21 17:00:57 +11:00
Michał Kępień d1727a02a2 Merge branch 'michal/gitlab-ci-cleanup-v9_12' into 'v9_12'
[v9_12] GitLab CI cleanup

See merge request isc-projects/bind9!1361
2019-01-18 09:42:38 -05:00
Michał Kępień cb400e5a76 Add comments
(cherry picked from commit a27b9dff18)
2019-01-18 15:26:50 +01:00
Michał Kępień c62a3f85ac Unify YAML style used throughout .gitlab-ci.yml
(cherry picked from commit a61bf39688)
2019-01-18 15:26:50 +01:00
Michał Kępień dfa5759b41 Tweak pipeline triggering settings
In an attempt to ensure that:

  - all important changes to repository contents are tested,
  - pipelines are not automatically created for every single push,
  - some flexibility is allowed for corner cases,

change pipeline triggering settings so that:

  - full build & test pipelines are only automatically created for merge
    requests and tags (both for creation and updates),

  - pipelines for other repository changes (e.g. pushes to arbitrary
    branches) can only be created manually, using GitLab's web
    interface,

  - merging a merge request only causes jobs pushing the updated ARM to
    GitLab Pages to be run (as semi-linear Git history is enforced and
    thus testing a MR is identical to testing the target branch
    post-merge in terms of code),

  - repository synchronization does not trigger duplicate pipelines in
    projects which are set as mirroring targets.

(cherry picked from commit 1c8c1815e4)
2019-01-18 15:26:50 +01:00
Michał Kępień 7b8a5b4c00 Reorder job definitions
Group jobs by build type and operating system to make the layout of
.gitlab-ci.yml more consistent and improve locality of YAML references.

(cherry picked from commit a1dbec3b08)
2019-01-18 15:26:49 +01:00
Michał Kępień 8c72ed35bc Use a common naming pattern for all jobs
Make sure all jobs are named using the following pattern:

    [<job-type>:]<build-type>:<system>:<architecture>

where specifying <job-type> is optional for "precheck" and "build" jobs.

This should make it easier to quickly recognize:

  - what kind of actions are performed by each job,
  - which BIND build flavor is used by each job,
  - which operating system image is used by each job.

(cherry picked from commit 1fe432c6c3)
2019-01-18 15:26:49 +01:00
Michał Kępień bba30accad Define a template for precheck jobs
(cherry picked from commit e0b5dd67a1)
2019-01-18 15:26:49 +01:00
Michał Kępień 30e5f81a10 Merge install_test_job template into the job definition as it is only used once
(cherry picked from commit de1948398d)
2019-01-18 15:26:49 +01:00
Michał Kępień 82ba1f577f Shorten Docker image definitions by using YAML anchors for runner tags
While we are at it, drop use of the "docker" tag since all BIND CI jobs
are currently run inside Docker containers.

(cherry picked from commit 7dd329d385)
2019-01-18 15:26:49 +01:00
Michał Kępień c15e6fdb71 Build ARM in the build stage
There is no need to build BIND binaries before building docs and thus
the job building the current version of the ARM can be moved to the
build stage of CI.

(cherry picked from commit 41a67147fe)
2019-01-18 15:26:49 +01:00
Michał Kępień 1920b8234e Replace double colon with a single colon
(cherry picked from commit 75b26d3f50)
2019-01-18 15:26:49 +01:00
Michał Kępień 0a9b7014a3 Remove unused parts of .gitlab-ci.yml
Remove the following from .gitlab-ci.yml:

  - unused variable definitions,
  - unused Docker image definitions,
  - commands which have no effect,
  - sections which were commented out.

(cherry picked from commit 9893bd3246)
2019-01-18 15:26:49 +01:00
Michał Kępień 5b67bd4855 Merge branch '781-fix-python-check-in-configure-script-v9_12' into 'v9_12'
[v9_12] Resolve "configure script in BIND 9.13.5 release fails to detect python"

See merge request isc-projects/bind9!1362
2019-01-18 09:22:47 -05:00
Ondřej SurýandMichał Kępień 33873abe16 Add some combinations of --with-python=<path>/--with-python/--without-python to GitLab CI
(cherry picked from commit 99cf0faec0)
2019-01-18 15:15:38 +01:00
Ondřej SurýandMichał Kępień 597e3d0b36 When --with-python is given to configure, use default search list for python binaries instead of 'yes'
(cherry picked from commit 3951cb053b)
2019-01-18 15:14:43 +01:00
Evan Hunt 41c30d7934 Merge branch '752-disable-forwarders-when-priming-v9_12' into 'v9_12'
If possible don't use forwarders when priming the resolver.

See merge request isc-projects/bind9!1356
2019-01-16 20:16:25 -05:00
Witold KręcickiandEvan Hunt f8963ad70e If possible don't use forwarders when priming the resolver.
If we try to fetch a record from cache and need to look into
hints database we assume that the resolver is not primed and
start dns_resolver_prime(). Priming query is supposed to return
NSes for "." in ANSWER section and glue records for them in
ADDITIONAL section, so that we can fill that info in 'regular'
cache and not use hints db anymore.
However, if we're using a forwarder the priming query goes through
it, and if it's configured to return minimal answers we won't get
the addresses of root servers in ADDITIONAL section. Since the
only records for root servers we have are in hints database we'll
try to prime the resolver with every single query.

This patch adds a DNS_FETCHOPT_NOFORWARD flag which avoids using
forwarders if possible (that is if we have forward-first policy).
Using this flag on priming fetch fixes the problem as we get the
proper glue. With forward-only policy the problem is non-existent,
as we'll never ask for root server addresses because we'll never
have a need to query them.

Also added a test to confirm priming queries are not forwarded.

(cherry picked from commit b49310ac06)
2019-01-16 16:32:43 -08:00
Mark Andrews be7ba5fbe2 Merge branch 'pkcs11-pubattr-check-v9_12' into 'v9_12'
Make sure null atributes are never used

See merge request isc-projects/bind9!1354
2019-01-16 19:09:02 -05:00
Petr MenšíkandMark Andrews f1fe423aaa Make sure null atributes are never used
Add INSIST to pubattr fetching where null might occur in therory. Make
sure null is never dereferenced.

(cherry picked from commit fe9ef0d9f5)
2019-01-17 09:00:27 +11:00
Evan Hunt 505528204e Merge branch '792-bind9-doesn-t-tcp-retransmit-v9_12' into 'v9_12'
Resolve "bind9 doesn't tcp retransmit"

See merge request isc-projects/bind9!1348
2019-01-15 20:45:00 -05:00
Mark AndrewsandEvan Hunt a9ceb01fde adjust timeout to allow for ECN negotiation failures
(cherry picked from commit dadb924be7)
2019-01-15 17:29:48 -08:00
Ondřej Surý 212a05f8c0 Merge branch 'ondrej/fix-race-condition-in-dnstap-v9_12' into 'v9_12'
(v9_12) Fix race condition in cleanup part of dns_dt_create()

See merge request isc-projects/bind9!1344
2019-01-15 04:03:13 -05:00
Witold KręcickiandOndřej Surý 51276f1c36 Add CHANGES entry for GL!1323
(cherry picked from commit 4b5337e06b)
2019-01-15 09:44:14 +01:00
Ondřej Surý e92bca0222 Fix race condition in cleanup part of dns_dt_create()
(cherry picked from commit 482dd7eed3)
2019-01-15 09:43:10 +01:00
Mark Andrews af26282fa4 Merge branch '590-win32-sample-gai-c-should-call-wsastartup-v9_12' into 'v9_12'
Resolve "[Win32] sample-gai.c should call WSAStartup()"

See merge request isc-projects/bind9!1342
2019-01-15 00:51:12 -05:00
Mark Andrews e9025653a3 add CHANGES
(cherry picked from commit 4500d9e91a)
2019-01-15 16:29:05 +11:00
Mark Andrews 6cb48b7a41 ensure that WSAStartup is called before getservbyname
(cherry picked from commit ac01359871)
2019-01-15 16:29:04 +11:00
Evan Hunt c780320e81 Merge branch 'u/fanf2/rndc-managed-keys-v9_12' into 'v9_12'
Fix a few cosmetic issues with `rndc managed-keys`

See merge request isc-projects/bind9!1339
2019-01-14 20:10:43 -05:00
Mark AndrewsandEvan Hunt 22b77f45b7 add multi-view server and tests
(cherry picked from commit 7122b5786d)
2019-01-14 16:59:02 -08:00
Mark AndrewsandEvan Hunt 2d3f159707 add CHANGES note 2019-01-14 16:17:10 -08:00
Tony FinchandEvan Hunt bc984ace12 Fix a few cosmetic issues with rndc managed-keys
The handling of class and view arguments was broken, because the code
didn't realise that next_token() would overwrite the class name when
it parsed the view name. The code was trying to implement a syntax
like `refresh [[class] view]`, but it was documented to have a syntax
like `refresh [class [view]]`. The latter is consistent with other rndc
commands, so that is how I have fixed it.

Before:

$ rndc managed-keys refresh in rec
rndc: 'managed-keys' failed: unknown class/type
unknown class 'rec'

After:

$ rndc managed-keys refresh in rec
refreshing managed keys for 'rec'

There were missing newlines in the output from `rndc managed-keys
refresh` and `rndc managed-keys destroy`.

Before:

$ rndc managed-keys refresh
refreshing managed keys for 'rec'refreshing managed keys for 'auth'

After:

$ rndc managed-keys refresh
refreshing managed keys for 'rec'
refreshing managed keys for 'auth'

(cherry picked from commit 6a3b851f72)
2019-01-14 16:16:29 -08:00
Evan Hunt f21d6327dd Merge branch 'fix-dnssec-test-v9_12' into 'v9_12'
b/t/s/dnssec/tests.sh: Cleanup showprivate() function

See merge request isc-projects/bind9!1336
2019-01-14 16:06:28 -05:00
Evan Hunt b241dc58ec b/t/s/dnssec/tests.sh: Cleanup showprivate() function 2019-01-14 12:30:49 -08:00
Evan Hunt cb142d39eb Merge branch 'each-fix-dnssec-test-error-v9_12' into 'v9_12'
DNSSEC test error

See merge request isc-projects/bind9!1333
2019-01-13 21:32:43 -05:00
Evan Hunt 0b4dca553d fix testing errors
- the checkprivate function in the dnssec test set ret=0, erasing
  results from previous tests and making the test appear to have passed
  when it shouldn't have
- checkprivate needed a delay loop to ensure there was time for all
  private signing records to be updated before the test

(cherry picked from commit 82e83d5dc7)
2019-01-13 18:22:44 -08:00