Commit Graph

7408 Commits

Author SHA1 Message Date
Evan Hunt
010db17e15 add a regression test for default allow-recursion settings 2018-06-14 14:48:46 +02:00
Evan Hunt
fae03da5cb allow-recursion could incorrectly inherit from the default allow-query 2018-06-14 14:48:46 +02:00
Mark Andrews
7e4e19c2ad Pull out the saving of the zone cut into a separate function
(cherry picked from commit ec75a07023)
2018-06-13 13:11:16 +02:00
Michał Kępień
b3bee6cd37 Treat records below a DNAME as out-of-zone data
DNAME records indicate bottom of zone and thus no records below a DNAME
should be DNSSEC-signed or included in NSEC(3) chains.  Add a helper
function, has_dname(), for detecting DNAME records at a given node.
Prevent signing DNAME-obscured records.  Check that DNAME-obscured
records are not signed.

(cherry picked from commit 9a4145168c)
2018-06-13 13:11:13 +02:00
Evan Hunt
535aa0e034 complete strtok fix
(cherry picked from commit 74c3b9d3b2)
2018-06-09 23:04:47 -07:00
Evan Hunt
212ed88323 use strtok() instead of strtok_r() in command line processing
(cherry picked from commit 1734f1b3b9)
2018-06-09 22:37:18 -07:00
Evan Hunt
c31d32434d ensure we try to validate glue records so RRSIG TTLs will be capped 2018-06-08 11:43:20 -07:00
Mukund Sivaraman
ad7141d2ec Add system test
(cherry picked from commit 303391ea41)
2018-06-08 11:05:20 -07:00
Mukund Sivaraman
6cd4cb3d2a Don't validate non-pending glue when adding to the additional section
(cherry picked from commit 31bd3147d1)
2018-06-08 11:05:19 -07:00
Mark Andrews
18700f66be Add support for marking a option as deprecated.
(cherry picked from commit befff9452c)
(cherry picked from commit 99ac87cac4)
2018-06-08 16:08:39 +10:00
Mark Andrews
0c1fd3b8e1 add duplicate signature test
(cherry picked from commit 0db5b087ed)
(cherry picked from commit 1783fa5aba)
(cherry picked from commit 1710e5cfca)
(cherry picked from commit abbfbeffa6)
2018-06-06 17:55:50 +10:00
Mark Andrews
eb69786ff6 add support -T sigvalinsecs
(cherry picked from commit 87a3dc8ab9)
(cherry picked from commit 69340b5ac5)
(cherry picked from commit dd05287a31)
(cherry picked from commit ba76a92338)
2018-06-06 17:51:35 +10:00
Mark Andrews
af6deb25ab move -T parsing to its own function
(cherry picked from commit b491ceeb50)
2018-06-06 15:21:09 +10:00
Evan Hunt
1e56d78c6e use "ip" on linux, falling back to "ifconfig" when it isn't available
(cherry picked from commit d7c5400798)
(cherry picked from commit 3e1a0c2b62)
2018-06-05 21:51:05 -07:00
Evan Hunt
b5dc325065 expand address range in ifconfig.sh to include more than one subnet
(cherry picked from commit 41b29a436b)
(cherry picked from commit e4487b160c)
2018-06-05 21:51:03 -07:00
Evan Hunt
a37706ebb7 add prerequisite check
(cherry picked from commit e229ae6999)
(cherry picked from commit a5ac84370c)
2018-06-04 21:38:07 -07:00
Mark Andrews
9aba5ca84b add system test for root-key-sentinel
(cherry picked from commit a23b305e6b)
(cherry picked from commit b9e6b124aa)
(cherry picked from commit 9448c4fd21)
(cherry picked from commit 8f139956ba)
2018-06-04 21:38:04 -07:00
Mark Andrews
3890b5d7ba add named.conf option root-key-sentinel
(cherry picked from commit 68e9315c7d)
(cherry picked from commit ee763ef281)
(cherry picked from commit 9a5f308287)
(cherry picked from commit 468a3bcdac)
2018-06-04 21:30:33 -07:00
Mark Andrews
2f20e10942 detect and process root-key-sentinel labels.
(cherry picked from commit 8fc9f64df9)
(cherry picked from commit 7111eff80c)
(cherry picked from commit afa97c6552)
(cherry picked from commit a624e884d4)
2018-06-04 20:06:20 -07:00
Mukund Sivaraman
2420b8f5fc Don't insert 2nd space between NSEC3 nexthash and typemap fields
(cherry picked from commit d4ea1edd2c)
2018-06-04 13:34:46 +10:00
Evan Hunt
ac7b05c231 fix openbsd color-display problem in system test output
(cherry picked from commit 1e31fdb76d)
2018-05-25 13:02:01 -07:00
Mark Andrews
26e0694aee add HOME.ARPA to the list of empty zones
(cherry picked from commit 10dd0b3efe)
2018-05-23 11:30:55 +10:00
Paul Hoffman
33be1f76cb add -t type### description to the dig man page
(cherry picked from commit 2d957c6b9f)
(cherry picked from commit d742db122e)
(cherry picked from commit efcad103e7)
2018-04-27 00:01:41 -07:00
Evan Hunt
acabf5a689 Merge branch '159-improve-handling-of-inline-signed-zones-with-missing-signing-keys' into 'v9_9'
Improve handling of inline signed zones with missing signing keys

