Commit graph

836 commits

Author SHA1 Message Date
Mark Andrews
cae75cd6e3 use %u instead of %d 2018-02-16 16:51:21 +11:00
Mark Andrews
01bd446d25 use %u rather than %d; pass a unsigned int pointer 2018-02-16 15:24:30 +11:00
Mark Andrews
7d3f4a80aa fix meger error
(cherry picked from commit f6b7ff7280)
2018-02-09 12:20:55 +11:00
Mark Andrews
1c36fb5d41 4889. [func] Warn about the use of old root keys without the new
root key being present.  Warn about dlv.isc.org's
                        key being present. Warn about both managed and
                        trusted root keys being present. [RT #43670]

(cherry picked from commit baef0ca988)
2018-02-09 12:13:52 +11:00
Evan Hunt
1f41fde488 [v9_10] fix merge error
(cherry picked from commit cdda779d07)
2018-01-18 13:29:15 -08:00
Evan Hunt
d75441a500 [v9_10] normalize rndc on/off commands
4867.	[cleanup]	Normalize rndc on/off commands (validation and
			querylog) so they accept the same synonyms
			for on/off (yes/no, true/false, enable/disable).
			Thanks to Tony Finch. [RT #47022]

(cherry picked from commit cf8f4241e7)
(cherry picked from commit 4221d9cd1d)
2018-01-18 10:52:39 -08:00
Tinderbox User
0df4e44735 update copyright notice / whitespace 2018-01-04 23:46:47 +00:00
Mark Andrews
c975f0cc5c 4856. [bug] 'rndc zonestatus' reported the wrong underlying type
for a inline slave zone. [RT #46875]
2018-01-04 10:53:11 +11:00
Evan Hunt
9dfff4e378 [v9_10] fix "allow-transfer" inheritance and clean up ACL configuration
4836.	[bug]		Zones created using "rndc addzone" could
			temporarily fail to inherit an "allow-transfer"
			ACL that had been configured in the options
			statement. [RT #46603]

(cherry picked from commit e197a2bd15)
(cherry picked from commit f53e0bda46)
2017-11-30 13:13:18 -08:00
Mark Andrews
89f63e9e10 fix merge error
(cherry picked from commit 48865bf022)
2017-11-01 11:58:20 +11:00
Mark Andrews
9f56e47984 4804. [port] win32: access() does not work on directories as
required by POSIX.  Supply a alternative in
                        isc_file_isdirwritable. [RT #46394]
2017-11-01 09:43:11 +11:00
Mark Andrews
4f4552b9fd Add system tests and remove redundent logging from:
4801.   [func]          'dnssec-lookaside auto;' and 'dnssec-lookaside .
                        trust-anchor dlv.isc.org;' now elicit warnings rather
                        than being fatal configuration errors. [RT #46410]

(cherry picked from commit f5e1b555c5)
2017-10-30 08:17:49 +11:00
Evan Hunt
33ab321a97 [v9_10] clean up a redundancy
4777.	[cleanup]	Removed a redundant call to configure_view_acl().
			[RT #46369]

(cherry picked from commit 89636d8f30)
(cherry picked from commit a06198688f)
2017-10-23 11:13:11 -07:00
Evan Hunt
b6b2b0b9b5 [v9_10] require writable managed keys directory
4769.	[bug]		Enforce the requirement that the managed keys
			directory (specified by "managed-keys-directory",
			and defaulting to the working directory if not
			specified) must be writable. [RT #46077]

(cherry picked from commit 56e30ebae6)
2017-10-17 21:35:19 -07:00
Mark Andrews
8360489f0f 4754. [bug] dns_zone_setview needs a two stage commit to properly
handle errors. [RT #45841]

(cherry picked from commit 2732d4922c)
2017-10-05 16:06:07 +11:00
Evan Hunt
e43e479d5b [v9_10] de-DLV
4749.	[func]		The ISC DLV service has been shut down, and all
			DLV records have been removed from dlv.isc.org.
			- Removed references to ISC DLV in documentation
			- Removed DLV key from bind.keys
			- No longer use ISC DLV by default in delv
			[RT #46155]
2017-10-03 00:52:58 -07:00
Mark Andrews
825f4a4869 4748. [cleanup] Sprintf to snprintf coversions. [RT #46132]
(cherry picked from commit a009d03a1a)
2017-10-03 14:55:57 +11:00
Mark Andrews
1f2ee1b48c 4744. [bug] Suppress trust-anchor-telementry queries if
validation is disabled. [RT #46131]

(cherry picked from commit dc0a792d94)
2017-09-29 09:34:26 +10:00
Mark Andrews
755e74bb28 4739. [cleanup] Address clang static analysis warnings. [RT #45952]
(cherry picked from commit f9f3f20d2d)
2017-09-27 13:00:57 +10:00
Evan Hunt
a6184ac6ee [v9_10] backport rpz tweaks
4713.	[cleanup]	Minor revisions to RPZ code to reduce
			differences with the development branch. [RT #46037]

(cherry picked from commit 68d7ff133c)
2017-09-26 11:03:26 -07:00
Evan Hunt
e0ddfb109e [master] cleanup strcat/strcpy
4722.	[cleanup]	Clean up uses of strcpy() and strcat() in favor of
			strlcpy() and strlcat() for safety. [RT #45981]

(cherry picked from commit 114f95089c)
(cherry picked from commit 7cd594b842)
2017-09-13 00:18:44 -07:00
Mark Andrews
5049d09bca 4624. [bug] Check isc_mem_strdup results in dns_view_setnewzones.
[RT #45210]
2017-05-11 20:31:03 +10:00
Evan Hunt
f6c22352fb [v9_10] fall back to builtin keys if bind.keys is empty
4570.	[cleanup]	named did not correctly fall back to the built-in
			initializing keys if the bind.keys file was present
			but empty. [RT #44531]
2017-02-04 00:43:05 -08:00
Tinderbox User
ff7d77ce73 update copyright notice / whitespace 2017-01-12 23:46:57 +00:00
Evan Hunt
809c79f42a [v9_10] more specific date for DLV shutdown warning 2017-01-12 09:11:51 -08:00
Tinderbox User
ad4e4b05f2 update copyright notice / whitespace 2016-12-28 23:52:29 +00:00
Mark Andrews
b92f7c2245 4541. [bug] rndc addzone should properly reject non master/slave
zones. [RT #43665]

(cherry picked from commit e20db12918)
2016-12-28 10:59:23 +11:00
Mark Andrews
a1f98389a3 4539. [bug] Referencing a nonexistant zone with rpz could lead
to a assertion failure when configuring. [RT #43787]

(cherry picked from commit 762c4fc5a8)
2016-12-27 09:29:32 +11:00
Evan Hunt
c549716739 [v9_10] log as error if entropy unavailable
4521.	[cleanup]	Log it as an error if an entropy source is not
			found and there is no fallback available. [RT #43659]

(cherry picked from commit 6bdb70057d)
2016-11-29 11:30:52 -08:00
Evan Hunt
17de0f290c [v9_10] error on bad parameter to 'rndc dumpdb'
4433.	[cleanup]	Report an error when passing an invalid option or
			view name to "rndc dumpdb". [RT #42958]

(cherry picked from commit c38d989fdd)
2016-08-11 16:12:00 -07:00
Francis Dupont
7a4d54f6c6 Merged rt42840_10 (tcp-only backport) 2016-08-11 14:28:22 +02:00
Mark Andrews
aa1a7e1e58 4424. [experimental] Named now sends _ta-XXXX.<trust-anchor>/NULL queries
to provide feedback to the trust-anchor administrators
                        about how key rollovers are progressing as per
                        draft-ietf-dnsop-edns-key-tag-02.  This can be
                        disabled using 'trust-anchor-telemetry no;'.
                        [RT #40583]

(cherry picked from commit f20179857a)
2016-07-22 20:16:59 +10:00
Mark Andrews
55827dd5ca Visual Studio 2005 doesn't like named elements, construct addr using isc_netaddr_fromin6 2016-07-14 11:32:22 +10:00
Tinderbox User
390881b8d4 update copyright notice / whitespace 2016-07-11 23:48:11 +00:00
Mark Andrews
8db11cd77b dns_iptable_addprefix2 -> dns_iptable_addprefix
(cherry picked from commit 9b93305605)
2016-07-11 18:40:58 +10:00
Mark Andrews
c061a3d842 4409. [bug] DNS64 should exlude mapped addresses by default when
a exclude acl is not defined. [RT #42810]
2016-07-11 14:16:15 +10:00
Evan Hunt
707bcb08a7 [v9_10] log message when using ISC DLV
4352.	[cleanup]	The ISC DNSSEC Lookaside Validation (DLV) service
			is scheduled to be disabled in 2017.  A warning is
			now logged when named is configured to use it,
			either explicitly or via "dnssec-lookaside auto;"
			[RT #42207]
2016-05-04 14:38:01 -07:00
Mukund Sivaraman
0b46608d6e Check that configured view class isn't a meta class (#41572)
(cherry picked from commit 0c29904b27)
2016-02-08 14:01:05 +05:30
Evan Hunt
c66805df00 [v9_10] disallow delzone on policiy zones
4311.	[bug]		Prevent "rndc delzone" from being used on
			response-policy zones. [RT #41593]
2016-02-01 09:49:18 -08:00
Tinderbox User
752c7096b3 update copyright notice / whitespace 2016-01-25 23:45:53 +00:00
Mark Andrews
4eb865b8e0 use 0 not ISC_FALSE for dns_name_fromtext 2016-01-25 16:57:13 +11:00
Mark Andrews
401567a6a9 check ptr is not NULL
(cherry picked from commit 946e2cd351)
2015-11-11 22:34:33 +11:00
Evan Hunt
d1ce32ad70 [v9_10] allow spaces in rndc arguments
4256.	[bug]		Allow rndc command arguments to be quoted so as
			to allow spaces. [RT #36665]

(cherry picked from commit b513918481)
2015-11-05 21:11:17 -08:00
Mark Andrews
5c86b9d97e 4213. [bug] Don't reuse a cache across multiple classes.
[RT #40205]

(cherry picked from commit dd1bcab25c)
2015-09-17 14:52:15 +10:00
Tinderbox User
a704920204 update copyright notice / whitespace 2015-07-09 23:45:51 +00:00
Evan Hunt
83d0b1ab69 [v9_10] DDoS mitigation features
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.

			These options are not available by default;
			use "configure --enable-fetchlimit" (or
			--enable-developer) to include them in the build.

			See the ARM for details of these options. [RT #37125]
2015-07-08 22:55:31 -07:00
Mukund Sivaraman
17bb17af46 Print unsigned values for serial, etc. in rndc zonestatus output (#39854)
(cherry picked from commit b4e114e3cd)

Conflicts:
	CHANGES
	bin/named/server.c
2015-06-23 14:09:47 +05:30
Witold Krecicki
e71cc07e40 rndc reconfig reports configuration errors the same way rndc reload does [RT #39635] 2015-06-12 11:08:21 +02:00
Evan Hunt
34d5a93026 [v9_10] rpz_ver check was ineffective 2015-06-09 15:06:00 -07:00
Evan Hunt
04defaf799 [v9_10] address a possible policy update race
4120.	[bug]		A bug in RPZ could cause the server to crash if
			policy zones were updated while recursion was
			pending for RPZ processing of an active query.
			[RT #39415]

(cherry picked from commit 7e6cf6fc6e)
2015-05-19 15:56:40 -07:00