2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

213 Commits

Author SHA1 Message Date
Mark Andrews
0b2555e8cf Address use after free between view, resolver and nta.
Hold a weak reference to the view so that it can't go away while
nta is performing its lookups.  Cancel nta timers once all external
references to the view have gone to prevent them triggering new work.
2020-08-11 11:00:49 +10:00
Matthijs Mekking
46fcd927e7 rndc dnssec -checkds set algorithm
In the rare case that you have multiple keys acting as KSK and that
have the same keytag, you can now set the algorithm when calling
'-checkds'.
2020-08-07 11:26:09 +02:00
Matthijs Mekking
a25f49f153 Make 'parent-registration-delay' obsolete
With the introduction of 'checkds', the 'parent-registration-delay'
option becomes obsolete.
2020-08-07 11:26:09 +02:00
Matthijs Mekking
04d8fc0143 Implement 'rndc dnssec -checkds'
Add a new 'rndc' command 'dnssec -checkds' that allows the user to
signal named that a new DS record has been seen published in the
parent, or that an existing DS record has been withdrawn from the
parent.

Upon the 'checkds' request, 'named' will write out the new state for
the key, updating the 'DSPublish' or 'DSRemoved' timing metadata.

This replaces the "parent-registration-delay" configuration option,
this was unreliable because it was purely time based (if the user
did not actually submit the new DS to the parent for example, this
could result in an invalid DNSSEC state).

Because we cannot rely on the parent registration delay for state
transition, we need to replace it with a different guard. Instead,
if a key wants its DS state to be moved to RUMOURED, the "DSPublish"
time must be set and must not be in the future. If a key wants its
DS state to be moved to UNRETENTIVE, the "DSRemoved" time must be set
and must not be in the future.

By default, with '-checkds' you set the time that the DS has been
published or withdrawn to now, but you can set a different time with
'-when'. If there is only one KSK for the zone, that key has its
DS state moved to RUMOURED. If there are multiple keys for the zone,
specify the right key with '-key'.
2020-08-07 11:26:09 +02:00
Ondřej Surý
ce53db34d6 Add stale-cache-enable option and disable serve-stable by default
The current serve-stale implementation in BIND 9 stores all received
records in the cache for a max-stale-ttl interval (default 12 hours).

This allows DNS operators to turn the serve-stale answers in an event of
large authoritative DNS outage.  The caching of the stale answers needs
to be enabled before the outage happens or the feature would be
otherwise useless.

The negative consequence of the default setting is the inevitable
cache-bloat that happens for every and each DNS operator running named.

In this MR, a new configuration option `stale-cache-enable` is
introduced that allows the operators to selectively enable or disable
the serve-stale feature of BIND 9 based on their decision.

The newly introduced option has been disabled by default,
e.g. serve-stale is disabled in the default configuration and has to be
enabled if required.
2020-08-04 10:50:31 +02:00
Ondřej Surý
4a8670ddaf Rebuild the documentation 2020-07-31 10:02:23 +02:00
Evan Hunt
3551d3ffd2 convert rndc and control channel to use netmgr
- updated libisccc to use netmgr events
- updated rndc to use isc_nm_tcpconnect() to establish connections
- updated control channel to use isc_nm_listentcp()

open issues:

- the control channel timeout was previously 60 seconds, but it is now
  overridden by the TCP idle timeout setting, which defaults to 30
  seconds. we should add a function that sets the timeout value for
  a specific listener socket, instead of always using the global value
  set in the netmgr. (for the moment, since 30 seconds is a reasonable
  timeout for the control channel, I'm not prioritizing this.)
- the netmgr currently has no support for UNIX-domain sockets; until
  this is addressed, it will not be possible to configure rndc to use
  them. we will need to either fix this or document the change in
  behavior.
2020-07-13 13:16:53 -07:00
Ondřej Surý
514ab2cc4f Fixup the manpages after ddns-confgen.rst -> tsig-keygen.rst rename
There were some missing bits in the other rst files and Makefile.am(s)
that didn't reflect the rename of the main document.  Also add
ddns-confgen.8 manpage.
2020-07-08 11:05:24 +02:00
Evan Hunt
ba52377b37 use 'tsig-keygen' as the primary name for the tool
'ddns-confgen' is now an alias for 'tsig-keygen', rather than
the other way around.
2020-07-06 01:41:52 -07:00
Ondřej Surý
9ab86d0da2 Update the generated files after the source manpages update 2020-07-02 10:53:16 +02:00
Suzanne Goldlust
e3e787bc14 Fix formatting of See Also section header 2020-07-01 23:45:04 +02:00
Evan Hunt
f619708bbf prevent "primaries" lists from having duplicate names
it is now an error to have two primaries lists with the same
name. this is true regardless of whether the "primaries" or
"masters" keywords were used to define them.
2020-07-01 11:11:34 -07:00
Ondřej Surý
c5b63e14bc Commit the regenerated rndc.conf.5in manual page 2020-07-01 12:14:29 +02:00
Matthijs Mekking
e273b95a8b Update notes, changes for #1612 2020-06-30 09:51:22 +02:00
Matthijs Mekking
e1ba1bea7c Implement dummy 'rndc dnssec -status' command
Add the code and documentation required to provide DNSSEC signing
status through rndc.  This does not yet show any useful information,
just provide the command that will output some dummy string.
2020-06-30 09:51:04 +02:00
Ondřej Surý
36e4090c70 Update pregenerated dig.1in and rndc-confgen.8in 2020-06-22 14:08:53 +02:00
Ondřej Surý
28575abd93 Rebuild the manpages sources only when in maintainer mode
Similarly, the manpage sources will get rebuild only when in maintainer
mode because they require sphinx-build to be available locally and that
might not be always the case.
2020-06-22 14:08:53 +02:00
Michal Nowak
5bbc6dd7f1 Fix "make dist"
Make various adjustments necessary to enable "make dist" to build a BIND
source tarball whose contents are complete enough to build binaries, run
unit & system tests, and generate documentation on Unix systems.

Known outstanding issues:

  - "make distcheck" does not work yet.
  - Tests do not work for out-of-tree source-tarball-based builds.
  - Source tarballs are not complete enough for building on Windows.

All of the above will be addressed in due course.
2020-06-05 13:19:49 +02:00
Michal Nowak
4419606c9d Revise installation locations for BIND binaries
Move BIND binaries which are neither daemons nor administrative programs
to $bindir.  This results in only the following binaries being left in
$sbindir:

  - ddns-confgen
  - named
  - rndc
  - rndc-confgen
  - tsig-confgen
2020-06-04 13:19:23 +02:00
Ondřej Surý
1202fd912a Rewrite the statschannel traffic tests to pytest 2020-05-12 08:48:01 +02:00
Ondřej Surý
9fb6d11abb Convert the documentation to Sphinx documentation format
The ARM and the manpages have been converted into Sphinx documentation
format.

Sphinx uses reStructuredText as its markup language, and many of its
strengths come from the power and straightforwardness of
reStructuredText and its parsing and translating suite, the Docutils.
2020-05-07 16:02:56 +02:00
Andreas Gustafsson
1cc90ff672 removed the ctoman script 2001-01-18 01:46:34 +00:00
Andreas Gustafsson
b4a62f571d removed libisc man pages 2001-01-18 01:42:50 +00:00
Andreas Gustafsson
f7bf406044 lwres man pages moved to lib/lwres/man/ 2001-01-18 01:15:08 +00:00
Andreas Gustafsson
e2b3253d77 man pages have been moved to bin/dnssec 2001-01-18 01:05:50 +00:00
Andreas Gustafsson
d4134b2fc3 binary man pages have been moved to the source directories of
their respective binaries, and resolver.5 has been moved to ../lwres
(note that resolver.5 is still not included in releases)
2001-01-18 01:04:10 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Andreas Gustafsson
75d927bd72 renamed check-zone to named-checkzone and check-conf to named-checkzone
to reduce /usr/local/bin namespace pollution; added a CHANGES entry for them
2000-12-19 19:51:08 +00:00
Andreas Gustafsson
4004165d00 removed reference to nonexistent named.conf man page; added
more detailed references to ARM
2000-12-15 00:24:10 +00:00
Mark Andrews
92f372bb48 Initial checkin. 2000-12-14 21:41:50 +00:00
Mark Andrews
f815ada673 Initial checkin. 2000-12-14 00:52:44 +00:00
Brian Wellington
5d63dfaa9d Document the -n option 2000-12-07 02:20:07 +00:00
Andreas Gustafsson
f55dd75bca minor editing 2000-12-04 18:37:40 +00:00
Andreas Gustafsson
acb053cc54 references to named.conf statements should not include an empty
set of braces
2000-11-30 00:20:40 +00:00
Andreas Gustafsson
21dc0cbb26 reload is no longer the only command supported by rndc 2000-11-30 00:18:16 +00:00
Andreas Gustafsson
8b4eaec405 removed RRSET_AUTHORITATIVE bit as decided in lengthy
teleconference discussion; some editorial changes
2000-11-29 22:55:11 +00:00
Mark Andrews
517950ae99 579. [bug] nsupdate did not take a filename to read update from.
[RT #492]
2000-11-27 00:43:33 +00:00
Brian Wellington
cffe50abf6 Lots of copyright updates 2000-11-18 03:01:17 +00:00
Mark Andrews
383f4adf3b document "local" keyword. 2000-11-16 05:59:11 +00:00
Andreas Gustafsson
5ae97875f9 undo: last changes belongs on release branch, not mainline 2000-11-10 18:05:25 +00:00
Andreas Gustafsson
ba8176b44d document that RSA keys are limited to 2000 bits in 9.0.1 2000-11-10 18:03:05 +00:00
Andreas Gustafsson
f9e2ce8223 warn against relative path names as arguments to the -c
option [RT #428]
2000-11-09 18:09:12 +00:00
Brian Wellington
4d833ef73b Document lwres_getrrsetbyname 2000-11-02 02:21:09 +00:00
Brian Wellington
6e4deb9f1b updates 2000-11-01 00:33:50 +00:00
Brian Wellington
0bd785149d Document the '-t' (statistics) option. 2000-10-28 01:16:46 +00:00
Brian Wellington
b05c91f9d5 The 'hints' parameter somehow turned into 'arg' in the middle of the
description.
2000-10-19 00:43:07 +00:00
Andreas Gustafsson
0a9b84a8a5 #include <lwres/netdb.h>, not lwres.h 2000-10-19 00:26:36 +00:00
Brian Wellington
e0425840a8 -p and -P were switched. 2000-10-18 22:28:42 +00:00
Michael Sawyer
c9093e6b1a Minor change, +sta should be +stats 2000-09-29 18:25:00 +00:00
Andreas Gustafsson
23bfeb8bb1 checkpoint 2000-09-28 22:36:33 +00:00