Closes #159

See merge request isc-projects/bind9!133
2018-04-25 12:24:51 -07:00
Michał Kępień
8b0f7f1b8d Apply raw zone deltas to yet unsigned secure zones
When inline signing is enabled for a zone without creating signing keys
for it, changes subsequently applied to the raw zone will not be
reflected in the secure zone due to the dns_update_signaturesinc() call
inside receive_secure_serial() failing.  Given that an inline zone will
be served (without any signatures) even with no associated signing keys
being present, keep applying raw zone deltas to the secure zone until
keys become available in an attempt to follow the principle of least
astonishment.

(cherry picked from commit 6acf326969)
(cherry picked from commit 8a58a60772)
(cherry picked from commit fcbdeed802)
2018-04-25 12:24:36 -07:00
Evan Hunt
2515c9d6ef add header guard when generating bind.keys.h
(cherry picked from commit bfbe6925df)
(cherry picked from commit f7755696a5)
2018-04-22 13:00:47 -07:00
Evan Hunt
ade69509e6 change "key" to "tsigkey" to silence "short global name" warning
(cherry picked from commit 0cc7aa250e)
(cherry picked from commit 9d99bf0f4b)
2018-04-22 12:59:06 -07:00
Evan Hunt
54f07c3b1a fix shadowed global variables
(cherry picked from commit 9ca3ab1168)
(cherry picked from commit 694a1486ca)
2018-04-22 12:59:06 -07:00
Evan Hunt
0e2b568b69 Alter distclean rule to prevent recursing into the same directory twice
Commit f87e0c03ee removed the "system" directory from the TESTDIRS
variable in bin/tests/Makefile.in in an attempt to fix "make distclean"
which was broken since commit 0d784de16a.  However, this change
prevented any system tests from being run when "make test" is invoked.

We now put it back into both SUBDIRS and TESTDIRS, but with a modified
rule to check for the existence of a Makefile in each subdirectory before
trying to run make there. This prevents "make distclean" from trying to
run again in a directory where it's already been run.

(cherry picked from commit 93ee6b8a22)
2018-04-10 20:05:59 -07:00
Mark Andrews
1890455159 system should only be in SUBDIRS
(cherry picked from commit 342e146fe3)
2018-04-06 13:27:45 +10:00
Evan Hunt
5a21193fdd update file headers 2018-03-15 11:30:37 -07:00
Ondřej Surý
f1736dd4bc Use /* FALLTHROUGH */ comment instead of __attribute__ ((fallthrough)) for consistency 2018-03-15 11:38:32 +01:00
Ondřej Surý
a5ea870265 Add __attribute__ ((fallthrough)); in place of implicit fallthrough to satisfy gcc 7 -Wextra 2018-03-15 09:30:18 +01:00
Ondřej Surý
9f830be501 update file headers to remove copyright years 2018-03-15 09:09:15 +01:00
Evan Hunt
a6e5d9a2ca Merge branch 'clean-bin-tests-v9_9' into 'v9_9'
clean up bin/tests, convert unit tests to ATF

Closes #115

See merge request isc-projects/bind9!93
2018-03-09 23:52:26 -08:00
Evan Hunt
e6c446bfba final cleanup
- update Kyuafiles to match Atffiles
- copyrights
- CHANGES note

(cherry picked from commit 86e00cbb71)
(cherry picked from commit 80834b5b90)
(cherry picked from commit 442c1530a3)
(cherry picked from commit 6fe8188cc3)
2018-03-09 23:35:02 -08:00
Evan Hunt
40d0aab21a reduce race risk in parallel builds
(cherry picked from commit 74347f4a55)
(cherry picked from commit 7f4e62d902)
(cherry picked from commit ade4face27)
(cherry picked from commit 544bb12a01)
2018-03-09 23:24:17 -08:00
Evan Hunt
2591c077f0 migrate t_dst signature test to lib/dns/tests/dst_test
(cherry picked from commit a4ebe83cdb)
(cherry picked from commit 4439c471d1)
(cherry picked from commit 57a5820dcc)
(cherry picked from commit dbc21e4393)
2018-03-09 23:22:04 -08:00
Evan Hunt
a11252dbbc migrate t_db to lib/dns/tests/db_test
(cherry picked from commit f58ac8ada3)
(cherry picked from commit 56da937399)
(cherry picked from commit d3518e57b1)
(cherry picked from commit c5dbc0b727)
2018-03-09 23:20:11 -08:00
Evan Hunt
28d62b0a31 migrate t_names to lib/dns/tests/name_test
(cherry picked from commit 8ecf69ef7b)
(cherry picked from commit aefad99e1e)
(cherry picked from commit b2fef3b438)
(cherry picked from commit 2893e982ed)
2018-03-09 23:19:11 -08:00
Evan Hunt
20da3cd7e7 migrate t_rbt to lib/dns/tests/rbt_test
(cherry picked from commit 109546cbda)
(cherry picked from commit c505afd183)
(cherry picked from commit 42fa3932ab)
(cherry picked from commit 4c6818ff8e)
2018-03-09 23:17:36 -08:00
Evan Hunt
a73b843515 migrate t_tasks to lib/isc/tests/task_test
(cherry picked from commit c6c1e99252)
(cherry picked from commit 88bfe56876)
(cherry picked from commit 38f9cddcad)
(cherry picked from commit 430d35e332)
2018-03-09 23:15:10 -08:00
Evan Hunt
48c8aca49b migrate t_resolver to lib/dns/tests/resolver_test
(cherry picked from commit d80825c40b)
(cherry picked from commit 30e157f6e4)
(cherry picked from commit 5dd25f2285)
(cherry picked from commit 29474940ea)
2018-03-09 23:13:44 -08:00
Evan Hunt
6bd3de3615 migrate t_timers to lib/isc/tests/timer_test
(cherry picked from commit e2b8699df9)
(cherry picked from commit efccdad0ea)
(cherry picked from commit 274ee0b425)
(cherry picked from commit 5b477b2aa4)
2018-03-09 23:11:47 -08:00
Evan Hunt
a6dcb138b5 migrate t_atomic to lib/isc/tests/atomic_test
(cherry picked from commit 874e2fc70c)
(cherry picked from commit c7fa56e8db)
(cherry picked from commit 492e19d6ec)
(cherry picked from commit 1200d6f072)
2018-03-09 23:09:54 -08:00
Evan Hunt
d446bbb815 migrate t_mem to lib/isc/tests/mem_test
(cherry picked from commit 979f054702)
(cherry picked from commit af48544b75)
(cherry picked from commit 814cd21e22)
(cherry picked from commit 7014d0994b)
2018-03-09 23:07:40 -08:00
Evan Hunt
00bc2c2355 migrate t_net to lib/isc/tests
(cherry picked from commit 05b7251d51)
(cherry picked from commit af0c9b2cee)
(cherry picked from commit faedafd2b4)
(cherry picked from commit 67b63a3e10)
2018-03-09 23:03:56 -08:00
Evan Hunt
6b970316c8 migrate t_sockaddr to lib/isc/tests
(cherry picked from commit 62f650078a)
(cherry picked from commit fadb93cf43)
(cherry picked from commit 323e2f7152)
(cherry picked from commit b392c18f6e)
2018-03-09 23:03:11 -08:00
Evan Hunt
e54d53e8fb remove hashes test (duplicates lib/isc/tests/hash_test)
(cherry picked from commit 6ad1a042bc)
(cherry picked from commit e686b9c297)
(cherry picked from commit c644427b77)
(cherry picked from commit a0a3a8e794)
2018-03-09 23:01:44 -08:00
Evan Hunt
d50b40b135 remove master test (duplicates lib/isc/tests/master_test)
(cherry picked from commit 6717f31e10)
(cherry picked from commit 36d08442bc)
(cherry picked from commit ae39f25a10)
(cherry picked from commit 83a5d8e17e)
2018-03-09 23:00:47 -08:00