"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.7/doc/ChangeLog" (22 Jul 2021, 180144 Bytes) of package /linux/misc/dns/nsd-4.3.7.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ChangeLog": 4.3.6_vs_4.3.7.

    1 22 July 2021: Wouter
    2 	- tag 4.3.7 release, with the fixes between rc1 and this release.
    3 
    4 20 July 2021: Wouter
    5 	- Fix typo in xfrd-tcp.c.
    6 
    7 15 July 2021: Wouter
    8 	- tag for 4.3.7rc1.
    9 	- Fix compile of cookies on FreeBSD without IPv6.
   10 	- Fix for loop initial declaration for nonc99 compiler.
   11 
   12 14 July 2021: Wouter
   13 	- Fix truncate test for EDNS COOKIE making one less RR is added.
   14 	- Attempt to fix gcc11 warning.
   15 
   16 13 July 2021: Willem
   17 	- Fixes for child server processes getting out of sync with the
   18 	  dnstap-collector process
   19 
   20 13 July 2021: Willem
   21 	- Interoperable DNS Cookies support as per RFC7873 and RFC9018
   22 
   23 9 July 2021: Willem
   24 	- Client side DNS Zone Transfer-over-TLS (XoT) support as per
   25 	  draft-ietf-dprive-xfr-over-tls
   26 
   27 29 June 2021: Willem
   28 	- Fix #168: Buffer overflow in the dname_to_string() function
   29 
   30 14 June 2021: Wouter
   31 	- Update configure nonblocking test to use host.
   32 
   33 25 May 2021: Wouter
   34 	- Fix #179: log notice and server-count.
   35 
   36 21 May 2021: Wouter
   37 	- Test code has -q option for quiet output.
   38 
   39 17 May 2021: Wouter
   40 	- Update the ACX_CHECK_NONBLOCKING_BROKEN test for the configure
   41 	  script.
   42 
   43 7 May 2021: Wouter
   44 	- Fix #176: please review Loglevel on missing zonefile.
   45 
   46 6 May 2021: Wouter
   47 	- Fix #174: NS Records below delegation are not ignored (nsd-checkzone
   48 	  also does not raise any issue).
   49 
   50 4 May 2021: Wouter
   51 	- Fix SVCB sort call sizeof to be the size of the elements sorted.
   52 
   53 29 April 2021: Tom
   54 	- Implement Syntax of SVCB and HTTPS RR type as per draft-ietf-dnsop-svcb-https
   55 
   56 13 April 2021: Wouter
   57 	- Fix for #128: Skip over sendmmsg invalid argument when port is zero.
   58 	- Fix #171: Invalid negative response (NSEC3) after IXFR.
   59 	- Fix to make nsec3_chain_find_prev return NULL if one nsec3 left.
   60 	- remove debug settings from unit test.
   61 
   62 9 April 2021: Wouter
   63 	- Fix for #170: Fix build warnings when IPv6 is disabled.
   64 	- Fix #170: Disabled IPv6 and DNSTAP enabled triggers a build error.
   65 
   66 30 March 2021: Wouter
   67 	- Fix configure failure for enable systemd because of autoconf.
   68 	- This became release 4.3.6, the repository continues for 4.3.7
   69 	  in development.
   70 
   71 29 March 2021: Wouter
   72 	- Note unlisted changes in RELNOTES and prepare for 4.3.6rc1 tag.
   73 
   74 29 March 2021: Willem
   75 	- Per zone Access Control List for queries
   76 	  with an allow-query: option.
   77 
   78 24 March 2021: Wouter
   79 	- Update acx_nlnetlabs.m4 to version 38, fix deprecation test.
   80 	- Fix configure to use header checks with compile.
   81 	- Fix warning about unused function log_addr.
   82 
   83 18 March 2021: Tom
   84 	- Add Extended DNS Errors RFC8914
   85 
   86 15 March 2021: Wouter
   87 	- Fix double config.h include in configlexer.c
   88 	- Fix to remove configyyrename from makedist.sh and also
   89 	  update the flex and bison rules there to add the "c_" prefix.
   90 
   91 13 March 2021: Willem
   92 	- Fix #154: TXT with parentheses fails in 4.3.5.
   93 	- Align parsing of TXT elements with how bind does it.
   94 	- A -p option to nsd-checkzone to print a successfully read zone.
   95 
   96 12 March 2021: Wouter
   97 	- Fix that wildcard is printed as a star instead of escaped, in
   98 	  logs and in written zone files.
   99 	- Fix unit test for wildcard printout change.
  100 
  101 11 March 2021: Wouter
  102 	- Fix #163: A TSIG noncompliance with RFC 2845.
  103 
  104 9 March 2021: Willem
  105 	- Enable configuring a control-interface by interface name.
  106 
  107 19 February 2021: Wouter
  108 	- Fix segfault on high verbosity for TLS channels with dnstap log
  109 	  local address.
  110 
  111 18 February 2021: Wouter
  112 	- Fix #146 with #147: DNSTAP log the local address of the server
  113 	  with the dnstap logs.
  114 
  115 16 February 2021: Wouter
  116 	- Man page documentation for dnstap options.
  117 
  118 8 February 2021: Wouter
  119 	- Fix AF_LOCAL compile error for Solaris.
  120 	- Fix ifaddrs compile error for Solaris.
  121 	- Fix ifaddrs.h compile error for Solaris.
  122 
  123 4 February 2021: Wouter
  124 	- Merge PR #153 from fobser: Repair -fno-common linker errors
  125 	  automatically.
  126 	- Fix uninitialized access of log_buf in error printout on apply ixfr.
  127 
  128 26 January 2021: Wouter
  129 	- Prevent a few more yacc clashes.
  130 
  131 19 January 2021: Wouter
  132 	- Set branch ready for 4.3.5 release.  Tag for 4.3.5rc1.
  133 	  Became the 4.3.5 release on 26 january 2021.  This branch continues
  134 	  with 4.3.6 in development.
  135 
  136 15 January 2021: Wouter
  137 	- Fix #152: '*' in Rdata causes the return code to be NOERROR instead
  138 	  of NX.
  139 	- Add config.guess and config.sub to .gitignore for autoconf 2.70.
  140 	- Fix #150: TXT record validation difference with BIND.
  141 	- Fixup TXT record validation fix for escaped quotes.
  142 	- Fixup TXT record validation fix for escaped backslashes.
  143 	- Fixup escape character parse for quoted strings.
  144 
  145 11 January 2021: Wouter
  146 	- Fix #151: DNAME not applied more than once to resolve the query.
  147 	- Fix dname test for #148.
  148 	- For #151: fix to not produce loops in output.
  149 
  150 5 January 2021: Wouter
  151 	- Fix configure.ac for autoconf 2.70.
  152 
  153 4 January 2021: Wouter
  154 	- Fix #148: CNAME need not be followed after a synthesized CNAME
  155 	  for a CNAME query.
  156 
  157 11 December 2020: Wouter
  158 	- Fix that nsd-control has timeout when connection is down.
  159 	- remove windows socket ifdefs from nsd-control.
  160 
  161 3 December 2020: Wouter
  162 	- For #145: Fix that service of remaining TCP and TLS connections
  163 	  does not allow new queries to be made, the connection is closed.
  164 	  Only existing queries and zone transfers are answered, new ones
  165 	  are rejected by a close of the channel.
  166 
  167 30 November 2020: Wouter
  168 	- Fix #144: fix better.
  169 
  170 27 November 2020: Wouter
  171 	- Fix #144: Typo fix in nsd.conf.5.in.
  172 
  173 26 November 2020: Wouter
  174 	- Fix #143: xfrd no hysteresis with NOT IMPLEMENTED rcode.
  175 
  176 24 November 2020: Wouter
  177 	- Merge PR #141: ZONEMD RR type.
  178 	- tag for 4.3.4rc1.  This became 4.3.4 release on 1 dec 2020.
  179 	  The code repo continues for 4.3.5 in development.
  180 
  181 23 November 2020: Wouter
  182 	- Fix #142: NODATA answers missin SOA in authority section after
  183 	  CNAME chain.
  184 	- Fix for CVE-2020-28935 : Fix that symlink does not interfere
  185 	  with chown of pidfile.
  186 	- fix writepid for retvalue 0.
  187 
  188 9 November 2020: Wouter
  189 	- Fix #138: NSD returns non-EDNS answer when QUESTION is empty.
  190 	- Fix to check nscount in previous fix for EDNS in formerr response
  191 	  when there is no question.
  192 
  193 28 October 2020: Wouter
  194 	- Remove unused init_cfg_parse routine from configlexer.
  195 
  196 20 October 2020: Wouter
  197 	- Fix to add missing closest encloser NSEC3 for wildcard nodata type
  198 	  DS answer.
  199 
  200 14 October 2020: Wouter
  201 	- Fix #134: IPV4_MINIMAL_RESPONSE_SIZE vs EDNS_MAX_MESSAGE_LEN.
  202 
  203 13 October 2020: Wouter
  204 	- Fix missing parenthesis on size of fix to init buffer.
  205 
  206 12 October 2020: Wouter
  207 	- Fix #127: two minor `-Wcast-qual` cleanups
  208 	- Fix #126: minor header hygiene
  209 	- Fix #125: include config.h in compat/setproctitle.c and fix prototype of `setproctitle`
  210 	- Fix #133: fix 0-init of local ( stack ) buffer.
  211 
  212 8 October 2020: Wouter
  213 	- tag for 4.3.3 release
  214 	- current repository contains 4.3.4 in development.
  215 	- Fix #129: ambiguous use of errno, in log message if sendmmsg fails.
  216 	- Fix #128: Fix that the invalid port number is logged for sendmmsg
  217 	  failed: Invalid argument.
  218 
  219 1 October 2020: Wouter
  220 	- tag for 4.3.3rc1 release.
  221 
  222 30 September 2020: Wouter
  223 	- Updated date in nsd -v output.
  224 	- Fixup bug013_truncate, checkconf and cutest_qroot tests for new
  225 	  default EDNS size.
  226 
  227 29 September 2020: Willem
  228 	- Follow DNS flag day 2020 advice and
  229 	  set default EDNS message size to 1232.
  230 
  231 4 September 2020: Wouter
  232 	- Remove unused space from LIBS on link line.
  233 
  234 3 September 2020: Wouter
  235 	- Merge PR #121: Increase log level of recreated database from
  236 	  WARNING to ERR.
  237 
  238 1 September 2020: Wouter
  239 	- Fix #119: fix compile warnings from new gcc.
  240 	- Fix #119: warn when trying to parse a directory.
  241 
  242 27 August 2020: Wouter
  243 	- Merged PR #113 with fixes.  Instead of listing an IP-address to
  244 	  listen on, an interface name can be specified in nsd.conf, with
  245 	  ip-address: eth0.  The IP-addresses for that interface are then used.
  246 
  247 26 August 2020: Wouter
  248 	- Add xstrdup for PR #113.
  249 	- Tidy up code like in PR #113.
  250 	- Import code from PR #113.
  251 	- Fix for unknown EVP_MAC_CTX_free function in openssl 3.0.0 tsig code.
  252 
  253 24 August 2020: Wouter
  254 	- Fix that configure checks for EVP_sha256 to detect openssl, because
  255 	  HMAC_CTX_new is deprecated in 3.0.0.
  256 	- Port TSIG code for openssl 3.0.0-alpha6.
  257 	- Sync acx_nlnetlabs.m4 with the unbound repo.
  258 	- Review fixes for tsig, defensive free and zero.
  259 
  260 4 August 2020: Wouter
  261 	- Merge #117: mini_event.h (4.3.2 and 4.3.1) on OpenBSD cannot find
  262 	  fd_set - patch.
  263 
  264 23 July 2020: Wouter
  265 	- Merge #115 from millert: Fix strlcpy() usage. From OpenBSD.
  266 
  267 15 July 2020: Wouter
  268 	- Fix make install with --with-pidfile="".
  269 
  270 14 July 2020: Wouter
  271 	- Tag for 4.3.2 release.  Master branch contains the next version
  272 	  in development, 4.3.3.
  273 
  274 7 July 2020: Wouter
  275 	- Tag for 4.3.2rc1.
  276 
  277 6 July 2020: Wouter
  278 	- Fix compile includes for xfr-inspect tool on FreeBSD.
  279 	- Add tpkg/run_vm.sh that runs test when in a virtual machine.
  280 	- Merge #112 from jaredmauch: log old and new serials when NSD
  281 	  rejects an IXFR due to an old serial number.
  282 	- Fix bug034 test for vm test changes.
  283 
  284 22 June 2020: Wouter
  285 	- Remove errno reset behaviour from sendmmsg and recvmmsg
  286 	  replacement functions.
  287 	- Fix unit test for different nsd-control-setup -h exit code.
  288 
  289 19 June 2020: Wouter
  290 	- Merge #108 from Nomis: Make the max-retry-time description clearer.
  291 	- Retry when udp send buffer is full to wait until buffer space is
  292 	  available.
  293 
  294 18 June 2020: Wouter
  295 	- Do not log EAGAIN errors for sendmmsg, to stop log spam on OpenBSD.
  296 
  297 17 June 2020: Wouter
  298 	- Fix #107: nsd -v shows configure line, openssl version and libevent version.
  299 
  300 27 May 2020: Wouter
  301 	- Fix unlink of pidfile warning if not possible due to permissions,
  302 	  nsd can display the message at high verbosity levels.
  303 	- Update contrib/nsd.service for chown of nsd.log and /var/log in
  304 	  ReadWritePaths.
  305 	- Removed contrib/nsd.service, example is too complicated and not
  306 	  useful.
  307 
  308 15 May 2020: Wouter
  309 	- Merge PR#102 from and0x000: add missing default in documentation
  310 	  for drop-updates.
  311 	- Fix checkconf test for log-only-syslog option.
  312 
  313 14 May 2020: Wouter
  314 	- Document default value for tcp-timeout.
  315 
  316 13 May 2020: Jeroen
  317 	- Fix #99: Fix copying of socket properties with reuseport enabled.
  318 
  319 24 April 2020: Wouter
  320 	- Fix #97: EDNS unknown version: query not in response.
  321 
  322 21 April 2020: Wouter
  323 	- Fix #96: log-only-syslog: yes sets to only use syslog, fixes
  324 	  that the default configuration and systemd results in duplicate
  325 	  log messages.
  326 
  327 20 April 2020: Wouter
  328 	- Fix #95: Removed make test check because tpkg not included in
  329 	  release tarballs.
  330 	- Fix unused parameter compile warnings.
  331 
  332 16 April 2020: Wouter
  333 	- Tag for 4.3.1 release and track 4.3.2 release in code repository.
  334 	- note sha256 digest algo use in makedist.sh.
  335 	- Fix for posix shell syntax for trap in nsd-control-setup.
  336 	- Fix to omit the listen-on lines from log at startup, unless verbose.
  337 	- Fix uninitialised values for bindtodevice option at startup with
  338 	  reuseport and multiple interfaces.
  339 
  340 8 April 2020: Wouter
  341 	- Tag for 4.3.1rc2.
  342 
  343 7 April 2020: Wouter
  344 	- Merge PR #91 by gearnode: nsd-control-setup recreate certificates.
  345 	  The '-r' option recreates certificates.  Without it it creates them
  346 	  if they do not exist, and does not modify them otherwise.
  347 
  348 6 April 2020: Wouter
  349 	- Merge PR #90 by phicoh: O_CLOEXEC should be FD_CLOEXEC.
  350 	- Merge PR #92 by tonysgi: Fix typo.
  351 
  352 2 April 2020: Wouter
  353 	- Tag for 4.3.1rc1.
  354 
  355 1 April 2020: Wouter
  356 	- Fix for whitespace in minimal responses test for FreeBSD.
  357 
  358 25 March 2020: Wouter
  359 	- Merge PR #86 from noloader: Use precious variables for GREP, EGREP,
  360 	  SED, AWK, LEX and YACC.
  361 	- For PR #86: Fix that programs loaded after CFLAGS and stuff is
  362 	  set, specifically the compiler, so that it can work if it needs
  363 	  special flags from that.  Fix that lex only needs to support -i
  364 	  if actually defined, otherwise the output included in the source
  365 	  tarball can be used.
  366 	- Merge PR #72 from noloader: Increase Travis testing coverage
  367 
  368 23 March 2020: Wouter
  369 	- Fix unterminated ifdef in nsd.h.
  370 	- Fix unknown u_long in util.c for Issue #80 .
  371 
  372 20 March 2020: Wouter
  373 	- Merge PR #83 from noloader: Fix GNU HURD sched_setaffinity compile.
  374 	- Fix #82: print error when system does not have setaffinity.
  375 	- Fix #80: NetBSD and implicit declaration of reallocarray.
  376 	- Fix for #80: Fix reallocarray test to define before include.
  377 	- Fix for #80: Define alternatives for IFNAMSIZ if it does not exist.
  378 
  379 19 March 2020: Wouter
  380 	- Fix #76: cpuid typedef for Hurd, DragonflyBSD compile.
  381 	- Fix #75: configure test for sched_setaffinity, and use
  382 	  cpuset_setaffinity otherwise.  Also test for presence of sysconf.
  383 	- Fix #74: GNU Hurd fix cast from pointer to integer of different size.
  384 	- Fix for #74, #75: cpuset test for header contents and provide code.
  385 	- Fix #78: Fix SO_SETFIB error on FreeBSD.
  386 
  387 18 March 2020: Wouter
  388 	- Fix #70: error: 'fd_set' undeclared.
  389 	- Fix #71: error: 'for' loop initial declaration used outside C99
  390 	  mode.
  391 	- Fix to move declarations out of for loops in event test too.
  392 	- Fix to move declarations out of for loops in popen3 test too.
  393 	- Another fix to move declaration out of for loop for event test.
  394 	- Fix to move declarations out of for loops in cutest regex display.
  395 
  396 17 March 2020: Wouter
  397 	- tag for 4.3.0 release and master branch has version 4.3.1.
  398 
  399 10 March 2020: Wouter
  400 	- repository has version number 4.3.0.  Tag for 4.3.0rc1.
  401 
  402 3 March 2020: Wouter
  403 	- Fix that the retry wait does not exceed one day for zone transfers.
  404 
  405 27 February 2020: Wouter
  406 	- Fix warning on FreeBSD about pointer size cast.
  407 
  408 26 February 2020: Wouter
  409 	- Fixup fix of reuseport TCP for server close of sockets not used
  410 	  by it.  And the unit test skips when the necessary debug output
  411 	  is not enabled.
  412 
  413 25 February 2020: Wouter
  414 	- Fix event unit test, signal has to be registered with signal_add,
  415 	  event_add not for every backend for signals.  The event_initialized
  416 	  is not possible for every backend, so event_added variable.  The
  417 	  agent write event fires after a timeout, instead of on event write
  418 	  so that it does not trigger a sigpipe event when the handlers stop.
  419 	  Timeout shorted to 0.1 second.  event_get_fd was not implemented,
  420 	  so used ev_fd.  Debug output printfs added to see what happens.
  421 	- Fix checkconf test for new drop-updates config option.
  422 	- Fix errors with reuseport and TCP file descriptors, it was
  423 	  closing them for server-1 in server-2 and server-3..
  424 
  425 7 February 2020: Jeroen
  426 	- Add feature to drop queries with opcode UPDATE.
  427 
  428 6 February 2020: Jeroen
  429 	- Support SO_BINDTODEVICE on Linux. Specify bindtodevice: yes
  430 	  to bind sockets directly to the network interface.
  431 	- Support SO_SETFIB on FreeBSD. Add setfib=<FIB> after an ip-address
  432 	  option to use the specified FIB for that socket.
  433 	- Require user to add servers=<range> after an ip-address option to
  434 	  specify the servers that must listen on that socket.
  435 
  436 6 February 2020: Wouter
  437 	- Merge PR#60: Minor portability fixes from michaelforney, with
  438 	  avoid pointer arithmetic on void* and avoid unnecessary VLA.
  439 
  440 4 February 2020: Wouter
  441 	- Merge PR#22: minimise-any: prefer polular and not large RRset,
  442 	  from Daisuke Higashi.
  443 	- Fix responses for IXFR so that the authority section is not echoed
  444 	  in the response.
  445 
  446 21 January 2020: Wouter
  447 	- Fix leak in server bitset setup.
  448 
  449 16 January 2020: Jeroen
  450 	- Add zone resource record iterator for future zone-verification port.
  451 	- Set FD_CLOEXEC on opened sockets.
  452 	- Add popen3 implementation for future zone-verification port.
  453 	- Add -r option to cutest so that a subset of tests can be run.
  454 
  455 15 January 2020: Jeroen
  456 	- Add feature to pin server proccesses to specific cpus.
  457 	- Add feature to pin IP addresses to selected server processes.
  458 	- Set process title to identify individual processes.
  459 
  460 13 January 2020: Wouter
  461 	- Merge pull request #59 from buddyns: add FreeBSD support
  462 	  for conf key ip-transparent.
  463 
  464 10 January 2020: Wouter
  465 	- Fix unreachable code in ssl set options code.
  466 	- Fix bad shift in assertion code analyzer complaint.
  467 
  468 6 January 2020: Wouter
  469 	- Fix #56: Drop sparse TSIG signing support in NSD.
  470 	  Sign every axfr packet with TSIG, according to the latest
  471 	  draft-ietf-dnsop-rfc2845bis-06, Section 5.3.1.
  472 
  473 12 December 2019: Wouter
  474 	- Note that use-systemd is not necessary and ignored in man page.
  475 
  476 11 December 2019: Wouter
  477 	- Fix whitespace in nsd.conf.sample.in, patch from Paul Wouters.
  478 	- use-systemd is ignored in nsd.conf, when NSD is compiled with
  479 	  libsystemd it always signals readiness, if possible.
  480 
  481 9 December 2019: Wouter
  482 	- Fix to define upper bounds on rr counts read from untrusted packet
  483 	  data.
  484 	- Try different annotation for radix_find_prefix_node not reachable.
  485 	- Separate acl_addr_match_range functions for ip4 and ip6, to
  486 	  please checkers.
  487 	- Avoid unused variable warning in new match_range_v4 function.
  488 
  489 6 December 2019: Wouter
  490 	- Fix to define max number of EDNS records we are willing to
  491 	  spend time on.
  492 	- Fix size of string len and capacity type cast in udbradtree.
  493 	- Fix to protect rrcount in tsig_find_rr from overflow.
  494 	- Annotate radix_find_prefix_node not reachable trail code.
  495 	- Fix to protect rrcount in packet_find_notify_serial from overflow.
  496 	- Fix to close socket on error in create_tcp_accept_sock.
  497 	- Fix to log on failure to chmod for socket for remote control.
  498 	- Fix to remove unneeded if in open of socket for remote control.
  499 	- Fix to restore input parameter on call failure in create_dirs.
  500 	- Please checker by terminating and initialising string read
  501 	  by remote control.
  502 	- Fixup of random_generate negative modulo, from previous commit,
  503 	  and return srandom when random is used if no getrandom.
  504 
  505 5 December 2019: Wouter
  506 	- Fix fname null check of fname in namedb_read_zonefile.
  507 	- Fix implicit cast of size in udb_radnode_array_grow.
  508 	- Fix ignore of return value of ssl_printf in remote.c.
  509 	- Fix unused check of fd in parent_handle_reload_command.
  510 	- Fix to use getrandom() for randomness, if available.
  511 	- Attempt to fix signedness of nscount lookup in ixfr query_process.
  512 	- Fix identical branches for ssl_print of errors in remote.c.
  513 	- Fix type cast bounds, signedness of opt_rdlen in edns_parse_record.
  514 	- Fix to separate header and data lines in parse_zone_list_file.
  515 
  516 3 December 2019: Wouter
  517 	- Fix #52: do not log transient network full errors unless higher
  518 	  verbosity is set.
  519 	- Fix checkconf test for new error output string.
  520 	- tag for 4.2.4rc1 release.  This became the 4.2.4 release,
  521 	  and the master branch continues with 4.2.5 in development.
  522 
  523 27 November 2017 Jeroen
  524 	- Fix regressions in configparser.y
  525 
  526 22 November 2019: Wouter
  527 	- Fix #48: Add make distclean that removes config.h made by configure.
  528 	  And add maintainer-clean that removes bison and flex output.
  529 
  530 18 November 2019: Wouter
  531 	- Detect fixed time memcmp for openssl 0.9.8 compatibility.
  532 	- Detect EC_KEY_new_by_curve_name for openssl 0.9.8.
  533 	- include limits.h for UINT_MAX.
  534 	- If no recvmmsg, dont use msg_flags member, but errno for error,
  535 	  where our fallback function left it, msg_flags also does not exist
  536 	  on some systems.
  537 	- Remove unused variable warning for portability.
  538 
  539 14 November 2019: Wouter
  540 	- Fix checkconf test with filenames that sort in the same order.
  541 	- Tag for 4.2.3rc1.  Branch master is 4.2.4 in development.
  542 
  543 11 November 2019: Wouter
  544 	- Fix #44: document that remote-control is a top-level nsd.conf
  545 	  attribute.
  546 	- Fix compile on OSX.
  547 	- Fix for #44: nicer top-level clause documentation.
  548 
  549 22 October 2019: Jeroen
  550 	- Number of different UDP handlers has been reduced to one. recvmmsg
  551 	  and sendmmsg implementations are now used on all platforms.
  552 	  Compatible implementations are in place for systems that lack the
  553 	  system calls.
  554 	- Socket options are now set in designated functions for easy reuse.
  555 	- Socket setup has been simplified for easy reuse.
  556 	- Configuration parser is now aware of the context in which an option
  557 	  was specified.
  558 
  559 21 October 2019: Wouter
  560 	- For #21 add
  561 	  contrib/patch_for_s6_startup_and_other_service_supervisors.diff
  562 	  that adds support for readiness notification with READY_FD from
  563 	  Cameron Nemo.
  564 
  565 17 October 2019: Jeroen
  566 	- Fix #40: Merge small fixes for confine-to-zone by Greg Bock.
  567 
  568 15 October 2019: Jeroen
  569 	- For #39: Merge confine-to-zone feature contributes by Greg Bock.
  570 
  571 26 September 2019: Wouter
  572 	- Fix #38: log address and failure reason with tls handshake errors,
  573 	  squelches (the same as unbound) some unless high verbosity is used.
  574 	- Fixup clang analysis warning in xfrd_parse_received_xfr_packet
  575 	  master dereference.
  576 
  577 25 September 2019: Wouter
  578 	- The nsd.conf includes are sorted ascending, for include statements
  579 	  with a '*' from glob.
  580 
  581 16 September 2019: Wouter
  582 	- Fixup warnings during --disable-ipv6 compile.
  583 	- Fixup unit test executable to run without IPv6.
  584 
  585 4 September 2019: Wouter
  586 	- Fix #35: excessive logging of ixfr failures, it stops the log when
  587 	  fallback to axfr is possible. log is enabled at high verbosity.
  588 
  589 2 September 2019: Wouter
  590 	- For #21: pidfile "" allows to run NSD without a pidfile, for
  591 	  startup management tools like daemontools.
  592 
  593 28 August 2019: Wouter
  594 	- In tests check for tls test tool availability.
  595 
  596 19 August 2019: Wouter
  597 	- Tag for 4.2.2 release.  Git master contains 4.2.3 in development.
  598 
  599 13 August 2019: Wouter
  600 	- Fix error message for out of zone data to have more information.
  601 	- Tag for 4.2.2rc2.
  602 
  603 12 August 2019: Wouter
  604 	- Fix #33: Fix segfault in service of remaining streams on exit.
  605 
  606 6 August 2019: Wouter
  607 	- Tag for 4.2.2rc1.
  608 
  609 5 August 2019: Wouter
  610 	- PR #31: nsd-control: Add missing stdio header.
  611 	- PR #32: tsig: Fix compilation without HAVE_SSL.
  612 	- Cleanup tls context on xfrd exit.
  613 
  614 31 July 2019: Wouter
  615 	- Fix #29: SSHFP check NULL pointer dereference.
  616 	- Fix #30: SSHFP check failure due to missing domain name.
  617 	- Fix to timeval_add in minievent for remaining second in microseconds.
  618 
  619 22 July 2019: Wouter
  620 	- Set timeout for refetch immediately, only spread load when there
  621 	  are retries.
  622 
  623 19 July 2019: Wouter
  624 	- Set no renegotiation on the SSL context to stop client
  625 	  session renegotiation.
  626 
  627 18 July 2019: Wouter
  628 	- Fix #25: NSD doesn't refresh zones after extended downtime,
  629 	  it refreshes the old zones, with a random delay of a couple of
  630 	  seconds to spread the load.
  631 	- Fix so that expired zones stay expired when server is down a
  632 	  long time.
  633 
  634 17 July 2019: Wouter
  635 	- Fix that NSD warns for wrong length of the hash in SSHFP records.
  636 
  637 15 July 2019: Wouter
  638 	- PR #23: Fix typo in nsd.conf man-page.
  639 
  640 4 July 2019: Wouter
  641 	- Set version to 4.2.2 in development.
  642 	- clean memory on exit of nsd-checkzone for memory debug.
  643 	- Fix #20: CVE-2019-13207 Stack-based Buffer Overflow in the
  644 	  dname_concatenate() function.  Reported by Frederic Cambus.
  645 	  It causes the zone parser to crash on a malformed zone file,
  646 	  with assertions enabled, an assertion catches it.
  647 	- Fix #19: Out-of-bounds read caused by improper validation of
  648 	  array index.  Reported by Frederic Cambus.  The zone parser
  649 	  fails on type SIG because of mismatched definition with RRSIG.
  650 
  651 2 July 2019: Wouter
  652 	- Tag for 4.2.1rc1
  653 
  654 27 June 2019: Wouter
  655 	- Fix unit test for added options and no dot after zone updated
  656 	  log message.
  657 	- Fix compile without accept4.
  658 
  659 21 June 2019: Wouter
  660 	- Omit remaining tcp processing if the list is empty.
  661 	- Fix output of nsd-checkconf -h.
  662 
  663 20 June 2019: Wouter
  664 	- Initialize event structures before event_set, to stop uninitialized
  665 	  values from setting event library lists and assertions, that would
  666 	  sometimes also show after event_del.
  667 	- Added num.tls and num.tls6 stat counters.
  668 	- PR #12: send-buffer-size, receive-buffer-size,
  669 	  tcp-reject-overflow options for nsd.conf, from Jeroen Koekkoek.
  670 	- Do not use symbol from libc, instead use own replacement, if not
  671 	  available, for accept4.
  672 	- Fix #14, tcp connections have 1/10 to be active and have to work
  673 	  every second, and then they get time to complete during a reload,
  674 	  this is a process that lingers with the old version during a version
  675 	  update.
  676 
  677 19 June 2019: Wouter
  678 	- Fix tls handshake event callback function mistake, reported
  679 	  by Mykhailo Danylenko.
  680 
  681 18 June 2019: Wouter
  682 	- Fix #15: crash in SSL library, initialize variables for TCP access
  683 	  when TLS is configured.
  684 
  685 14 June 2019: Wouter
  686 	- Fix to init event not pointer, in reassignment.
  687 
  688 12 June 2019: Wouter
  689 	- Fix to init event structure for reassignment.
  690 
  691 11 June 2019: Wouter
  692 	- NSD 4.2.0 release.  Current development is 4.2.1.
  693 	- Fixup of RELNOTES, corrected RFC reference for 4892.
  694 	- Fix #13: Stray dot at the end of some log entries, removes dot
  695 	  after updated serial number in log entry.
  696 	- Fix TLS cipher selection, the previous was redundant, prefers
  697 	  CHACHA20-POLY1305 over AESGCM and was not as readable as it could be. 
  698 	- Consolidate server tls context create and remote control context
  699 	  create, with hardening for the remote control tls context too.
  700 
  701 6 June 2019: Wouter
  702 	- NSD 4.2.0rc1 tag.
  703 
  704 4 June 2019: Wouter
  705 	- Fix unit test for outgoing interface to use random port numbers for
  706 	  the outgoing interface config.
  707 
  708 29 May 2019: Wouter
  709 	- Fix to guard _OPENBSD_SOURCE from redefinition.
  710 
  711 28 May 2019: Wouter
  712 	- Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD.
  713 
  714 16 May 2019: Wouter
  715 	- Fix #10: Fix memory leaks caused by duplicate rr and include
  716 	  instructions.
  717 
  718 6 May 2019: Wouter
  719 	- Note CII best practices badge for NSD on the README.md.
  720 
  721 2 May 2019: Wouter
  722 	- Fix .gitignore for unit test generated files.
  723 	- Fix checkconf unit test for hide-identity and tls.
  724 
  725 1 May 2019: Wouter
  726 	- Fix makedist.sh for use with git.
  727 	- Nicer output on travis for clang analysis.
  728 	- Add .gitignore file to exclude built files from version tracking.
  729 	- Add README.md file in repository with compile instructions.
  730 	- Fix .gitignore for dnstap files and aclocal temp.
  731 	- Add aclocal to README.md for pkgconfig for some configure options.
  732 
  733 25 April 2019: Wouter
  734 	- Add tls.tpkg unit test for DNS over TLS functionality.
  735 
  736 18 April 2019: Wouter
  737 	- Fix to avoid buffer alloc with global buffer in tls write handler.
  738 	- Fix to initialize event structure when accepting TCP connection.
  739 	- Use travis for build check, initial unit test and clang analysis.
  740 	- Disable SSLv2,3,TLSv1.0,1.1 if TLS1.2 is available in libssl.
  741 	- Disable weak ciphers, enable CIPHER_SERVER_PREFERENCE.
  742 	- further setup ssl ctx after the keys are loaded, for ECDH.
  743 	- TLS OCSP stapling support, enabled with tls-service-ocsp: filename,
  744 	  patch from Andreas Schulze.
  745 
  746 17 April 2019: Wouter
  747 	- Fix to share openssl init code, and perform it once.
  748 
  749 16 April 2019: Andreas via Sara
  750 	- Patch to add support for TCP Fast Open
  751 	- Patch to add support for tls service on a specified tls port
  752 
  753 16 April 2019: Wouter
  754 	- Fix #4249: The option hide-identity: yes stops NSD from responding
  755 	  with the hostname for chaos class queries.  Implements the RFC4829
  756 	  security considerations.
  757 	- Remove starttls, this signalling method was not standardized.
  758 	- Remove TO bit, this signalling method was not standardized.
  759 	- Remove unused first_query and tls_ok states.
  760 	- Remove sign-compare warning in tls packet send code.
  761 	- Fix spelling in comment and log printout.
  762 	- Fix potential uninitialized variable.
  763 	- Fix documentation for DNS over TLS, and set default port 853.
  764 	- Fix to add missing comment.
  765 	- Fix that the TLS handshake routine sets the correct event to
  766 	  continue when done.
  767 	- Fix that TLS renegotiation calls the read and write routines again
  768 	  with the same parameters when the desired event has been satisfied.
  769 	- Fix that TCP Fastopen has better error message and supports OSX.
  770 	- Fix log for fastopen with verbosity.
  771 	- Squelch TLS handshake failure log until verbosity 3.
  772 	- Add per-zone statistics for TLS queries, and dnstap for TLS queries,
  773 	  and rcode and TCflag statistics for TCP and TLS queries.
  774 
  775 25 March 2019: Wouter
  776 	- Print IP address when bind socket fails with error.
  777 
  778 21 March 2019: Wouter
  779 	- Fix spelling error in release notes.
  780 	- Fix to delete unused zparser.default_apex member.
  781 
  782 19 March 2019: Wouter
  783 	- tag 4.1.27rc1.  This became 4.1.27 on 25 March 2019 and trunk has
  784 	  4.1.28 in development.
  785 
  786 18 March 2019: Wouter
  787 	- Fix unit test bug013_truncate for new truncation with EDNS size,
  788 	  it is one RR smaller for the truncated response in the test.
  789 
  790 14 March 2019: Wouter
  791 	- Fixed radtree_insert memory leak.
  792 	- Fixed access recycled variable.
  793 
  794 11 March 2019: Wouter
  795 	- Fix #6: nsd-control-setup: Change validity time to a shorter
  796 	  period (<2038).
  797 	- Fix unused definition in header remote.h.
  798 	- Fix #4236: IPV4_MINIMAL_RESPONSE_SIZE=1480 is slightly too big.
  799 	- Fix #4235: IP_PMTUDISC_OMIT on IPv4/UDP sockets.
  800 
  801 18 February 2019: Wouter
  802 	- Fix to remove unused code.
  803 
  804 15 February 2019: Wouter
  805 	- tentative robustness, delete stats items from list twice if needed.
  806 
  807 14 February 2019: Wouter
  808 	- Fix #4: setusercontext() is in libutil on NetBSD, and also
  809 	  include login_cap.h only if it exists.
  810 	- Fix #4215: fixup for state update for TSIG information in server
  811 	  processes, nicer printout for tsig_print, tsig_print without
  812 	  arguments and no leaks.
  813 	- nicer logging for update_tsig.
  814 
  815 1 February 2019: Wouter
  816 	- Fix for tsig assoc_tsig command on acl with nokey elements.
  817 
  818 29 January 2019: Wouter
  819 	- Fix #4215: on-the-fly change of TSIG keys with patch from Igor, adds
  820 	  nsd-control print_tsig, update_tsig, add_tsig, assoc_tsig
  821 	  and del_tsig.  These changes are gone after reload, edit the
  822 	  config file (or a file included from it) to make changes that
  823 	  last after restart.
  824 	- documentation for tsig nsd-control options.
  825 
  826 24 January 2019: Wouter
  827 	- Deny ANY with only one RR in response, by default.  Patch from
  828 	  Daisuke Higashi.  The deny-any statement in nsd.conf sets ANY
  829 	  queries over UDP to be further moved to TCP as well.
  830 	  Also no additional section processig for type ANY, reducing
  831 	  the response size.
  832 	- assertions for clang analysis.
  833 
  834 10 December 2018: Wouter
  835 	- Fix for FreeBSD port with dnstap enabled.
  836 
  837 6 December 2018: Wouter
  838 	- Fix to reduce region_log_stats if condition, this removes a
  839 	  debug statement.
  840 
  841 5 December 2018: Wouter
  842 	- Fix #4213: disable-ipv6 and dnstap compile error.
  843 
  844 3 December 2018: Wouter
  845 	- Note that the content_list member is unused; and could be removed
  846 	  if the database format is modified or updated.
  847 	- Fix that dnstap logs CQ and CR like BIND does.
  848 	- Revert that, it looks wrong, AQ and AR are for the authoritative.
  849 	 
  850 29 November 2018: Wouter
  851 	- Tag for 4.1.26rc1. Which became 4.1.26 on 4 dec 2018.
  852 	  Trunk has 4.1.27 in development.
  853 	- Fix clang analysis warning on null in closest encloser for wildcard
  854 	  denial nsec.
  855 	- Fix clang analysis warnings.
  856 
  857 27 November 2018: Wouter
  858 	- Fix parsezone failure in 4194 fix.
  859 
  860 26 November 2018: Wouter
  861 	- Fix to not set GLOB_NOSORT so the nsd.conf include: files are
  862 	  sorted and in a predictable order.
  863 	- Added nsd-control changezone.  nsd-control changezone name pattern
  864 	  allows the change of a zone pattern option without downtime for
  865 	  the zone, in one operation.
  866 	- Fix #3433: document that reconfig does not change per-zone stats.
  867 
  868 20 November 2018: Wouter
  869 	- Fix #4205: enable-recvmmsg in mixed IPv4/IPv6 environment fails.
  870 	  This sets the msg_hdr.msg_namelen correctly after receipt.
  871 
  872 19 November 2018: Wouter
  873 	- Support SO_REUSEPORT_LB in FreeBSD 12 with the reuseport: yes
  874 	  option in nsd.conf.
  875 	- Fix #4202: nsd-control delzone incorrect exit code on error.
  876 	- Tab style fix to use tab for 8 spaces, from Xiaobo Liu.
  877 
  878 25 October 2018: Wouter
  879 	- Adjust dnstap socket path for chroot.
  880 
  881 22 October 2018: Wouter
  882 	- Fix #4194: Zone file parser derailed by non-FQDN names in RHS of
  883 	  DNSSEC RRs.
  884 	- Fix some more, neater code and checks for domain length limit.
  885 	- check that the dnstap socket file can be opened and exists, print
  886 	  error if not.
  887 
  888 4 October 2018: Wouter
  889 	- dnstap work, the dnstap.proto is a copy of the file from Unbound,
  890 	  also dnstap.m4 configure include file.
  891 	- dnstap collector: free eventbase and memclean nicer.
  892 	- dnstap collector: send data and read it in collector.
  893 	- dnstap/dnstap.c and .h from Unbound's contribution from
  894 	  Farsight Security, added to then adapt it for dnstap logging in NSD.
  895 	- dnstap.c with auth query and auth response, and called from
  896 	  the collector.
  897 	- dnstap work, config nsd.conf parse.
  898 	- dnstap example config.
  899 
  900 25 September 2018: Wouter
  901 	- NSD 4.1.25 released, trunk has 4.1.26 in development.
  902 
  903 18 September 2018: Wouter
  904 	- tag for NSD 4.1.25rc1.
  905 
  906 17 September 2018: Wouter
  907 	- Fix #4156: Fix systemd service manager state change notification
  908 
  909 14 September 2018: Wouter
  910 	- Remove unused if clause during server service startup.
  911 
  912 13 September 2018: Wouter
  913 	- Fix typo in clang analysis test.
  914 	- Annotate exit functions with noreturn.
  915 	- nsd-control prints neater errors for file failures.
  916 
  917 12 September 2018: Wouter
  918 	- clang analysis test.
  919 
  920 11 September 2018: Wouter
  921 	- Fix to combine the same error function into one, from Xiaobo Liu.
  922 	- Fix initialisation in remote.c.
  923 	- please clang analyzer and fix parse of IPSECKEY with bad gateway.
  924 	- Fix unit test code for clang analyzer.
  925 	- Fix nsd-checkconf fail on bad zone name.
  926 
  927 10 September 2018: Wouter
  928 	- Fix coding style in nsd.c
  929 
  930 7 September 2018: Wouter
  931 	- append_trailing_slash has one implementation and is not repeated
  932 	  differently.
  933 
  934 4 September 2018: Wouter
  935 	- Fix codingstyle in nsd-checkconf.c in patch from Sharp Liu.
  936 
  937 15 August 2018: Wouter
  938 	- Fix use_systemd typo/leftover in remote.c.
  939 
  940 13 August 2018: Wouter
  941 	- tag for 4.1.24 release.
  942 	- trunk is 4.1.25 in development.
  943 	- Fix that nsec3 precompile deletion happens before the RRs of
  944 	  the zone are deleted.
  945 	- Fix printout of accepted remote control connection for unix sockets.
  946 
  947 6 August 2018: Wouter
  948 	- tag for 4.1.24rc1 release.
  949 
  950 30 July 2018: Wouter
  951 	- Tag for NSD 4.1.23 release, trunk is 4.1.24, includes
  952 	  fix NSD time sensitive TSIG compare vulnerability.
  953 	- Fix checkconf test for use-systemd option.
  954 
  955 25 July 2018: Wouter
  956 	- #4133: Fix that when IXFR contains a zone with broken NSEC3PARAM
  957 	  chain, NSD leniently attempts to find a working NSEC3PARAM.
  958 
  959 23 July 2018: Wouter
  960 	- Remove socket activation from systemd code, it was reported as
  961 	  not useful to enable.  The readiness signalling is still there,
  962 	  and can be enabled with use-systemd: yes.
  963 	- Only call sd_notify from systemd when use-systemd is yes.
  964 
  965 6 July 2018: Wouter
  966 	- RFC8162 support, for record type SMIMEA.
  967 	- Fix that type CAA (and URI) in the zone file can contain
  968 	  dots when not in quotes.
  969 
  970 26 June 2018: Wouter
  971 	- configure --enable-systemd (needs pkg-config and libsystemd) can
  972 	  be used to then use-systemd: yes in nsd.conf and use socket
  973 	  activation and readiness signalling with systemd.
  974 
  975 19 June 2018: Wouter
  976 	- #4106: Fix that stats printed from nsd-control are recast from
  977 	  unsigned long to unsigned (remote.c).
  978 
  979 14 June 2018: Wouter
  980 	- Fix that first control-interface determines if TLS is used.  Warn
  981 	  when IP address interfaces are used without TLS.
  982 
  983 12 June 2018: Wouter
  984 	- #4102: control interface via local socket.
  985 	  configure it with control-interface: "/path/nsd.ctl"  The path
  986 	  has to start with a / to separate it from an IP address.
  987 	  The local socket does not use SSL, but unencrypted traffic, use
  988 	  file and containing directory permissions to restrict access.
  989 
  990 6 June 2018: Wouter
  991 	- Patch to fix openwrt for mac os build darwin detection in configure.
  992 
  993 4 June 2018: Wouter
  994 	- tag for 4.1.22rc1.  Became 4.1.22 on 11 June, trunk is 4.1.23 in
  995 	  development from this point.
  996 
  997 31 May 2018: Wouter
  998 	- Fix to use same condition for nsec3 hash allocation and free.
  999 
 1000 23 May 2018: Wouter
 1001 	- Use accept4 to speed up answer of TCP queries, on Linux and FreeBSD
 1002 	  and OpenBSD.
 1003 
 1004 22 May 2018: Wouter
 1005 	- Fix nsec3 hash of parent and child co-hosted nsec3 enabled zones.
 1006 
 1007 15 May 2018: Wouter
 1008 	- Fix memory free in unit test.
 1009 
 1010 14 May 2018: Wouter
 1011 	- Tag for 4.1.21 release.
 1012 	- trunk has 4.1.22 in development.
 1013 	- refuse-any sends truncation (+TC) in reply to ANY queries over UDP,
 1014 	  and allows TCP queries like normal.
 1015 
 1016 7 May 2018: Wouter
 1017 	- Tag for 4.1.21rc1 release.
 1018 
 1019 4 May 2018: Wouter
 1020 	- Fix #4093: Release notes not using 2018.
 1021 
 1022 3 May 2018: Wouter
 1023 	- Fix buffer size warnings from compiler on filename lengths.
 1024 
 1025 26 April 2018: Wouter
 1026 	- lower memory usage for tcp connections, so tcp-count can be higher.
 1027 	- Fix checkconf test for refuse-any option.
 1028 
 1029 3 April 2018: Wouter
 1030 	- refuse-any nsd.conf option that refuses queries of type ANY.
 1031 
 1032 5 March 2018: Wouter
 1033 	- Fix #3562: explain build error when flex missing.
 1034 
 1035 20 February 2018: Wouter
 1036 	- For more clang warnings
 1037 	- Fix spelling error in xfr-inspect.
 1038 
 1039 19 February 2018: Wouter
 1040 	- Fix for clang analysis complaints.
 1041 
 1042 15 February 2018: Wouter
 1043 	- --enable-memclean cleans up memory for use with memory checkers,
 1044 	  eg. valgrind.
 1045 	- Fix unused variable warnings from clang analyzer.
 1046 
 1047 14 February 2018: Wouter
 1048 	- updated RELNOTES for upcoming release.
 1049 	- tag 4.1.20rc1, became release on 20 feb, trunk has 4.1.21 in
 1050 	  development.
 1051 
 1052 9 February 2018: Wouter
 1053 	- make depend: updated the make dependencies in the Makefile.
 1054 
 1055 8 February 2018: Wouter
 1056 	- Fix memory leak when rehashing nsec3 after axfr or zonefile read,
 1057 	  in the selectively allocated precompiled nsec3 hashes.
 1058 
 1059 6 February 2018: Wouter
 1060 	- Fix memory leak in zone file read of unknown rr formatted RRs.
 1061 
 1062 11 December 2017: Wouter
 1063 	- Add test for support of -Wno-address-of-packed-member for
 1064 	  --enable-packed.
 1065 	- tag for release 4.1.19
 1066 	- trunk has 4.1.20 in development.
 1067 
 1068 8 December 2017: Wouter
 1069 	- tag for 4.1.19rc1
 1070 
 1071 7 December 2017: Wouter
 1072 	- Fixup lexer warning for gcc 4.2.
 1073 
 1074 6 December 2017: Wouter
 1075 	- Fix 3392: Fix regression in 4.1.18 for notify lists with ip4
 1076 	  and ip6 targets.
 1077 
 1078 5 December 2017: Wouter
 1079 	- Fix spelling error in xfr-inspect.
 1080 
 1081 1 December 2017: Wouter
 1082 	- Fix warnings emitted by clang for --enable-packed.  Alignment is not
 1083 	  a problem for x86_64, don't enable packed when the platform
 1084 	  requires aligned access.
 1085 
 1086 30 November 2017: Wouter
 1087 	- tag for 4.1.18 release.
 1088 	- trunk has 4.1.19 in development.
 1089 	- ignore fallthrough compiler warning in flex EOF rule.
 1090 
 1091 27 November 2017: Wouter
 1092 	- Fix crash for DS query when parent and child zones both configured
 1093 	  in nsd.conf and parent zone has not loaded properly.
 1094 	- tag for 4.1.18rc2.
 1095 
 1096 16 November 2017: Wouter
 1097 	- tag for 4.1.18rc1.
 1098 
 1099 14 November 2017: Wouter
 1100 	- Fix #2871: Increase number of sockets for xfrd transfers.
 1101 
 1102 6 November 2017: Wouter
 1103 	- Set usage counts in namedb tree to uint32 to save memory.
 1104 	- Fix up debug content from nsec3 collision printout work.
 1105 
 1106 2 November 2016: Wouter
 1107 	- make ip-transparent option work on OpenBSD.
 1108 
 1109 11 October 2016: Wouter
 1110 	- Fix #1567: Change crit to err log level for gettimeofday failure.
 1111 	  Add defines for compile without syslog.
 1112 
 1113 9 October 2016: Wouter
 1114 	- Fix collision printout of nsec3 to print name, hash and reverse.
 1115 
 1116 2 October 2016: Wouter
 1117 	- nsd-control zonestatus prints wait time between attempts, for zones
 1118 	  that are in that waiting time.
 1119 
 1120 19 September 2016: Wouter
 1121 	- merges feature branch branches/alloced_prehashes into trunk.
 1122 
 1123 18 September 2016: Wouter
 1124 	- Fix #1446: A corrupted zone file "propagates" to good ones.
 1125 
 1126 14 September 2016: Wouter
 1127 	- Fix layout in xfrd.c.
 1128 
 1129 6 September 2017: Willem
 1130 	- Save memory by selectively allocate precompiled nsec3 hashes
 1131 
 1132 29 August 2016: Wouter
 1133 	- With --enable-packed save memory, at expense of unaligned reads.
 1134 	- Fix writev compile warning on FreeBSD.
 1135 
 1136 25 July 2016: Wouter
 1137 	- NSD sends up to 16 notifies simultaneously for up to 64 zones,
 1138 	  to increase rate of notification for large master configurations.
 1139 
 1140 24 July 2016: Wouter
 1141 	- Fix gcc 7.1.1 warnings.
 1142 
 1143 17 July 2016: Wouter
 1144 	- Trunk has 4.1.18
 1145 	- xfr-inspect is part of source dir, but not made or installed by
 1146 	  default.
 1147 	- retry timeout between sending notifies dropped from 15 to 3 sec.
 1148 
 1149 13 July 2016: Wouter
 1150 	- tag 4.1.17rc1, and that became the 4.1.17 release on 21 July 2017.
 1151 
 1152 29 June 2016: Wouter
 1153 	- make depend.
 1154 
 1155 26 June 2016: Wouter
 1156 	- Fix text format of deletes for CDS and CDNSKEY, single 0 to represent
 1157 	  empty base64 or hex string.
 1158 
 1159 23 June 2016: Wouter
 1160 	- Fix potential null pointer in nsec3 adjustment tree.
 1161 
 1162 15 June 2016: Wouter
 1163 	- xfr-inspect debug tool prints out xfr contents of files in tmp.
 1164 
 1165 6 June 2016: Wouter
 1166 	- Fix #1272: use writev to put tcp length field with data for outgoing
 1167 	  zone transfer requests.
 1168 
 1169 16 May 2016: Wouter
 1170 	- zone parser parses type AVC (it has TXT format).
 1171 
 1172 25 April 2016: Wouter
 1173 	- 4.1.16 release tag.
 1174 	- trunk contains 4.1.17 in development.
 1175 
 1176 11 April 2016: Wouter
 1177 	- 4.1.16 rc1 tag for release.
 1178 	- minor manpage fix.
 1179 
 1180 5 April 2016: Wouter
 1181 	- Patch for expire state in multi-master when masters includes
 1182 	  broken master.
 1183 
 1184 27 March 2016: Wouter
 1185 	- Fix 1243: Option to make NSD emit really minimal responses,
 1186 	  minimal-responses: yes in nsd.conf.
 1187 	- but they give additional information for priming queries (type NS).
 1188 
 1189 6 March 2016: Wouter
 1190 	- Fix 1228: OpenSSL include is not guarded with HAVE_SSL
 1191 
 1192 28 February 2016: Wouter
 1193 	- Printout serial error with hint it may be too big.
 1194 
 1195 20 February 2016: Wouter
 1196 	- Fix missing _t to _type conversion for disable-radix-tree option.
 1197 
 1198 15 February 2016: Wouter
 1199 	- zone parser can parse acronyms for algorithms ED25519 and ED448.
 1200 
 1201 13 February 2016: Wouter
 1202 	- Calculate new udb index after growing the array, fix from
 1203 	  Chaofeng Liu.
 1204 
 1205 7 February 2016: Wouter
 1206 	- tag for 4.1.15 rc1.  Which became 4.1.15 on 16 Feb.  Trunk 4.1.16.
 1207 
 1208 19 January 2016: Wouter
 1209 	- Fix to rename _t typedefs because POSIX reserves them.
 1210 
 1211 3 January 2016: Wouter
 1212 	- Fix #1195: Fix so that NSD fails on non-compliant values for Serial.
 1213 
 1214 14 December 2016: Wouter
 1215 	- Squelch zone transfer error address family not supported by protocol
 1216 	  at low verbosity levels.
 1217 
 1218 13 December 2016: Wouter
 1219 	- Fix nsd-control and ipv6 only.
 1220 
 1221 8 December 2016: Wouter
 1222 	- tag 4.1.14
 1223 	- trunk contains 4.1.15 in development.
 1224 
 1225 1 December 2016: Wouter
 1226 	- Fix restart of zone transfers when new config becomes available.
 1227 	- tag 4.1.14rc1
 1228 
 1229 25 October 2016: Wouter
 1230 	- Fix #1132 for SERVFAIL zones perform backoff, and remembers the
 1231 	  timeout on next startup.
 1232 	- Save backoff timeout into xfrd.state file, this file has a higher
 1233 	  version number now.  Old files are skipped silently (causes
 1234 	  refresh) and created as new files upon exit.
 1235 	- Set number of rounds to 1; NSD will try every master once, then
 1236 	  wait for timeout or notify.
 1237 	- Fix axfr fallback for rounds to 1.
 1238 
 1239 20 October 2016: Wouter
 1240 	- suppress compile warning in lex files.
 1241 
 1242 18 October 2016: Wouter
 1243 	- Robust fix against missing master in tcp_open for xfrd.
 1244 	- More in depth fix for the previous.
 1245 	- Fix wildcards in include: config statements with chroot enabled.
 1246 
 1247 27 September 2016: Wouter
 1248 	- NSD 4.1.13 tag.
 1249 	- trunk has 4.1.14 in development.
 1250 	- Fix null memcpy for radixtree with single link element.
 1251 
 1252 19 September 2016: Wouter
 1253 	- Review comments Ralph: wrapped long lines and nicer example conf.
 1254 
 1255 16 September 2016: Wouter
 1256 	- NSD 4.1.13rc1 tag.
 1257 
 1258 15 September 2016: Wouter
 1259 	- Test for openssl init_crypto and init_ssl functions.
 1260 
 1261 14 September 2016: Ralph
 1262 	- Fix OPENSSL_INIT_ADD_ALL_DIGESTS compatibility check
 1263 
 1264 13 September 2016: Wouter
 1265 	- Fix double const in dname_const() function.
 1266 	- Silenced flex-generated sign-unsigned warning print with gcc
 1267 	  diagnostic pragma.
 1268 
 1269 8 September 2016: Wouter
 1270 	- more extensible edns option handling.
 1271 
 1272 2 September 2016: Wouter
 1273 	- Release of 4.1.12; trunk is 4.1.13 and the patch for 4.1.12 (that
 1274 	  does not contain the other changes to the trunk) is folded into
 1275 	  the trunk.
 1276 	- Fix #827: fix compile with openssl 1.1.0 with api=1.1.0.
 1277 
 1278 25 August 2016: Wouter
 1279 	- Fix multimaster for not tried full zone transfer for a expired zone.
 1280 	- Explain --disable-radix tree uses some more CPU.
 1281 
 1282 22 August 2016: Wouter
 1283 	- Fix README spelling error of BSD license (reported by Joerg Jung).
 1284 
 1285 19 August 2016: Wouter
 1286 	- for type SRV add A/AAAA to the additional section (if possible),
 1287 	  just like we already do for type MX.
 1288 
 1289 17 August 2016: Wouter
 1290 	- Add robustness against unallocated data in nsec3 trees.
 1291 
 1292 16 August 2016: Wouter
 1293 	- configure --disable-radix-tree for about 15% lower memory usage.
 1294 
 1295 12 August 2016: Wouter
 1296 	- Fix #817: xfrd update failed loop.
 1297 
 1298 9 August 2016: Wouter
 1299 	- Can config key algorithms with the digest name, eg. 'sha256'.
 1300 	- default tsig algorithm is sha256.
 1301 	- Fix typo in log output, 'transfered' -> 'transferred'.
 1302 	- Fix compile warnings about signcompare in minmax retrytime.
 1303 
 1304 8 August 2016: Wouter
 1305 	- Support syntax of RR type OPENPGPKEY from RFC 7929.
 1306 
 1307 5 August 2016: Wouter
 1308 	- multi-master-check: yes can be used to check all masters for the
 1309 	  last version, using the higher version from the configured masters,
 1310 	  from Manabu Sonoda.
 1311 	- small fixups on patch.  And fix spacing and remove configure flag.
 1312 	- Fix #812: make depend fails after distribution.
 1313 
 1314 2 August 2016: Wouter
 1315 	- Fix unused result warnings from write and strtol.
 1316 
 1317 1 August 2016: Wouter
 1318 	- Tag 4.1.11rc1.
 1319 	- Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut.
 1320 	- Tag 4.1.11rc2.
 1321 	- trunk is 4.1.12 in development.
 1322 
 1323 8 July 2016: Wouter
 1324 	- Note down tracking numbers for issue JVN#63359718 JPCERT#91251865.
 1325 
 1326 5 July 2016: Wouter
 1327 	- Fix #790: size-limit-xfr can stop NSD from downloading infinite zone
 1328 	  transfer data size, from Toshifumi Sakaguchi.
 1329 
 1330 27 June 2016: Wouter
 1331 	- Set default for min-refresh-time and min-retry-time to 0.  Behaves
 1332 	  just like before, but has a configurable option in nsd.conf.
 1333 	- Fix #783: Trying to run a root server without having configured it
 1334 	  silently gives wrong answers.
 1335 
 1336 16 June 2016: Wouter
 1337 	- When tcp is more than half full, use short timeout for tcp session.
 1338 	- Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori.
 1339 	- man page entries for max-refresh-time patch.
 1340 
 1341 15 June 2016: Wouter
 1342 	- Fix build without IPv6, patch from Zdenek Kaspar.
 1343 
 1344 14 June 2016: Wouter
 1345 	- release 4.1.10 and tag for that.
 1346 	- trunk has 4.1.11 in development.
 1347 
 1348 7 June 2016: Wouter
 1349 	- Fix NSEC3 ent fix to use closest encloser, not wildcard denial.
 1350 
 1351 2 June 2016: Wouter
 1352 	- Fix for NSEC3 with zone signed without exact match for empty
 1353 	  nonterminals, the answer for that domain gets wildcard denial.
 1354 	- #772 Document that recvmmsg has IPv6 problems on some linux kernels.
 1355 	- tag for 4.1.10rc1.
 1356 
 1357 31 May 2016: Wouter
 1358 	- print notice that nsd is starting before taking off.
 1359 
 1360 20 May 2016: Wouter
 1361 	- Updated fix for nonterminal nsec3 answers.
 1362 
 1363 19 May 2016: Wouter
 1364 	- Fix empty nonterminal nsec3 cover answers.
 1365 
 1366 12 May 2016: Wouter
 1367 	- NSD includes AAAA before A for queries over IPV6 (in delegations).
 1368 	  And TC is set if no glue can be provided with a delegation because
 1369 	  of packet size.
 1370 
 1371 19 April 2016: Wouter
 1372 	- Fix #755: NSD spins after a zone update and a lot of TCP queries.
 1373 
 1374 7 April 2016: Wouter
 1375 	- If set without nsd.db print "" as the default in the man pages.
 1376 
 1377 4 April 2016: Wouter
 1378 	- Fix #751: NSD fails to occlude names below a DNAME.
 1379 
 1380 24 March 2016: Wouter
 1381 	- Fix for openssl 1.1.0, HMAC_CTX size not exported from openssl.
 1382 
 1383 21 March 2016: Wouter
 1384 	- Update acx_nlnetlabs.m4 to version 33 with HMAC_Update test.
 1385 	- acx_nlnetlabs.m4 to v34, with -ldl -pthread test for libcrypto.
 1386 
 1387 15 March 2016: Wouter
 1388 	- ip-freebind: yesno option in nsd.conf sets IP_FREEBIND socket option
 1389 	  for Linux, binds to interfaces and addresses that are down.
 1390 	- Change the nsd.db file version because of nanosecond precision fix.
 1391 	- 4.1.9 release with the nsd.db file version fix (but not freebind),
 1392 	  trunk contains 4.1.10 in development.
 1393 
 1394 10 March 2016: Wouter
 1395 	- Tag 4.1.8
 1396 	- Trunk contains 4.1.9 in development.
 1397 
 1398 2 March 2016: Wouter
 1399 	- Tag 4.1.8rc1
 1400 
 1401 1 March 2016: Wouter
 1402 	- #744: Fix that NSD replies for configured but unloaded zone
 1403 	  with SERVFAIL, not REFUSED.
 1404 
 1405 16 February 2016: Wouter
 1406 	- RR type CSYNC (RFC7477) syntax is supported.
 1407 
 1408 29 January 2016: Wouter
 1409 	- #739: zonefile changes when mtime is small are detected on reload,
 1410 	  if filesystem supports precision mtime values.
 1411 
 1412 19 January 2016: Wouter
 1413 	- Fix #736: segfault during zone transfer.
 1414 
 1415 08 January 2016: Wouter
 1416 	- Define _DEFAULT_SOURCE with _BSD_SOURCE for recent Linuxes.
 1417 
 1418 05 January 2016: Wouter
 1419 	- #732: tcp-mss, outgoing-tcp-mss options for nsd.conf, patch
 1420 	  from Daisuke Higashi.
 1421 
 1422 04 January 2016: Wouter
 1423 	- Updated acx_nlnetlabs to version 32.
 1424 
 1425 11 December 2015: Wouter
 1426 	- Fix flto check for OSX clang.
 1427 
 1428 10 December 2015: Wouter
 1429 	- 4.1.7 release
 1430 	- trunk has 4.1.8 in development.
 1431 	- take advantage of arc4random_uniform if available, patch from
 1432 	  Loganaden Velvindron.
 1433 
 1434 3 December 2015: Wouter
 1435 	- tag for 4.1.7rc1 prerelease.
 1436 
 1437 2 December 2015: Wouter
 1438 	- configure --enable-ratelimit-default-is-off with --enable-ratelimit
 1439 	  to set the default ratelimit to disabled but available in nsd.conf.
 1440 	- Document that ratelimit qps and slip are updated in reconfig.
 1441 	- version: "string" option to set chaos version query reply string.
 1442 	- Fix up defaults in manpage.
 1443 
 1444 1 December 2015: Wouter
 1445 	- Explain rrl-slip better in documentation.
 1446 
 1447 30 November 2015: Wouter
 1448 	- Fix TCP responses when REUSEPORT is in use by turning it off.
 1449 	- reuseport: no is the default, because the feature is not troublefree.
 1450 	- Document default in manpage for rrl-slip, ip4 and 6 prefixlength.
 1451 
 1452 24 November 2015: Wouter
 1453 	- Fix zonec ttl mismatch printout to include more information.
 1454 
 1455 18 November 2015: Wouter
 1456 	- RELNOTES more descriptive.
 1457 	- newer acx_nlnetlabs.m4.
 1458 	- spelling fixes from Igor Sobrado Delgado.
 1459 
 1460 17 November 2015: Wouter
 1461 	- Fix #721: Fix wrong error code (FORMERR) returned for unknown
 1462 	  opcode.  NOTIMP expected.
 1463 
 1464 16 November 2015: Wouter
 1465 	- Allocate less memory for TSIG digest.
 1466 
 1467 6 November 2015: Wouter
 1468 	- Fixup for newer acx_nlnetlabs.m4, test for openssl version after
 1469 	  testing for libdl need.
 1470 
 1471 5 November 2015: Wouter
 1472 	- newer acx_nlnetlabs.m4, does not needlessly link with -ldl.
 1473 
 1474 30 October 2015: Wouter
 1475 	- Fix tpkg tests for portability.
 1476 
 1477 29 October 2015: Wouter
 1478 	- patch from Doug Hogan for SSL_OP_NO_SSLvx options.
 1479 	- updated contrib/nsd.spec, from Bálint Szigeti.
 1480 	- support configure --with-dbfile="" for nodb mode by default, where
 1481 	  there is no binary database, but nsd reads and writes zonefiles.
 1482 
 1483 27 October 2015: Wouter
 1484 	- portability fixes.
 1485 
 1486 26 October 2015: Wouter
 1487 	- Init pfd for handlers added during handler-event-walk.
 1488 
 1489 23 October 2015: Wouter
 1490 	- Fix many interfaces and zones updates from nsd parent event loop.
 1491 
 1492 22 October 2015: Wouter
 1493 	- 4.1.6 release tag.
 1494 	- trunk contain 4.1.7 in development.
 1495 
 1496 20 October 2015: Wouter
 1497 	- 4.1.6rc2 tag created.
 1498 
 1499 19 October 2015: Wouter
 1500 	- Fix compile of zonec error message on FreeBSD.
 1501 
 1502 15 October 2015: Wouter
 1503 	- 4.1.6rc1 tag created.
 1504 
 1505 13 October 2015: Wouter
 1506 	- nsd-checkconf warns for master zones with no zonefile statement.
 1507 	- Fix start failure when many file descriptors are in use.
 1508 	- The servfail rcode is not printed with a space in the middle.
 1509 	- fixup file descriptor fixup nicer.
 1510 	- print failed token for config syntax error or parse error.
 1511 
 1512 12 October 2015: Wouter
 1513 	- Fix #711: Document that debug-mode yes is used for staying
 1514 	  attached to the supervisor console.
 1515 	- Document verbosity 3 prints more information.
 1516 
 1517 30 September 2015: Wouter
 1518 	- makedist.sh print on pgp signature creation.
 1519 
 1520 28 September 2015: Wouter
 1521 	- Fix typo in zonec.c inside error message.
 1522 
 1523 24 September 2015: Wouter
 1524 	- Fix #701: Fix that AD=1 set in a BADVERS response.
 1525 
 1526 21 September 2015: Wouter
 1527 	- Fix #706: default port 53 not opened on ip4 because of getaddrinfo
 1528 	  hints initialisation failure.
 1529 	- 4.1.5 release tag
 1530 	- trunk contains 4.1.6 in development.
 1531 
 1532 9 September 2015: Wouter
 1533 	- 4.1.4 release tag created.
 1534 	- trunk contains 4.1.5 in development.
 1535 
 1536 31 August 2015: Wouter
 1537 	- 4.1.4rc1 tag created.
 1538 
 1539 28 August 2015: Wouter
 1540 	- Fix #698 formatting errors and typos in nsd.8.in.
 1541 	- Add --enable-pie and --enable-relro-now options.
 1542 
 1543 18 August 2015: Wouter
 1544 	- Admitted axfrs are logged at verbosity 1.  Refused at verbosity 2.
 1545 
 1546 17 August 2015: Wouter
 1547 	- Fixed checkconf test for reuseport setting.
 1548 
 1549 14 August 2015: Wouter
 1550 	- SO_REUSEPORT does not work on FreeBSD.  Enabled by default on Linux,
 1551 	  not enabled by default on other OSes.
 1552 
 1553 5 August 2015: Wouter
 1554 	- Fix that notify from nsd-control contains soa serial.
 1555 
 1556 3 August 2015: Wouter
 1557 	- squelch SO_REUSEPORT failure on verbosity less than 3.
 1558 
 1559 31 July 2015: Wouter
 1560 	- removed hardcoded interface limit, --with-max-ips removed.
 1561 	- SO_REUSEPORT support.
 1562 
 1563 16 July 2015: Wouter
 1564 	- Fix #618: documented need to list ip-addresses separately in
 1565 	  nsd.conf if there are multiple, because the source address of
 1566 	  replies can otherwise go wrong.
 1567 
 1568 10 July 2015: Wouter
 1569 	- Fix that for expired zones NSD performs an AXFR and accepts newer
 1570 	  and older serial numbers.
 1571 	- Document that minimal responses only minimizes responses to fit
 1572 	  in one datagram.  It does not minimize smaller responses.
 1573 
 1574 2 July 2015: Wouter
 1575 	- Fix NSID response for short edns sizes.
 1576 
 1577 23 June 2015: Wouter
 1578 	- Trunk contains 4.1.4 in development.
 1579 
 1580 4 June 2015: Wouter
 1581 	- Tag 4.1.3rc1
 1582 	- improve nsd-control usage text. (23 june - added to 4.1.3)
 1583 	- RFC7553 RR Type URI support.
 1584 
 1585 2 June 2015: Wouter
 1586 	- Fix redefined macro lex warning for freebsd flex.
 1587 
 1588 29 May 2015: Wouter
 1589 	- Fix that formerrors are ratelimited.
 1590 
 1591 19 May 2015: Wouter
 1592 	- max-interfaces raised to 32.
 1593 
 1594 18 May 2015: Wouter
 1595 	- removed unused defines for unofficial tsig-hmac algorithm codes.
 1596 	  The TSIG algorithm is identified by name in the config file.
 1597 
 1598 14 May 2015: Wouter
 1599 	- hmac sha224, sha384 and sha512 support, patch from David Gwynne.
 1600 
 1601 23 April 2015: Wouter
 1602 	- Fix crash in zone parser for relative dname after error in origin.
 1603 	- Test for zone parser failures
 1604 
 1605 21 April 2015: Wouter
 1606 	- nsd-control addzones and delzones read list of zones from stdin.
 1607 	- Fix task and zonestat files to be stored in a subdirectory in tmp
 1608 	  to stop privilege elevation.
 1609 	- printout names for successful addition and removal with bulk command.
 1610 
 1611 20 April 2015: Wouter
 1612 	- Fix #665: when removing subdomain, nsd does not reparse parent zone.
 1613 
 1614 14 April 2015: Wouter
 1615 	- trunk contains 4.1.3(upcoming).
 1616 
 1617 7 April 2015: Wouter
 1618 	- Tag 4.1.2rc2.
 1619 
 1620 2 April 2015: Wouter
 1621 	- Made log message more consistent, changed 'axfr refused' log message
 1622 	  to be more consistent with other messages.  Also notify refused.
 1623 	- verbosity 2 logs axfr refused and notify refused.
 1624 	  verbosity 1 contains less log messages.
 1625 
 1626 31 March 2015: Wouter
 1627 	- Tag 4.1.2rc1.
 1628 
 1629 24 March 2015: Wouter
 1630 	- Fix #654: Fix contradiction in notify logging verbosity level.
 1631 	- Incoming notifies have serial number logged (at verbosity 1).
 1632 	- Fix #655: Fix contradiction in verbosity for zone transfers.
 1633 
 1634 17 March 2015: Wouter
 1635 	- Use reallocarray for integer overflow protection, patch submitted
 1636 	  by Loganaden Velvindron.
 1637 	- Fix allocation integer overflow checks.
 1638 
 1639 13 March 2015: Wouter
 1640 	- Fix buffer overflow in config parse of domain name,
 1641 	  reported by John Van de Meulebrouck Brendgard.
 1642 
 1643 12 March 2015: Wouter
 1644 	- Updated default keylength in nsd-control-setup to 3k.
 1645 
 1646 10 March 2015: Wouter
 1647 	- Fix use after free after zonefile syntax error followed by ttl
 1648 	  or origin directive, reported by John Van de Meulebrouck Brendgard.
 1649 	- Fix syntax error followed by too many TXT elements parse crash
 1650 	  reported by John Van de Meulebrouck Brendgard.
 1651 
 1652 9 March 2015: Wouter
 1653 	- Fix origin directive from unused old value and subdomain parser
 1654 	  failure, reported by John Van de Meulebrouck Brendgard.
 1655 
 1656 2 March 2015: Wouter
 1657 	- Fix b64pton out of bounds error on invalid zonefile input
 1658 	  reported by John Van de Meulebrouck Brendgard.
 1659 
 1660 20 February 2015: Wouter
 1661 	- Fix segfault on double origin in zone reader (thanks John Van de
 1662 	  Meulebrouck Brendgard).
 1663 
 1664 19 February 2015: Wouter
 1665 	- Remove dead code domain_table_iterate.
 1666 	- Fix segfault in zone reader on invalid input
 1667 	  reported by John Van de Meulebrouck Brendgard.
 1668 
 1669 5 February 2015: Wouter
 1670 	- Fix #642: Change 'zone read with no errors' to '.. with success'.
 1671 	  Patch from Benedikt Heine.
 1672 
 1673 3 February 2015: Wouter
 1674 	- Tag 4.1.1 release
 1675 	- Trunk is 4.1.2 in development.
 1676 	- Remove some duplicate header includes (from Brad Smith).
 1677 	- Fix tcp waiting list for zone transfers where the bind and connect
 1678 	  calls fail.
 1679 
 1680 29 January 2015: Wouter
 1681 	- Fix zonesdir chroot error message.
 1682 
 1683 28 January 2015: Wouter
 1684 	- correct some hyphen-used-as-minus-sign (from Andreas Schulze) in
 1685 	  man pages.
 1686 
 1687 27 January 2015: Wouter
 1688 	- Tag 4.1.1rc1
 1689 
 1690 21 January 2015: Wouter
 1691 	- Synthesize CNAMEs with same TTL as DNAME.
 1692 
 1693 12 January 2015: Wouter
 1694 	- Fix casts for ctype functions (from Todd Miller).
 1695 	- nsd-checkconf -f prints out full name of pidfile (with dir).
 1696 
 1697 9 January 2015: Wouter
 1698 	- Fix bug#637: fix that nsd.db grows limitlessly, an off by one
 1699 	  on one megabyte free chunks, created during AXFRs of large zones,
 1700 	  that caused the one megabyte chunk to be leaked.
 1701 	- Fix udb-inspect for one megabyte chunks, counts and statistics.
 1702 
 1703 6 January 2015: Wouter
 1704 	- Fix spinning NSD with lots of failing transfers, due to pointer
 1705 	  comparison using void pointer subtraction (from Otto Moerbeek).
 1706 
 1707 5 January 2015: Wouter
 1708 	- Patch nsd_munin_ from Philip Paeps to use type ABSOLUTE.
 1709 
 1710 4 Nov 2014: Wouter
 1711 	- Document zonestat config, and nsd-checkconf access.
 1712 
 1713 3 Nov 2014: Wouter
 1714 	- Fix that failure to add tcp to tcp base does not leak the socket.
 1715 
 1716 27 Oct 2014: Wouter
 1717 	- Disabled use of SSLv3 in nsd-control.
 1718 	- zonestats are cleared (or not, with stats_noreset).
 1719 
 1720 22 Oct 2014: Wouter
 1721 	- Test for wildcard fix (from 3.2).
 1722 
 1723 16 Oct 2014: Wouter
 1724 	- Fixes for wildcard addition and deletion, speedup for some cases.
 1725 
 1726 15 Oct 2014: Wouter
 1727 	- Fix that queries for noname CH TXT are REFUSED instead of nodata.
 1728 
 1729 14 Oct 2014: Wouter
 1730 	- per zone statistics with --enable-zone-stats, configure with
 1731 	  zonestats: "zonestatidentifier", zones with the same id are added.
 1732 
 1733 10 Oct 2014: Wouter
 1734 	- Fix #616: retry xfer for zones with no content after command.
 1735 	- Fix char used as array index warnings on NetBSD.
 1736 
 1737 8 Oct 2014: Wouter
 1738 	- Fix "xfrd_handle_ipc: bad mode" log errors when compiled 
 1739 	  with --disable-bind8-stats.
 1740 
 1741 18 Sep 2014: Wouter
 1742 	- Fix that expired zones stay expired after a server restart.
 1743 
 1744 15 Sep 2014: Wouter
 1745 	- RFC 7344: CDS and CDNSKEY (read in).
 1746 
 1747 4 Sep 2014: Wouter
 1748 	- Tag 4.1.0.
 1749 	- trunk is 4.1.1 in development.
 1750 	- fix manpage for nsd-checkzone to have version and date.
 1751 
 1752 29 Aug 2014: Wouter
 1753 	- Fix install of the nsd-checkconf man page.
 1754 
 1755 28 Aug 2014: Wouter
 1756 	- Tag 4.1.0rc1
 1757 
 1758 25 Aug 2014: Wouter
 1759 	- Increased default --with-max-ips from 8 to 16, this increases the
 1760 	  number of interfaces you can specify in nsd.conf to listen to.
 1761 
 1762 19 Aug 2014: Wouter
 1763 	- Remove .LP after .SH in man pages.
 1764 
 1765 7 Aug 2014: Wouter
 1766 	- Fix for process swap of main and reload, reload failure from the
 1767 	  pipe is acted on, and reload fail not cause nsd to shutdown, also
 1768 	  ignore sigchlds from the servermain in reload, that would cause
 1769 	  EINTR to break file reads.
 1770 	- trunk has version 4.1.
 1771 
 1772 5 Aug 2014: Wouter
 1773 	- Fix #600: document that provide-xfr provides AXFR and not IXFR.
 1774 	- remove program group fix, because it is not needed.
 1775 	- Fix rising-load-average or memory-leaks in OSes (Linux since 2.6),
 1776 	  that keep track of all past process parents, or leak memory
 1777 	  for them.  Fix makes it so there is no very deep string of
 1778 	  process parents.
 1779 	  The reload process is now the process parent of servermain.  That
 1780 	  makes signals for children arrive at the reload, and servermain
 1781 	  has to use closed pipes to detect that children have exited.
 1782 
 1783 1 Aug 2014: Wouter
 1784 	- Set program group on main process and its child processes, and
 1785 	  kill them on a reload.
 1786 
 1787 20 July 2014: Wouter
 1788 	- Fix endian.h include for OpenBSD.
 1789 
 1790 15 July 2014: Wouter
 1791 	- Fix -O3 compile flag to -O2 to avoid miscompilations.
 1792 	- Allow user to override the -g -O2 CFLAGS in ./configure.
 1793 
 1794 11 July 2014: Wouter
 1795 	- fix strptime implicit declaration error on OpenBSD.
 1796 
 1797 9 July 2014: Wouter
 1798 	- removed unnecessary arc4random_uniform.
 1799 
 1800 8 July 2014: Matthijs
 1801 	- fake-rfc2553 patch (thanks Benjamin Baier).
 1802 
 1803 8 July 2014: Wouter
 1804 	- wait and reap processes that are not part of the process group.
 1805 
 1806 7 July 2014: Wouter
 1807 	- Code review fixup from NSD3.
 1808 
 1809 30 Jun 2014: Wouter
 1810 	- Fix #590: rrl log does not print wildcard as a star but escaped.
 1811 	- Fix #591: rrl log messages at verbosity level 1.
 1812 	  (If that does not work for everyone, we need rrl-log: yesno option).
 1813 
 1814 27 Jun 2014: Wouter
 1815 	- Fixup rr-test test so that it does not fail on the #553 string.
 1816 
 1817 17 Jun 2014: Matthijs
 1818 	- Fix #587: Default value for statistics is 0.
 1819 	- Remove the shift-reduce conflicts from the bug#553 fix.
 1820 
 1821 5 Jun 2014: Wouter
 1822 	- Fix roundrobin cornercase for truncated packets.
 1823 	- round-robin: yesno in nsd.conf enabled round robin rotation.
 1824 
 1825 28 May 2014: Wouter
 1826 	- Fix #585: yylex_destroy missing, cannot compile on RHEL 5.x.
 1827 	- Fix #583: Round-robin for records in the Answer section.
 1828 
 1829 22 May 2014: Wouter
 1830 	- Fix zonefile parse with no whitespace before semicolon comments.
 1831 
 1832 16 May 2014: Wouter
 1833 	- xfrd reaps children on a timer as well, similar to server_parent.
 1834 
 1835 8 May 2014: Wouter
 1836 	- Fix #564: nsd-checkzone tool to check zonefile correctness.
 1837 
 1838 7 May 2014: Wouter
 1839 	- Fix #577: makefile incorrectly installed manpages from srcdir.
 1840 
 1841 30 April 2014: Wouter
 1842 	- Fix that xfrd reaps all children on every eventloop, because some
 1843 	  exited reloads may attach here and need reaping, also if the signal
 1844 	  is lost.
 1845 
 1846 23 April 2014: Wouter
 1847 	- Fix progress printout for very large zones (numeric overflow).
 1848 
 1849 10 April 2014: Wouter
 1850 	- Fix write_socket return value check in server.c (Thanks Brad Smith,
 1851 	  Mark Kettenis).
 1852 
 1853 8 April 2014: Wouter
 1854 	- nsd-control addzone reports if zone already exists.
 1855 
 1856 7 April 2014: Wouter
 1857 	- Fix #571: unused variable and incompatible pointer warnings when
 1858 	  compiled on a system without INET6.
 1859 
 1860 27 March 2014: Wouter
 1861 	- Fix delete or rename of a lot of zones and make it take a
 1862 	  non-enormous time.  Database compaction is deferred.
 1863 	- Speed up deletion of zone contents a lot, (56s to 1s), speeds up
 1864 	  delete, rename and AXFR for zones.  Defer emptynonterminal checks.
 1865 	- Better example config in nsd.conf manual page.
 1866 	- log-time-ascii option, default yes, with readable timestamp in log.
 1867 
 1868 25 March 2014: Wouter
 1869 	- nsd shuts down during init process if given signal.
 1870 	- shorter logging for zone transfer fail rcodes.
 1871 
 1872 24 March 2014: Wouter
 1873 	- include: "foo/nsd.d/*.conf" works, wildcard glob on includes.
 1874 	- Fix print filename of encompassing config file on read failure.
 1875 
 1876 21 March 2014: Wouter
 1877 	- Fix bug in nodatabase mode with ixfrs that change nsec3param
 1878 	  (Thanks Anand Buddhdev).
 1879 	- Changed maxbackoff for no-content secondary zones from 4h to 24h.
 1880 	- nocontent zones are checked on startup, but continue backoff
 1881 	  from stored xfrd.state values.
 1882 
 1883 19 March 2014: Wouter
 1884 	- made database: "" set the 3600 default for zonefileswrite only
 1885 	  if it is also at its default, so that user settings override.
 1886 	- Unit test for zonefiles-write.
 1887 	- Write xfrd.state for nodb mode again.  Disable xfrd.state with
 1888 	  xfrdfile: "" in config.  Does not check slave zone if state is
 1889 	  same as last time on startup.
 1890 	- Fixed shutdown message sporadically not printed on exit.
 1891 	- Documented zonefile %s syntax in nsd.conf man page.
 1892 	- Fix manpage to put colon after zonefiles check and write.
 1893 	- Change from 'Zone" to "zone" with ".. serial .. is updated" log
 1894 	  message.
 1895 
 1896 18 March 2014: Wouter
 1897 	- unit test for nodb mode.
 1898 	- Speed up zone write (.nl zonefile 30% faster).
 1899 	  The memory alloc-dealloc in print_rr has been moved to print_rrs.
 1900 	- (from 3.2), fix for #553 and for other TXT string syntax.
 1901 	- in nodb mode, xfrd.state is not written out, because the zones
 1902 	  are refreshed upon next startup anyway, so keeping timers and state
 1903 	  is unnecessary.
 1904 	- zonefiles-write option in nsd.conf, enabled when database is "".
 1905 	  The server writes changed zonefiles to disk every hour.
 1906 
 1907 17 March 2014: Wouter
 1908 	- Speed up zone parsing (.nl reads 40% faster).
 1909 	  The rrtype_from_string routine is called often, optimised it.
 1910 
 1911 14 March 2014: Wouter
 1912 	- tag 4.0.3
 1913 	- trunk has 4.0.4 in development.
 1914 	- database: "" starts without mmap of database.  Less memory is used,
 1915 	  zones are read from text zonefile.
 1916 
 1917 13 March 2014: Wouter
 1918 	- Fix nsd.db unclean close check.  Previous databases are considered
 1919 	  unclean by the code and are created anew.
 1920 	- Adds nsd.db larger than 400Tb check for sanity. Also test if
 1921 	  filesize as documented in the file is correct.
 1922 	- nsd waits for tasks to complete on stop, prevents nsd.db corruption.
 1923 	- fix to not delete tmpdir too early in shutdown process.
 1924 
 1925 12 March 2014: Wouter
 1926 	- tag 4.0.2
 1927 	- trunk has 4.0.3 in development.
 1928 	- disabled udb checking functionality that made it very slow,
 1929 	  this was enabled when enable-checking was turned on.
 1930 
 1931 27 February 2014: Wouter
 1932 	- tag 4.0.2rc1
 1933 
 1934 26 February 2014: Wouter
 1935 	- Fix that NSD will delete and recreate not-clean-closed databases.
 1936 
 1937 20 February 2014: Wouter
 1938 	- Fix from 3.2: make SOA RDATA comparisons in XFR more lenient (only
 1939 	check serial).
 1940 
 1941 18 February 2014: Wouter
 1942 	- Fix leak of zone name after zonefile read.
 1943 	- Fix malloc too large that would be leaked in the radix tree.
 1944 
 1945 14 February 2014: Wouter
 1946 	- configure change for easier compile on Minix.
 1947 
 1948 10 February 2014: Wouter
 1949 	- Fix #552: zonefile loads on nsd-control reconfig when the name
 1950 	  of the file has changed.
 1951 
 1952 7 February 2014: Wouter
 1953 	- Fix #551: change Regent to Copyright holder in the LICENSE,
 1954 	  to match the definition on opensource.org for the BSD License.
 1955 
 1956 3 February 2014: Wouter
 1957 	- Disabled recvmmsg and sendmmsg usage by default because kernel
 1958 	  versions have implementation issues: ipv6 ignored, security issues.
 1959 	- Detect libevent2 install automatically by configure, and use
 1960 	  event2 header files if necessary.
 1961 	- Fixup link with lib/event2 subdir.
 1962 
 1963 30 January 2014: Wouter
 1964 	- Fix expired zones to give SERVFAIL, also when parent zone loaded.
 1965 
 1966 27 January 2014: Wouter
 1967 	- tag 4.0.1.
 1968 	- trunk is 4.0.2 in development.
 1969 	- rcode REFUSED for queries to non-hosted zones.
 1970 	- documented nsd-control zonestatus output in nsd-control manpage.
 1971 	- remove mention of nsdc from nsd-checkconf manpage.
 1972 
 1973 21 January 2014: Wouter
 1974 	- tag 4.0.1rc2
 1975 
 1976 20 January 2014: Wouter
 1977 	- Fix #546:  output format errors in nsd_munin_ (Thanks Tom Hendrikx).
 1978 
 1979 17 January 2014: Wouter
 1980 	- Fix type CAA.
 1981 	- Fix type EUI48.
 1982 	- nsid can be set with "ascii_somestring" in ascii.
 1983 	- Fix printout of high-chars in TXT on NetBSD.
 1984 
 1985 16 January 2014: Wouter
 1986 	- Unit test for WKS failure.
 1987 
 1988 15 January 2014: Wouter
 1989 	- tag 4.0.1rc1
 1990 
 1991 13 January 2014: Wouter
 1992 	- Check if configure in srcdir collides with outofdir build.
 1993 
 1994 10 January 2014: Wouter
 1995 	- Fix that chroot is removed from zonefile names (for absolute names).
 1996 
 1997 9 January 2014: Wouter
 1998 	- Fix that bad IXFR updates do not result in double SOA records,
 1999 	  and that an AXFR is started (attempted) when the zone state seems
 2000 	  to be inconsistent with the master's zone state.
 2001 
 2002 8 January 2014: Matthijs
 2003 	- Bugfix #542: Match RRSIG TTL with SOA TTL in negative response.
 2004 
 2005 7 January 2014: Wouter
 2006 	- Fix xfrd when zone transfer TCP contains zero length packets.
 2007 	- Fix for NSEC3 zones where parent zone is co-hosted, also NSEC3,
 2008 	  because AXFRs overwrote nsec3 administration in the child zone.
 2009 
 2010 2 January 2014: Wouter
 2011 	- Log ip address for sendto and sendmmsg failures.
 2012 
 2013 4 December 2013: Matthijs
 2014 	- Support for CAA RRtype (RFC 6844).
 2015 
 2016 26 November 2013: Wouter
 2017 	- Fix segfaults after read of zones with rr type WKS from zonefile.
 2018 	- Seed PRNG for openssl at start of daemon, fixes SSL connection issue.
 2019 
 2020 25 November 2013: Wouter
 2021 	- (same as in 3.2.16): fix wildcard cname to nxdomain repeated rrset.
 2022 
 2023 11 November 2013: Wouter
 2024 	- Fix bug#534: IXFR query loop over UDP for zones that are unchanged.
 2025 
 2026 11 November 2013: Matthijs
 2027 	- EUI48 and EUI64 is now RFC 7043
 2028 
 2029 5 November 2013: Wouter
 2030 	- Accept interface: as an alternative for ip-address: for
 2031 	  consistency with unbound.conf syntax.
 2032 
 2033 29 October 2013: Wouter
 2034 	- tag for 4.0.0 release.
 2035 	- trunk has 4.0.1 in development, for bug fixes.
 2036 
 2037 24 October 2013: Wouter
 2038 	- Fixup zone change code.
 2039 	- tag 4.0.0rc3.
 2040 
 2041 21 October 2013: Matthijs
 2042 	- Initialize xfrd zone when changing zone from master to slave
 2043 	  and delete xfrd zone when changing zone from slave to master.
 2044 
 2045 14 October 2013: Wouter
 2046 	- tag 4.0.0rc2.
 2047 
 2048 14 October 2013: Matthijs
 2049 	- Additional log messages with reason why RR to be deleted cannot be
 2050 	  found.
 2051 
 2052 14 October 2013: Wouter
 2053 	- Fix for zone transfer that has different-cased RRSIG signer names
 2054 	  or NSEC next-owner names.
 2055 
 2056 9 October 2013: Wouter
 2057 	- tsig errors on incoming tsig print key name and source IP of query.
 2058 
 2059 8 October 2013: Wouter
 2060 	- Update documentation for nsd -d option.
 2061 
 2062 7 October 2013: Wouter
 2063 	- Fix mini_event ev_once flag to be prettier (review comments Yuri).
 2064 	- tag 4.0.0rc1 recreated.
 2065 
 2066 4 October 2013: Wouter
 2067 	- Fix bug where if you do not have flex, and then install flex, it
 2068 	  would not make without a re-untar of the source.
 2069 
 2070 3 October 2013: Wouter
 2071 	- Review changes from Matthijs.
 2072 	- doc/README updated, 'nsdc' is now removed.
 2073 
 2074 1 October 2013: Wouter
 2075 	- Review commits from Matthijs.
 2076 	- doc/UPGRADING updated, review Yuri.
 2077 
 2078 30 September 2013: Wouter
 2079 	- tag 4.0.0rc1
 2080 	- updated doc/RELNOTES
 2081 
 2082 19 September 2013: Wouter
 2083 	- configure --disable-recvmmsg for compat with older Linux kernels,
 2084 	  by default it autodetects support in the kernel on the buildmachine.
 2085 
 2086 20 Aug 2013: Wouter
 2087 	- Fix time at 2038, uint32s changed to time_t, support 64bit time_t.
 2088 
 2089 19 Aug 2013: Wouter
 2090 	- Fix use of 32bit time, for 2038, thanks to Theo de Raadt for patch.
 2091 
 2092 13 Aug 2013: Wouter
 2093 	- Bugfix#518 Incorrect RRL prefix length option names in nsd.conf
 2094 	  man page from Ville Mattila.
 2095 
 2096 9 Aug 2013: Wouter
 2097 	- Fix that xfrd, and nsd-control, does not stop responding when reload
 2098 	  errors out.  The pid is sent like it should by server_main.
 2099 	- Fix that EOF in quoted string error does not cause reload to exit.
 2100 	- Fixup errors from the stack code checker.
 2101 
 2102 6 Aug 2013: Wouter
 2103 	- Removed use of random when arc4random is available.  Thus, random
 2104 	  and srandom are then not linked with the executable.
 2105 
 2106 16 Jul 2013: Wouter
 2107 	- Fix segfault with no logfile and chroot (Thanks Patrik Lundin).
 2108 
 2109 15 Jul 2013: Wouter
 2110 	- beta 5 tag.
 2111 	- trunk has beta6 named in configure.
 2112 
 2113 9 Jul 2013: Wouter
 2114 	- unlink xfr file if transfer is stopped, timeouted or interrupted.
 2115 	  And unlink xfr file in progress when the zone is deleted.
 2116 
 2117 8 Jul 2013: Wouter
 2118 	- Increase tcpbacklog default to 256 (silently capped to 128 on BSD).
 2119 	  For remote control keep it at 16, it has less TCP load.
 2120 	  It does not actually increase TCP performance (some except), but
 2121 	  reduces connection loss when there is a spike in TCP connections.
 2122 
 2123 5 Jul 2013: Wouter
 2124 	- nsd-mem stores temp files in current dir because /tmp is too small. 
 2125 	- printout pct parsed, read, nsec3 and written every 100.000 elements
 2126 	  and after 5 seconds.  For big zones.
 2127 
 2128 3 Jul 2013: Wouter
 2129 	- region-allocator has list of large allocations, so delete is in O(1).
 2130 	- recursive readroutine for speedup of nsd.db reads (30%).
 2131 	- udb-inspect prints type summary of nodes in nsd.db.
 2132 
 2133 28 Jun 2013: Matthijs
 2134 	- Update tmp serial in xfr checking.
 2135 
 2136 28 Jun 2013: Wouter
 2137 	- nsd.db 12% smaller, no nsec3 hash storage.  Also ups udb version
 2138 	  because of the format change.  printout udb write complete for
 2139 	  debug.
 2140 	- Fix warning in labellength 0 code.
 2141 
 2142 27 Jun 2013: Matthijs
 2143 	- Better XFR checking, fallback to AXFR (if allowed) if three
 2144 	  malformed XFR packets have been seen.
 2145 	- zonec: Don't crash on domain names with label length 0.
 2146 
 2147 25 Jun 2013: Matthijs
 2148 	- Rename --enable-eui-rrtypes to --enable-draft-rrtypes.
 2149 
 2150 25 Jun 2013: Wouter
 2151 	- acx_nlnetlabs.m4 update, --disable-flto.
 2152 
 2153 20 Jun 2013: Matthijs
 2154 	- Use IPV6 minimum MTU settings with TCP to reduce failures that
 2155 	  are caused by delays in learning working PMTU when communicating
 2156 	  through a tunnel.
 2157 	- Improved RRL logging: also print triggering query src addr and qtype
 2158 	  (thanks Klaus Darilion).
 2159 	- Merge some minor stuff from NSD3.2
 2160 
 2161 18 Jun 2013: Matthijs
 2162 	- Add rrl-slip config option (thanks Stephane Bortzmeyer).
 2163 	- Add rrl-ipv{4,6}-prefix-length config option.
 2164 	- Bug #496: Support for EUI48 and EUI64 RR types.
 2165 
 2166 14 Jun 2013: Wouter
 2167 	- Optimizations: -O3 if possible (user can override CFLAGS), udp
 2168 	  buffers are set to 1m by default (if socket options exist),
 2169 	  use recvmmsg and sendmmsg, or only recvmmsg, or recvfrom.
 2170 
 2171 11 Jun 2013: Wouter
 2172 	- Fix memory leak in zone parser for txt record (since the large
 2173 	  number of txt subsections fix).
 2174 	- Fix zone parser allocations to be in db region.
 2175 	- nsd-mem prints advice
 2176 
 2177 5 Jun 2013: Wouter
 2178 	- Fix segfault on repeated reconfigs, double free of zone apex name.
 2179 
 2180 4 Jun 2013: Wouter
 2181 	- Remove duplicate zlfile variable from options structure.
 2182 
 2183 30 May 2013: Wouter
 2184 	- Fix nsd-mem for printout of values above 4G.
 2185 
 2186 16 May 2013: Wouter
 2187 	- Patch from Lukas Wunner that makes chroot more consistent.
 2188 	  Make all paths absolute with the chrootdir in front, or use
 2189 	  an absolute zonesdir with other patsh relative to that.
 2190 
 2191 3 May 2013: Wouter
 2192 	- Fix race on exit of nsd, for restarts, so that the pidfile-pid
 2193 	  process waits until port53 has been closed before exiting.
 2194 	- update acx_nlnetlabs.m4 to v23, sleep w32 fix.
 2195 
 2196 29 April 2013: Wouter
 2197 	- Remove unused pointer and fixup chroot include for trail slash.
 2198 
 2199 26 April 2013: Wouter
 2200 	- Patch from Lukas Wunner that makes nsd.conf include files work
 2201 	  inside chroot/etc environments on repattern and reconfig.
 2202 
 2203 25 April 2013: Matthijs
 2204 	- New config option "ip-transparent:", to bind to non local addresses
 2205 	  (thanks Arjen Zonneveld).
 2206 	- RRtypes ASFDB, RP, RT should not compress dnames (thanks Peter
 2207 	  van Dijk).
 2208 
 2209 19 April 2013: Wouter
 2210 	- own snprintf, fix use of snprintf return value (in debug print).
 2211 
 2212 18 April 2013: Wouter
 2213 	- fix bug #491: pick program name (0th argument) as syslog identity.
 2214 
 2215 9 April 2013: Wouter
 2216 	- Bug #494: Exit with return code 1 if socket code fails. (from 3.2)
 2217 	- Fix B64_NTOP replacement definitions in configure.ac.
 2218 
 2219 26 March 2013: Wouter
 2220 	- update lookup3.c with better endianness detection.
 2221 
 2222 25 March 2013: Wouter
 2223 	- faster nsec3 updates.
 2224 	- Fixup contrib/bug390.patch for 4.0.0b4.
 2225 	- remove leak of nsec3.
 2226 	- allocate radixtree in region for small (5%) total savings and
 2227 	  about 15% savings in the radixtree itself (due to many small alloc
 2228 	  savings in region).
 2229 
 2230 22 March 2013: Wouter
 2231 	- use less memory for non-nsec3, nsec3tree.
 2232 
 2233 18 March 2013: Wouter
 2234 	- update nsd-mem with pretty printout and RRL count.
 2235 
 2236 14 March 2013: Wouter
 2237 	- Fix memory statistics in nsd_munin_.
 2238 
 2239 8 March 2013: Wouter
 2240 	- nsd-mem tool initial commit.
 2241 
 2242 7 March 2013: Wouter
 2243 	- notify information is logged at correct verbosity level, 1.
 2244 
 2245 5 March 2013: Matthijs
 2246 	- Add hash to rrl bucket
 2247 
 2248 5 March 2013: Wouter
 2249 	- Fixup the growth and shrinkage of nsd.db.  This should use less
 2250 	  calls to remap and change the file and mmap size.
 2251 
 2252 15 February 2013: Wouter
 2253 	- Fix compile on bigendian netbsd alpha.
 2254 	- Fixup tests for older dig (check if +noedns option is supported)
 2255 
 2256 11 February 2013: Matthijs
 2257 	- Fix outgoing-interface: Don't fail if family is IPv6 but
 2258 	  only IPv4 outgoing-interface is set, or vice versa.
 2259 
 2260 11 February 2013: Wouter
 2261 	- fix tcp zonetransfer pipeline lookup function.
 2262 	- remove compiler warning for memset from tsig read.
 2263 
 2264 7 February 2013: Wouter
 2265 	- detect endianness in lookup3 on BSD, patch from Brad Smith.
 2266 	- nsd-control verbosity prints out verbosity level without argument.
 2267 	- nsd-control status prints out ratelimit if ratelimit is enabled.
 2268 
 2269 5 February 2013: Wouter
 2270 	- Fix that old zonefile does not override newer AXFR for slave zones.
 2271 	- Nicer printout of notify.
 2272 	- beta4
 2273 
 2274 4 February 2013: Wouter
 2275 	- Fix AXFR of NSEC3 slave zone.
 2276 
 2277 1 February 2013: Wouter
 2278 	- Less printout of 'bad transfer'.
 2279 
 2280 31 January 2013: Wouter
 2281 	- Fix that nsec3 zones are precompiled when read from udb.  This
 2282 	  caused assertion failures.
 2283 	- Fix is_apex flag for zones read from udb.
 2284 
 2285 29 January 2013: Matthijs
 2286 	- RRL documented in nsd.conf.sample
 2287 
 2288 29 January 2013: Wouter
 2289 	- printout log less verbosely, not every axfr packet.
 2290 	- remove printout of "bad transfer" to the log for notimpl.
 2291 	- fixup tests for new netstat and new netcat.
 2292 
 2293 25 January 2013: Wouter
 2294 	- fix gcc warning, do not use uninit value for rng init.
 2295 	- fix zonefiles-check: entry in nsd.conf
 2296 	- remove -fwhole-program gcc flag usage.  We cannot reliably detect
 2297 	  if it works without failure.
 2298 
 2299 23 January 2013: Wouter
 2300 	- beta3
 2301 
 2302 22 January 2013: Wouter
 2303 	- Fix time calculation of zone transfer.
 2304 	- log ip address with tcp failure.  
 2305 
 2306 21 January 2013: Wouter
 2307 	- Improve tabs in sample nsd.conf for different tabsizes.
 2308 	- Fix segv if xfrdir does not exit.
 2309 	- create xfrdir on make install (does not remove on make uninstall,
 2310 	  because this could be /tmp).
 2311 	- do not leave task files in /tmp if nsd fails to startup because
 2312 	  of file permissions.
 2313 	- do-ip4 and do-ip6 nsd.conf options just like unbound.
 2314 	- fixed testset for dig9 default with edns.
 2315 
 2316 18 January 2013: Wouter
 2317 	- Fix configure for gentoo gcc and headers.
 2318 	- List libevent in README.
 2319 	- Tabs and spaces nicer in nsd.conf.sample.
 2320 	- Fix spurious assertion failure for some rrl blocks.
 2321 
 2322 16 January 2013: Wouter
 2323 	- Added zonefiles-check option, default yes, check mtimes of zone files
 2324 	  on sighup and startup (from Robin Hack).
 2325 
 2326 15 January 2013: Wouter
 2327 	- documented that the _implicit_ pattern names are used internally.
 2328 
 2329 10 January 2013: Wouter
 2330 	- updated RELNOTES.
 2331 	- applied patch from Robin Hack to remove double pid file truncation.
 2332 	- repattern is called reconfig (because most config options are
 2333 	  picked up, except for superuser options (chroot, logfile, port)).
 2334 	- document that the zonefile attribute can be empty.
 2335 
 2336 9 January 2013: Wouter
 2337 	- 4.0.0b2 is beta2 version tag.
 2338 
 2339 8 January 2013: Matthijs
 2340 	- Merge changes from 3.2.15 with trunk:
 2341 		* Update docs: CREDITS, NEW-CFG-OPTION, REQUIREMENTS,
 2342 		  RELNOTES, TODO
 2343 		* Update dname_test.tpkg test.
 2344 		* TSIG init only fails if no digests at all can be found.
 2345 		* Remove unused tsig_get_algorithm_by_id code (was used by
 2346 		  nsd-xfer).
 2347 		* Fix some fd leaks.
 2348 		* Bug #485: Fallback to DEFAULT_TTL if MSB is set.
 2349 		* Fix RCODE when xNAME loop final answer not exist to NXDOMAIN.	
 2350 
 2351 8 January 2013: Wouter
 2352 	- Fix make outside of source directory.
 2353 
 2354 7 January 2013: Wouter
 2355 	- fixed uninit variable for empty zone axfr request
 2356 	- fixed alloc of acl options for config zones so they can be deleted.
 2357 	- fixed that pattern name is copied, so that patterns stay the same.
 2358 	- repattern also rereads the zones in the config file and applies that
 2359 	  to the running server.
 2360 
 2361 21 December 2012: Wouter
 2362 	- --with-logfile sets the logfile inside the example documentation.
 2363 	- Fixed addzone and delzone inside chroot (thanks Will Pressly).
 2364 
 2365 19 December 2012: Wouter
 2366 	- Fixup for libevent-2.1.2.
 2367 
 2368 18 December 2012: Wouter
 2369 	- makedist makes sha256 for tarballs.
 2370 	- nsd-control start runs an absolute path to start sbin/nsd.
 2371 
 2372 17 December 2012: Wouter
 2373 	- Fix for use with libev (no use of event.ev_flags).
 2374 
 2375 12 December 2012: Wouter
 2376 	- 4.0.0b1 is beta1 version.
 2377 
 2378 11 December 2012: Matthijs
 2379 	- Better ILNP RR parsing (thanks Stephane Bortzmeyer).
 2380 
 2381 11 December 2012: Wouter
 2382 	- fix libevent=no signals on Solaris.
 2383 	- Fix handle of activated zones from timeout event.
 2384 	- contrib/nsd_munin_ updated with memory lookup for BSD.
 2385 
 2386 10 December 2012: Wouter
 2387 	- implement --with-libevent=no.
 2388 
 2389 10 December 2012: Matthijs
 2390 	- Bug #483: Better error messages for TSIG errors.
 2391 	- RFC 2845: If BADKEY or BADSIG, RCODE should be NOTAUTH.
 2392 	  Also, continue TSIG verification if NOTAUTH.
 2393 
 2394 7 December 2012: Wouter
 2395 	- stable pidfile, xfrd is process leader and forks server-parent.
 2396 
 2397 5 December 2012: Wouter
 2398 	- NSD4_imp_6 tag.
 2399 	- trunk has imp_7 implementation.
 2400 
 2401 4 December 2012: Wouter
 2402 	- NSD-RRL documented in manpage.
 2403 
 2404 3 December 2012: Wouter
 2405 	- Fixup exit of server-child while notifies are incoming.
 2406 
 2407 28 November 2012: Wouter
 2408 	- RRL implements classification type RRSIG.
 2409 
 2410 26 November 2012: Wouter
 2411 	- Fix to make nsd.udb portable between 32bit and 64bit machines.
 2412 	- Fix to make udb mmap work for FreeBSD8 when it grows significantly.
 2413 
 2414 23 November 2012: Wouter
 2415 	- Fix compiler warnings and fix blocking pipes.
 2416 	- default tcp-count set to 100.
 2417 
 2418 21 November 2012: Wouter
 2419 	- Implement rrl log of unblock for collision.
 2420 	- imported TLSA and ILNP support from NSD3.
 2421 
 2422 19 November 2012: Wouter
 2423 	- Fix bug 480: libevent use when tcp-count is hit caused hang (in NSD4).
 2424 
 2425 9 November 2012: Wouter
 2426 	- Log when NSD-RRL stops a stream from being blocked.
 2427 
 2428 8 November 2012: Willem
 2429 	- Fix AXFR. Loop through the zone to transfer only.
 2430 
 2431 2 November 2012: Wouter
 2432 	- Fix bug 478: declaration after statement (for gcc 2.95).
 2433 
 2434 1 November 2012: Wouter
 2435 	- Fix default settings for RRL.
 2436 
 2437 30 October 2012: Wouter
 2438 	- review fixup of RRL SLIP response.
 2439 	- RRL uses dev/random at start, nonRRL does not.
 2440 
 2441 26 October 2012: Wouter
 2442 	- nsd-control repattern also changes rrl-ratelimit and whitelist limit.
 2443 
 2444 17 October 2012: Wouter
 2445 	- Fix alignment problem in zone transfer pipeline code.
 2446 	- Fix random generator generating negative.
 2447 	- Fix udb radtree strspace creation bug.
 2448 
 2449 15 October 2012: Wouter
 2450 	- Fix activated zone does not interrupt transfer.
 2451 	- Log of connection failure for zone transfer is neater.
 2452 
 2453 12 October 2012: Wouter
 2454 	- Fix invalid time argument in nsd control (for OpenBSD).
 2455 
 2456 11 October 2012: Wouter
 2457 	- Fix build on OpenBSD (Thanks Oliver Peter).
 2458 	- tpkg for RRL.
 2459 
 2460 10 October 2012: Wouter
 2461 	- implement nsd-checkconf option use of rrl-whitelist.
 2462 
 2463 9 October 2012: Wouter
 2464 	- with --enable-ratelimit you enable ratelimiting, with verbosity 2
 2465 	  it logs what is ratelimited for operational inspection.
 2466 	- unit test for rrl.
 2467 	- rrl uses mmap to save state across reloads.
 2468 	- rrl enum and u16 flags (dnskey type).
 2469 	- rrl whitelist and config.
 2470 
 2471 8 October 2012: Wouter
 2472 	- Sync with unbound lookup3, has raninit value.
 2473 
 2474 5 October 2012: Wouter
 2475 	- fix bug with event loop in zone transfer pipeline.
 2476 	- close xfrd_sock_p in server_child because otherwise due to use of
 2477 	  kqueue, it gets a broken pipe when that process exits (on FreeBSD).
 2478 
 2479 4 October 2012: Wouter
 2480 	 - Fixup no use of internals ev_flags of libevent.
 2481 
 2482 1 October 2012: Wouter
 2483 	- fix xfrd tcp skip.
 2484 
 2485 21 September 2012: Wouter
 2486 	- tzset before chroot for correct timezone (from Camiel Dobbelaar).
 2487 	- pipeline support for AXFR and IXFR tcp queries.
 2488 
 2489 11 September 2012: Wouter
 2490 	- writev support for TCP.
 2491 
 2492 28 August 2012: Wouter
 2493 	- TXT records with components longer than 255 fail to parse,
 2494 	  but without segfault, it continues processing with non NULL value.
 2495 
 2496 27 August 2012: Wouter
 2497 	- libevent in server_child.
 2498 
 2499 21 August 2012: Matthijs
 2500 	- Fix bug#464: Conditionally define MAXHOSTNAMELEN
 2501 
 2502 20 August 2012: Wouter
 2503 	- Fix hang on exit in xfrd.
 2504 	- optimized socket counts for zone transfer speed.
 2505 
 2506 13 August 2012: Wouter
 2507 	- Fix xfrd libevent events.
 2508 
 2509 10 August 2012: Wouter
 2510 	- libevent in xfrd.
 2511 
 2512 26 July 2012: Yuri
 2513 	- Prioritize notify sender for requesting XFR.
 2514 	  (thanks Ilya Bakulin)
 2515 
 2516 19 July 2012: Willem
 2517 	- Fix for VU#624931 CVE-2012-2978: NSD denial of service 
 2518 	  vulnerability from non-standard DNS packet from any host
 2519 	  on the internet.
 2520 	  http://www.nlnetlabs.nl/downloads/CVE-2012-2978.txt
 2521 
 2522 18 July 2012: Wouter
 2523 	- Fix bug#460: man page correction - identity.
 2524 
 2525 9 July 2012: Wouter
 2526 	- delete temporary transfer files on exit of xfrd and reload.
 2527 	- when tasks are applied, reload checks if it must exit between
 2528 	  tasks, so that it can quickly exit when NSD is told to quit.
 2529 	- fix bug in apply_xfr that must use an udb_ptr because it shifts
 2530 	  when new allocations are made.
 2531 
 2532 6 July 2012: Wouter
 2533 	- add xfrdir: "/tmp" option and configure --with-xfrdir="/tmp".
 2534 	  The nsd.task files and a subdirectory for zone transfers are
 2535 	  created there.
 2536 
 2537 2 July 2012: Wouter
 2538 	- fix checkconf unit test and add test for backwards compatibility
 2539 	  for difffile: "x" statement.
 2540 
 2541 29 June 2012: Wouter
 2542 	- Implemented /tmp/nsd.xfr.xxx/ to replace ixfr.db.  So that nsdc
 2543 	  patch is no longer needed.
 2544 
 2545 8 June 2012: Wouter
 2546 	- Fix tpkg test cutest_qroot and rr-test for printout of algorithms
 2547 	  as numbers, and copy of DO flag to the answer.
 2548 	- pick up fd fix from 3_2 branch: Some more fd >= 0 to fd != -1 fixes
 2549 
 2550 31 May 2012: Matthijs
 2551 	- Sync with 3.2 branch
 2552 
 2553 24 February 2012: Wouter
 2554 	- Fix for qtype ANY for a wildcard domain in NSEC signed zone.
 2555 
 2556 9 February 2012: Wouter
 2557 	- Update acxnlnetlabs.m4 version 21, fixed MEMCMP_BROKEN #undef line.
 2558 
 2559 23 January 2012: Wouter
 2560 	- remove clang security warning about %n in format string.
 2561 
 2562 20 January 2012: Wouter
 2563 	- Fix bug #430: segfault when MAX_INTERFACES set to more than 65K.
 2564 	- Fix configure for OpenIndiana sunos 5.11, acx_nlnetlabs.m4 update.
 2565 
 2566 12 January 2012: Matthijs
 2567         - Fix bug #421: truncate pidfile on shutdown, before unlink.
 2568 
 2569 10 January 2012: Wouter
 2570 	- removed unused variables.
 2571 
 2572 10 November 2011: Wouter
 2573 	- acxnlnetlabs.m4 updated to version 16, better lto check (a.out drop).
 2574 
 2575 3 November 2011: Wouter
 2576 	- fflush zonelistfile after zone add or delete.
 2577 
 2578 1 November 2011: Wouter
 2579 	- Fix -flto detection for llvm compiler on Lion.
 2580 
 2581 10 October 2011: Matthijs
 2582 	- Don't clear the AA bit if there is an authoritative CNAME in the
 2583 	  answer section (as shown in RFC 1034, Section 6.2.7, 2nd example).
 2584 
 2585 10 October 2011: Wouter
 2586 	- squelch EPIPE when writing AXFR, enable with verbosity 2.
 2587 
 2588 26 September 2011: (Matthijs, from NSD3_2 branch)
 2589 	- Copy the DO bit to the response.
 2590 	- Don't return SERVFAIL on a domain that looks like a NSEC3
 2591 	  domain but is actually a empty non-terminal.
 2592 
 2593 19 August 2011: Wouter
 2594 	- Fix segfault if no logfile is used.
 2595 
 2596 5 August 2011: Wouter
 2597 	- Fix make from repeating action already taken.
 2598 	- Fix compile without openssl.
 2599 
 2600 3 August 2011: Wouter
 2601 	- silence 'Broken pipe' messages in log (visible with verbosity 2).
 2602 	- fix makedist.sh for removal of patch, notify, xfer. new nsd-control.
 2603 	- tag 4.0.0-imp-5 created.
 2604 	- trunk is 4.0.0-imp-6 under development.
 2605 	- added nsd_munin_ script for statistics monitoring to contrib.
 2606 
 2607 2 August 2011: Wouter
 2608 	- fix compile on Ubuntu 11.04 systems, detects cc system header issue.
 2609 
 2610 1 August 2011: Wouter
 2611 	- fix checkconf test for remote control options.
 2612 	- fix warning on Ubuntu 10.04, fix autoconf 2.68 warning on NetBSD.
 2613 
 2614 29 July 2011: Wouter
 2615 	- zones with no zonefile are not written to text (assumes you can
 2616 	  get AXFR and IXFR for the contents).  They are stored in nsd.db.
 2617 	- test for repattern.
 2618 
 2619 28 July 2011: Wouter
 2620 	- nsd-control repattern reads TSIG and pattern configuration.
 2621 
 2622 25 July 2011: Wouter
 2623 	- fixed tests for removed tools from nsd, with replacements.
 2624 	  replaced nsd-patch with nsd-control write. replaced nsd-notify with
 2625 	  ldns-notify. replaced nsd-xfer with dig -t axfr.
 2626 	- fix for xfrd restart if crashed. xfrd knows if a reload is
 2627 	  active at that time so it cannot start another one at the same
 2628 	  time.  New shortsoa track for start that does not use taskdb
 2629 	  in use by reload.  taskdb in use by crashed xfrd is recreated,
 2630 	  in case it is corrupt.  This keeps the nsd.db intact, keeps
 2631 	  reload running with its updated and keeps service from the
 2632 	  server processes active.
 2633 
 2634 22 July 2011: Wouter
 2635 	- added contrib/nsd.init (nsdc.sh that only does start,stop).
 2636 	- removed nsdc.sh, nsd-xfer, nsd-notify, nsd-patch.
 2637 	  for rc.d: contrib/nsd.init, or platform specific init script.
 2638 	  nsd-xfer: see nsd-control transfer, or force_transfer.
 2639 	  nsd-notify: see nsd-control notify.
 2640 	  nsd-patch: see (cron job to) nsd-control write.
 2641 
 2642 21 July 2011: Wouter
 2643 	- nsd-control notify, transfer and force_transfer.
 2644 	- fix for bug in write and reload zone option.
 2645 	- nsd-control zonestatus command.
 2646 
 2647 20 July 2011: Wouter
 2648 	- reload can be given optional zone argument.
 2649 	- nsd-control reopen_logfile.
 2650 	- nsd-control write changed zonefiles.
 2651 
 2652 18 July 2011: Wouter
 2653 	- Fix xfrd activation of zones to not break running zone transfers.
 2654 
 2655 13 July 2011: Wouter
 2656 	- fix that signal causes stats to be printed to log.
 2657 	- fix stats without remotecontrol.
 2658 	- ignore notify and soainfo for deleted zone, if due to race they
 2659 	  arrive after the deletion.
 2660 	- tpkg test for nsd-control, addzone and delzone
 2661 
 2662 5 July 2011: Wouter
 2663 	- fix link to ssl with FreeBSD make.
 2664 
 2665 1 July 2011: Wouter
 2666 	- fix optimize compile to link with ssl.
 2667 
 2668 29 June 2011: Wouter
 2669 	- nsd-control delzone zone.  Removes zone from zonelist.
 2670 	- stats includes number of zones.
 2671 	- RAXFR stat, which has not worked since NSD 1.2.4, reinstated.
 2672 	- print more memory statistics, for xfrd and config.
 2673 
 2674 28 June 2011: Wouter
 2675 	- nsd-control addzone zone pattern.  Adds new zone, slave or master.
 2676 
 2677 27 June 2011: Wouter
 2678 	- nsd-control stats and stats_noreset (if enabled at compile time).
 2679 	  nsd does not print statistics to logfile if period is 0.
 2680 
 2681 23 June 2011: Wouter
 2682 	- -flto check supports clang compiler.
 2683 
 2684 22 June 2011: Wouter
 2685 	- remote control, config, client, setup and status command.
 2686 	- reload nsd-control command.
 2687 	- stop nsd-control command.
 2688 	- verbosity nsd-control command.
 2689 
 2690 14 June 2011: Wouter
 2691 	- Fix to have no authority NS set processing for CNAMEs.
 2692 
 2693 9 June 2011: Wouter
 2694 	- fix bug that relptrs have to be initialized with rel_ptr_init() when
 2695 	  created and zeroed with rptr_zero before deletion.
 2696 	- tag 4.0.0-imp4 created
 2697 	- trunk is 4.0.0-imp5 under development.
 2698 
 2699 8 June 2011: Wouter
 2700 	- nsd reads the zonelist file on start.
 2701 	- updated acx_nlnetlabs.m4 to version 11.
 2702 	- configure checks size of off_t and increase region-allocator
 2703 	  alignment to 8 if it is 64bit and alignment at 4.
 2704 	- fixed bug where not all references were removed before mmap was
 2705 	  synced to another process.
 2706 
 2707 7 June 2011: Wouter
 2708 	- code to add and remove zonelist entries, and unit test.
 2709 
 2710 6 June 2011: Wouter
 2711 	- fix unit tests for mmap with TODO and removal of -f in nsd-patch.
 2712 	- zone expiry is communicated via the mmap, and not via the pipes,
 2713 	  simplifying the code significantly as well as making a large number
 2714 	  of zones more feasible.
 2715 
 2716 1 June 2011: Wouter
 2717 	- mmap used for parent-xfrd communication of tasks and task results.
 2718 	  SIGHUP is sent to xfrd so it can become a task in the normal
 2719 	  workflow. This can process about 4500 zones per second (this was
 2720 	  with lots of debug prints per zone, in debug compile). The mmaps
 2721 	  are file-backed with /tmp/ files.  They are removed on a clean exit.
 2722 	- nsd.db and tmp mmaps are created with mode 0600 for safety.
 2723 	- updated flag removed, nsd-patch always in -f force mode (-f removed)
 2724 	  and writes all zones always. Its role is taken over by task results.
 2725 
 2726 30 May 2011: Wouter
 2727 	- Fix Makefile for U in environment, since wrong U is more common than
 2728 	  deansification necessity.
 2729 
 2730 27 May 2011: Wouter
 2731 	- xfrd is forked before the database is read in, thus it does not
 2732 	  consume the memory of the database.  It can be reforked on a crash,
 2733 	  which is like the current case.  Difffile is cleaned by main process
 2734 	  and the soa serials are all sent via pipe instead of via forkmem.
 2735 
 2736 24 May 2011: Wouter
 2737 	- implemented patterns in the nsd.conf file.
 2738 	  they can be instantiated with include-pattern: x.
 2739 	  existing zone definitions keep working (backwards compatible), such
 2740 	  zones really have an implicit pattern and cannot_delete flag set.
 2741 	- work on zonelist read and storage.
 2742 
 2743 20 May 2011: Wouter
 2744 	- from NSD_3_2 branch the fix: bug if the zonefile is changed for a
 2745 	secondary but stored transfers are applied, and stop ixfr to empty.
 2746 	The zone is flagged with error, and the good zone is still in nsd.db
 2747 	for NSD4.
 2748 
 2749 17 May 2011: Wouter
 2750 	- unit test for code coverage on nsec3 ixfr.
 2751 	- tag 4.0.0-imp3 created
 2752 	- trunk is 4.0.0-imp4 under development.
 2753 
 2754 13 May 2011: Matthijs
 2755 	- Fix bug #381 - Binary escaped and transfers.
 2756 
 2757 13 May 2011: Wouter
 2758 	- Unit test nsec3 salt change and fix for sanity check of nsec3 chain.
 2759 	  pretty prints the nsec3 parameters if verbose.
 2760 
 2761 12 May 2011: Wouter
 2762 	- more unit test for nsec3 precompile changes.
 2763 	- unit test for salt change, rehash in udb fix, remove last NSEC3
 2764 	  from chain works, NSEC3PARAM RR fixed up if RR added or removed
 2765 	  from NSEC3PARAM RRset, hashtrees cleared properly, precompile clear
 2766 	  more thorough (not dependant on nsec3_conditions).
 2767 
 2768 11 May 2011: Wouter
 2769 	- fixes for nsec3 precompile code: precompile for empty nonterminals
 2770 	  created when an RR is added. If SOA removed, precompile stays
 2771 	  coherent even though domain_find_zone no longer returns correct zone.
 2772 
 2773 21 April 2011: Wouter
 2774 	- unit test and fixes in nsec3 precompile code.
 2775 
 2776 20 April 2011: Wouter
 2777 	- incremental NSEC3 precompile.
 2778 
 2779 14 April 2011: Wouter
 2780 	- remove chnum. Added numlist sorted by domain.number.
 2781 	  domains that are not used are removed.
 2782 
 2783 13 April 2011: Wouter
 2784 	- Fix is_existing flag for ENT when domain that has a shared ENT
 2785 	  is deleted by IXFR.
 2786 	- zonec can parse strings with RR in it.
 2787 	- unit test for namedb.
 2788 
 2789 8 April 2011: Wouter
 2790 	- porting complete.
 2791 	- tag 4.0.0-imp2 created
 2792 	- trunk is version 4.0.0-imp3.
 2793 
 2794 7 April 2011: Wouter
 2795 	- ported to sunos 4.1.4, the unit test works (udb, radtree in mmap).
 2796 
 2797 6 April 2011: Wouter
 2798 	- UDB_CHECK is enabled if --enable-checking is used.
 2799 	  Because it checks the pointer-administration lists it slows down.
 2800 	- udb-inspect has feature -l that lists zones (and RRs) in nsd.db.
 2801 	- fix memory leak by zonec; the region_cleanup triggers too late.
 2802 	- set listen TCP_BACKLOG to 16 by default, it avoids connect reset
 2803 	  by peer in 1000-zones transfer on an ultra10, thus for many-zones.
 2804 	- default xfrd-reload-timeout to 1 second.
 2805 
 2806 5 April 2011: Wouter
 2807 	- Fix uninitialised value in xfrd nsd_soa, the rdata_count.
 2808 	- Unit test for update of the nsd.db with new contents.
 2809 	- Fix array bounds check in radtree-search function.
 2810 
 2811 4 April 2011: Wouter
 2812 	- removed zonec from tests. fix unknown_rr test, enable ipseckey test.
 2813 	  increased timeouts on tests that are hard on the filesystem.
 2814 	- Fixed IPSECKEY printout by nsd-patch.
 2815 
 2816 30 March 2011: Wouter
 2817 	- nsd edits nsd.db for IXFR and AXFR messages.  since xfrd already
 2818 	  checks zone transfers completely for syntax those errors cannot
 2819 	  happen, if they do (memory, disk error) the file is left dirty,
 2820 	  to be recreated on the next start (and the process dies).
 2821 
 2822 29 March 2011: Wouter
 2823 	- nsd recreates nsd.db if it has not been closed properly or is
 2824 	  corrupted (bad header or wrong file format).
 2825 
 2826 28 March 2011: Wouter
 2827 	- NSD without zonec.  NSD loads zonefiles on start.
 2828 	  NSD stores NSEC3hashes on disk.
 2829 
 2830 25 March 2011: Wouter
 2831 	- Fix bug #365, you can set NSDC_ZONEC_VERBOSE and NSDC_PATCH_STYLE
 2832 	  in the environment where nsdc runs.
 2833 	- Fix bug #375, typos in nsd.conf.5.
 2834 	- First step of bug #369: RRSIG DNSKEY sets zone to be treated DNSSEC.
 2835 	- Fix bug #302, nsd accepts XFR but refuses to re-read the slave zone.
 2836 	- NSD4 work: removed zonec, nsdc patch does not write text files
 2837 	  for slave zones (as if option is always to binary, this capability
 2838 	  returns later), nsdc patch deletes the ixfr.db.
 2839 	  kill-HUP rereads zone files that have changed.
 2840 
 2841 24 March 2011: Wouter
 2842 	- compile fixes for BSD. preserve RRset order.
 2843 
 2844 23 March 2011: Wouter
 2845 	- udbzone, store and read zone data in the random-access udb format.
 2846 
 2847 21 March 2011: Wouter
 2848 	- udbradtree works. udb-inspect tool can print radtree details.
 2849 
 2850 16 March 2011: Matthijs
 2851 	- undo fix bug#325: messes up dname compression
 2852 
 2853 14 March 2011: Wouter
 2854 	- udb code added.  uses lookup3 from unbound (public domain).
 2855 	- unit test for radix tree in cutest.
 2856 	- unit test for udb in cutest.
 2857 	- udb-inspect tool to printout internals of udb files.
 2858 	  for debug, not installed or built by default.
 2859 	- removed --disable-radixtree option.
 2860 
 2861 11 March 2011: Wouter
 2862 	- Removed precompile features, speed gain took too much memory.
 2863 	- domain number to size_t.
 2864 
 2865 9 March 2011: Wouter
 2866 	- DNAME synthesis of CNAME.  Uses TTL of the DNAME record.
 2867 	- nsec3 and wildcard code.  No additional section for wildcards.
 2868 	  Also CNAME and DNAME replies contain only that record (and synth
 2869 	  CNAME), the chain is not followed.
 2870 
 2871 8 March 2011: Wouter
 2872 	- precompile work:
 2873 		class ANY gets AA flag, SOA and type-NS processing, just
 2874 		like BIND (9.6) and it simplifies processing for NSD.
 2875 	  other than compression difference (precompile compresses smaller),
 2876 	  there are no differences in a 49000 query testset against the root,
 2877 	  without EDNS.
 2878 
 2879 7 March 2011: Wouter
 2880 	- check chown value and report high verbosity its error.
 2881 
 2882 3 March 2011: Matthijs
 2883 	- fix #bug352: fix hardcoded paths in manpages.
 2884 
 2885 2 March 2011: Matthijs
 2886 	- fix #bug354: make realclean cleans too much
 2887 	- added make devclean for cleaning up autoconf and automake stuff
 2888 	- Fix hardcoded paths in nsd.conf.sample and nsd.conf.5
 2889 
 2890 24 February 2011: Matthijs
 2891 	- fix #bug350: refused notifies should log client ip.
 2892 
 2893 2 March 2011: Wouter
 2894 	- Fix AXFR service with radix tree.
 2895 	- cutest for speed of answer encoding, and format of answers for root.
 2896 
 2897 1 March 2011: Wouter
 2898 	- after merge, remove double -I. from makefile.
 2899 	- radixtree is default.  Nicer makefile and no warnings from unused
 2900 	  flex functions.
 2901 
 2902 1 March 2011: Wouter
 2903 	- merge with trunk r3181:
 2904 	24 February 2011: Matthijs
 2905 		- fix #bug350: refused notifies should log client ip.
 2906 	24 February 2011: Wouter
 2907 		- fix bug#362: outgoing-interface and v4 vs. v6 leads to spurious
 2908 		  warning messages.
 2909 		- fix bug#363: nsd-checkconf -v does not print outgoing-interface ok.
 2910 		- fix that nsd-checkconf -o outgoing-interface omits NOKEY.
 2911 	23 February 2011: Wouter
 2912 		- fix for bug#357, make xfrd quit with many zones.
 2913 		
 2914 23 February 2011: Wouter
 2915 	- Merge trunk r3151.
 2916 		22 February 2011: Matthijs
 2917 			- Patch Jakob Schlyter (setusercontext before chroot).
 2918 		18 February 2011: Wouter
 2919 			- overhaul of testset, with port uniqueness and fast start and stop.
 2920 		11 February 2011: Wouter
 2921 			- added test case to do with bug357.
 2922 		24 January 2011: Matthijs
 2923 			- Patch Tom Hendrikx (only errors to stderr when doing nsdc patch).
 2924 
 2925 17 February 2011: Wouter
 2926 	- Fix leak of compressiontable when the domain table increases in size.
 2927 	- added test case to do with bug357.
 2928 
 2929 10 February 2011: Wouter
 2930 	- Merged with trunk r3115 changes:
 2931 		20 January 2011: Wouter
 2932 			- Fix on shutdown, then getaddrinfo acquired data uses freeaddrinfo.
 2933 		19 January 2011: Wouter
 2934 			- Bug #348: no -I/usr and -L/usr for libcrypto in /usr.
 2935 		5 January 2011: Matthijs
 2936 			- Fix nsdc update and nsdc notify
 2937 			- Force outgoing interface to be a single range acl
 2938 			- Update documentation about acl options
 2939 			- Code review
 2940 			- Fix nsdc so it can use hmac-sha* tsigs
 2941 			- Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch
 2942 		4 January 2011: Yuri
 2943 			- Doc spelling error, bug#345
 2944 		15 December 2010: Wouter
 2945 			- fix race condition when nsd is stopped while a reload is in
 2946 			  progress, often when rc.d does nsdc patch; nsdc stop in sequence.
 2947 			  reload is now signalled to stop too.
 2948 		10 December 2010: Matthijs
 2949 			- fix bug#306: applied documentation patch
 2950 			- fix bug#253: now also for QTYPE=DS.
 2951 		12 October 2010: Wouter
 2952 			- Fix compilation on SunOS4.
 2953 		24 September 2010: Matthijs
 2954 			- Bug #328: nsd-checkconf overrun
 2955 		1 September 2010: Yuri
 2956 			- Support for huge TXT records.
 2957 		23 Aug 2010: Wouter
 2958 			- fix bug#325: remove stale files from cvs from repo.
 2959 		16 Aug 2010: Yuri
 2960 			- zonec, MAXRDATALEN check was off by one.
 2961 		9 Aug 2010: Matthijs
 2962 			- nsdc return 1 outside function, should be exit 1
 2963 			- Bug #320: arc4random
 2964 		2 Aug 2010: Matthijs
 2965 			- Bump to 3.2.7.
 2966 		21 July 2010: Wouter
 2967 			- NUM_RECV_PER_SELECT 100 implemented, configure check if kernel
 2968 			  supports this.
 2969 
 2970 17 January 2011: Matthijs
 2971 	- Bump to 3.2.8.
 2972 
 2973 5 January 2011: Matthijs
 2974 	- Fix nsdc update and nsdc notify
 2975 	- Force outgoing interface to be a single range acl
 2976 	- Update documentation about acl options
 2977 	- Code review
 2978 	- Fix nsdc so it can use hmac-sha* tsigs
 2979 	- Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch
 2980 
 2981 20 July 2010: Wouter
 2982 	- Branched from trunk. Added radix tree.
 2983 	- use -fwhole-program if gcc supports it.
 2984 
 2985 19 July 2010: Matthijs
 2986 	- fix bug#314, NSEC next field now correctly escapes spaces.
 2987 	  Also fixes label overflow issue.
 2988 	- Put back HAVE_SSL.
 2989 	- Code reviews.
 2990 	- Add donor text.
 2991 
 2992 6 July 2010: Wouter
 2993 	- Compiles on Minix 3.1.7; checks ss_family, suseconds_t, some
 2994 	  warning fixes.  Needs socketpair to work, e.g.
 2995 	  http://wiki.minix3.org/en/SummerOfCode2010/UnixDomainSockets.
 2996 
 2997 2 July 2010: Wouter
 2998 	- Put back CHECK_SSL in configure (removed with disable-tsig).
 2999 
 3000 17 June 2010: Matthijs
 3001 	- Expand command line option '-a' and config option 'ip-address:'
 3002 	  with port number.
 3003 	- Removed --disable-nsid, --disable-dnssec, --disable-tsig
 3004 
 3005 14 April 2010: Matthijs
 3006 	- Bump to 3.2.6.
 3007 
 3008 14 April 2010: Matthijs
 3009 	- uintptr_t fallback value to void*
 3010 	- Backwards compatibility for MAP_ANONYMOUS
 3011 	- Tag 3.2.5.
 3012 
 3013 31 March 2010: Matthijs
 3014 	- Commit b64_pton optimalized compat code (Martin Svec).
 3015 	- Commit (experimental) mmap-alloc-namedb patch (Martin Svec).
 3016 	- Commit parse-token-leaks patch (Martin Svec).
 3017 
 3018 27 March 2010: Wouter
 3019 	- fix bug#303: misspelled error message.
 3020 
 3021 19 March 2010: Wouter
 3022 	- documented nsid: "hex string" setting in nsd.conf.sample.
 3023 
 3024 24 February 2010: Matthijs
 3025 	- nsid: option
 3026 	- Enable NSID support by default
 3027 	- --with-chroot configure option
 3028 	- Less stupid chroot error handling
 3029 
 3030 15 February 2010: Matthijs
 3031 	- Skip memory cleanup to speed up reload (Martin Svec)
 3032 
 3033 1 February 2010: Wouter
 3034 	- compat code for memcmp unsigned comparisons.
 3035 
 3036 21 January 2010: Wouter
 3037 	- fixup debug sprintf to snprintf.
 3038 
 3039 21 January 2010: Matthijs
 3040 	- Secure string functions, including compat code for strlcat.
 3041 	- Randomness utility function
 3042 	- Prepare for default chroot
 3043 
 3044 6 January 2010: Wouter
 3045 	- check write errors when marking commit failed when difffile is broken.
 3046 
 3047 6 January 2010: Matthijs
 3048 	- Move to 3.2.5
 3049 
 3050 23 December 2009: Matthijs
 3051 	- Store new options in nsd structure.
 3052 
 3053 22 December 2009: Matthijs
 3054 	- New options 'ipv4-edns-size:' and 'ipv6-edns-size'.
 3055 	- Bug 276
 3056 	- Bug 286
 3057 	- Bug 288
 3058 
 3059 21 December 2009: Matthijs
 3060 	- New option 'tcp-query-count:'.
 3061 	- New option 'tcp-timeout:' and configure option '--with-tcp-timeout'.
 3062 	- New zone option 'notify-retry:'.
 3063 
 3064 11 December 2009: Wouter
 3065 	- Disable UDP IPv4 DF flag on Linux/FreeBSD/AIX with socket option.
 3066 
 3067 20 November 2009: Matthijs
 3068 	- NSID bugfix: NSD did not recognize NSID in the query.
 3069 
 3070 9 September 2009: Matthijs
 3071 	- DLV support
 3072 
 3073 18 August 2009: Matthijs
 3074 	- Bug 269.
 3075 	- Typo: logincap.h -> login_cap.h
 3076 
 3077 12 August 2009: Matthijs
 3078 	- Maintainers feedback
 3079 
 3080 10 August 2009: Matthijs
 3081 	- Code review.
 3082 	- Also send errors to /dev/null in controlled_stop.
 3083 	- chown nsd.db
 3084 
 3085 7 August 2009: Matthijs
 3086 	- Bug 266: don't have strptime build error
 3087 
 3088 28 July 2009: Matthijs
 3089 	- Bug 263: make TSIG algorithms comparison case insensitive.
 3090 
 3091 23 July 2009: Matthijs
 3092 	- Patch Paul Wouters for NSD using hardcoded name.
 3093 
 3094 13 July 2009: Matthijs
 3095 	- Bug 236: allow RRs before the SOA RR.
 3096 	- Bug 253: No need for NS RRset in authority section, when returning
 3097 	  final answer for QTYPE=DNSKEY.
 3098 
 3099 29 June 2009: Wouter
 3100 	- patch for use of Linux IPV6_MTU option, so that on linux the default
 3101 	  EDNS UDP size advertised becomes 4096 over IPv6.  It fragments the
 3102 	  packets using the IPv6 minimum MTU.
 3103 
 3104 19 May 2009: Matthijs
 3105 	- Clean up configure script (install hickup)
 3106 	- Bug 249: Remove unnecessary LLONG_MIN and LLONG_MAX code.
 3107 	- Replace strtoll code with own strtoserial function.
 3108 	- Move up to 3.2.3.
 3109 
 3110 11 May 2009: Matthijs
 3111 	- Add Off-by-one test
 3112 
 3113 6 May 2009: Matthijs
 3114 	- Small fix in SO_REUSEADDR warning log message.
 3115 	- Off-by-one bugfix (thanks Ilja van Sprundel, IOActive)
 3116 
 3117 29 April 2009: Matthijs
 3118 	- A more ensured do_stop (useful fo nsdc restart).
 3119 
 3120 2 February 2009: Matthijs
 3121 	- Bugfix #234.
 3122 	- Bugfix #235.
 3123 	- Reset 'error occurred' after notifying an error occurred at the $TTL or   
 3124 		$ORIGIN directive (Otherwise, the whole zone is skipped because the
 3125 		error is reset after reading the SOA).
 3126 
 3127 2 February 2009: Matthijs
 3128 	- Bugfix: return BADVERS when EDNS version > 0, instead of 0x1<FORMERR>.
 3129 
 3130 19 January 2009: Matthijs
 3131 	- Bug 230: nsd-*: use stdout for non-error output (instead of stderr).
 3132 	- Don't do strptime test when cross compiling.
 3133 
 3134 17 January 2009: Jelte
 3135 	- Fix file rotation when no logfile but chroot.
 3136 
 3137 8 January 2009: Matthijs
 3138 	- New nsd-patch option -o dbfile (set output.db)
 3139 	- update nsdc to deal with the new nsd-patch options
 3140 	- strptime compat fix
 3141 
 3142 6 January 2009: Matthijs
 3143 	- New nsd-patch option -s (skip writing zonefiles)
 3144 	- Removed some region_create memchecks (not needed)
 3145 
 3146 5 January 2009: Matthijs
 3147 	- Bug 218
 3148 	- Bug 222
 3149 	- Replace SHA256_DIGEST_LENGTH with nicer HAVE_EVP_SHA256
 3150 
 3151 10 December 2008: Matthijs
 3152 	- Bugfix: better error message when ixfr.db cannot be read
 3153 
 3154 18 November 2008: Matthijs
 3155 	- chown logfile, don't do file rotation if logfile is outside absolute 
 3156 		and outside chroot.
 3157 
 3158 17 November 2008: Matthijs
 3159 	- File rotation for nsd.log when owned by nsd (+ tpkg test).
 3160 	- Only AXFR fallback if master responded NOTIMPL or FORMATERR on IXFR 
 3161 		request.
 3162 	- allow-axfr-fallback option.
 3163 
 3164 7 November 2008: Matthijs
 3165 	- Bugfix: don't fclose if logfile == NULL.
 3166 	
 3167 30 October 2008: Matthijs
 3168 	- Allow escape characters in literal dnames
 3169 	- Fix typo in zonec manpage
 3170 	- Some fixes from code review
 3171 
 3172 20 October 2008: Matthijs
 3173 	- Redo bugfix literal domain names in rdata (code adjustment)
 3174 	- Added tests for case sensitive dns names and "Bug #162"
 3175 	- Adjust nsd-patch to new ixfr.db format
 3176 
 3177 14 October 2008: Matthijs
 3178 	- Only SO_LINGER when outgoing port is set
 3179 	- Reset diff_skip when a new difffile is created (parts in the difffile 
 3180 		now have a timestamp).
 3181 	- Undo bugfix literal domain names in rdata (code adjustment)
 3182 	- Split up dname_parse to parse literal dnames and normalized dnames.
 3183 
 3184 3 October 2008: Matthijs
 3185 	- setsockopt SO_LINGER, for portability outgoing-interface (BSD/Solaris)
 3186 
 3187 1 October 2008: Matthijs
 3188 	- Configure the source ip-address for notifies by the master and zone 
 3189 		transfer requests by the slave in nsd.conf.
 3190 	- Previously added source hostname/ip and port configuration for 
 3191 		nsd-notify and nsd-xfer
 3192 	- Finetuned nsdc for nsdc notify and nsdc update
 3193 
 3194 29 September 2008: Matthijs
 3195 	- Bugfix: only normalize domain names in rdatas when rrtype is listed in 
 3196 		RFC 4034, section 6.2: Canonical RR Form.
 3197 	- Update TODO list
 3198 
 3199 25 September 2008: Matthijs
 3200 	- Fix bug where hmac-sha256 was in algorithm table, but could not be 
 3201 		retrieved by name or id.
 3202 	- Additional arguments for nsd-notify and nsd-xfer: set outgoing 
 3203 		hostname/ip-address and source port.
 3204 	- Additional TODO entry: optimize code in nsd-* programs.
 3205 
 3206 8 September 2008: Matthijs
 3207 	- RFC 4635, bugfix #130: support for hmac-sha1 and hmac-sha256 tsig 
 3208 		algorithms.
 3209 	- modify and add tpkg tests for hmac-sha1 algorithms.
 3210 
 3211 2 September 2008: Matthijs
 3212 	- AXFR fallback when IXFR/UDP failed on all masters
 3213 	- Bugfix: strip off chroot value in corner cases
 3214 	- Additional debug and verbose log messages
 3215 
 3216 29 August 2008: Matthijs
 3217 	- IXFR allow UDP option
 3218 
 3219 26 August 2008: Matthijs
 3220 	- Code layout, additional comments and documentation typo fixes
 3221 	- IXFR over TCP, no longer UDP
 3222 
 3223 17 July 2008: Matthijs
 3224 	- Make the maximum number of interfaces configurable.
 3225 	- Write pidfile *after* successful server initialization,
 3226 		instead of writing, and unlink if fail.
 3227 
 3228 16 July 2008: Matthijs
 3229 	- Set upcoming release to 3.1.1
 3230 	- Wouter: fixed memory leaks that happened on error, mostly on
 3231 	  zone transfer errors.
 3232 
 3233 11 July 2008: Matthijs
 3234 	- Avoid race condition in nsdc: let nsd server update pidfile before 
 3235 		closing old parent process. 
 3236 
 3237 8 July 2008: Jelte
 3238 	- Fixed NSEC3 memory leak in the case NSEC3 is not needed.
 3239 
 3240 7 July 2008: Matthijs
 3241 	- Bugfix #191
 3242 
 3243 9 June 2008: Matthijs
 3244 	- When comparing RRs, do not compare TTL values (since the same record
 3245 	  with different TTL values are considered equal).
 3246 	- Fixup some more unaligned memory access that could occur when 
 3247 	  reading ixfr.db.
 3248 
 3249 19 May 2008: Matthijs
 3250 	- Do not always log tcp read errors, only when real error or high verbosity
 3251 
 3252 28 April 2008: Matthijs
 3253 	- Bugfix #172 (misleading error from zonec)
 3254 
 3255 27 March 2008: Matthijs
 3256 	- Port some branch modifications to trunk
 3257 
 3258 28 February 2008: Matthijs
 3259 	- Do not answer nsec3 wildcard information when DO bit is not set
 3260 
 3261 19 February 2008: Matthijs
 3262 	- Fixed strptime bug (for MacOS Leopard)
 3263 
 3264 22 January 2008: Matthijs
 3265 	- Add configuration for chkconfig to control nsd service (bug 164)
 3266 
 3267 15 January 2008: Matthijs
 3268 	- Fixed bug 157 where nsd would return FORMERR if edns query is
 3269 	  received with version set to zero and rdlen is larger than zero.
 3270 
 3271 8 January 2008: Wouter
 3272 	- no warning about optout records. also no warning about missing
 3273 	  nsec3 records.
 3274 	- check for hash(apex)==nsec3 with SOA bit was done in duplicate.
 3275 	- removed old commented out code
 3276 	- using SOA bit in NSEC3 typemap to detect parameters
 3277 	- using nonhashed NSEC3 to prove qtype=NSEC3 nxdomains
 3278 	- prints for debugging.
 3279 	- nicer comment on nsec3_lookup.
 3280 
 3281 7 January 2008: Wouter
 3282 	- Fixup nsec3 tests, they need zonesdir: "." in conf files.
 3283 	  The tests pass.
 3284 	- configure default is --enable-nsec3. Disabling this will save 20% more
 3285 	  memory (for very large zones). Moved tests to test on commit.
 3286 	- set RRTYPE numbers for NSEC3=50, NSEC3PARAM=51.
 3287 	- fixup checkconf test - updated parser lexer gives syntax error 
 3288 	  on some garbage instead of parse error. Parselexer is updated for
 3289 	  new options (hide-version, verbosity).
 3290 	- removed highrange rrtype code. fixup cutest for that.
 3291 	- speedup of prehash code.
 3292 		- skip nonexistent domains (operator.example.com).
 3293 		- skip only-nsec3 domains (that could be 2x speedup)
 3294 		- skip glue nameserver domains (for TLD with 2 glue per
 3295 		  delegation this is a 3x speedup).
 3296 		- skip the prehash_domain for delegation points, which saves
 3297 		  another 2/3 hash operations, 3x speedup.
 3298 	- printout how long nsec3 prepare took (verbosity >= 1).
 3299 
 3300 3 December 2007: Matthijs
 3301 	- Fixup bug where data related files are looked up in the wrong
 3302 	  directory when chrooted with chrootdir ending with a slash.
 3303 
 3304 26 November 2007: Matthijs
 3305 	- Fixup bug start nsd while already running: do not initialize server,
 3306 	  since it is already running. 
 3307 
 3308 15 November 2007: Matthijs
 3309 	- Changed man pages format from mdoc to mansun, to support the Solaris OS. 
 3310 	- Better logging for nsd-notify (show 'broken' zone)
 3311 
 3312 13 November 2007: Wouter
 3313 	- CREDITS and RELNOTES now in utf-8.
 3314 
 3315 12 November 2007: Matthijs
 3316 	- Changed man pages according to bug 162. 
 3317 
 3318 30 October 2007: Wouter
 3319 	- Fixup for skip after unknown deleted IXFR RR, otherwise processing
 3320 	  would continue at the wrong spot in the packet and process the IXFR
 3321 	  as if it were malformed.
 3322 	- added unit test for this in long (needs ldns-testns, updated it).
 3323 	- added unit test for rollback of malformed zone transfers.
 3324 	  Fixup for it, and fixup in ldns-testns to be randomport and
 3325 	  copy id for hex packets.
 3326 
 3327 29 October 2007: Wouter
 3328 	- Fixup bug where malformed IXFR replies cause partial processing in
 3329 	  reload (or nsd-patch or nsd-startup). One result is multiple SOA
 3330 	  records in zone apex. Fixup rolls back the zone transfer, and waits
 3331 	  for NSD to try to load again.
 3332 
 3333 26  October 2008: Wouter
 3334 	- small fix in descriptive text in sample config for debug-mode.
 3335 
 3336 9 October 2007: Mark
 3337 	- Change default location of: nsd.db, ixfr.db & xfrd.state to
 3338 	  /var/db/nsd.
 3339 
 3340 5 October 2007: Wouter
 3341 	- Fixup manual page entry for allow AXFR to anyone.
 3342 
 3343 3 August 2007: Mark
 3344 	- Report source and zone for denied AXFR attempts.
 3345 
 3346 25 July 2007: Wouter
 3347 	- bind2nsd to 0.5.0, fixup of includes, key{} handling.
 3348 
 3349 19 July 2007: Wouter
 3350 	- bind2nsd to 0.4.8, fixup of include bug.
 3351 
 3352 18 July 2007: Wouter
 3353 	- added contrib for bind2nsd, Al Stone provided an abridged version
 3354 	  that neatly fits for contrib.
 3355 
 3356 17 July 2007: Wouter
 3357 	- fixup commithooks.
 3358 
 3359 16 July 2007: Wouter
 3360 	- Added reference to http://bind2nsd.sourceforge.net/ to
 3361 	  contrib/README.
 3362 
 3363 3 July 2007: Mark
 3364 	- Zone compiler now gives more sane error message when out of
 3365 	  diskspace.
 3366 	- Fixed a call to drill in tpkg that made a test check bind instead of
 3367 	  nsd.
 3368 
 3369 2 July 2007: Mark
 3370 	- Remove last traces of mmap usage.
 3371 	- Some cleanups in tpkg.
 3372 
 3373 24 April 2007: Mark
 3374 	- Added "hide-version" configuration setting. Enabling this feature
 3375 	  stops NSD from answering to CHAOS class version requests.
 3376 
 3377 19 April 2007: Wouter
 3378 	- Compiled on minix 3.1.3 and make some adjustments to ease porting.
 3379 	  ECONNABORTED is checked for. sys/select.h included in nsd-notify.
 3380 	  SO_REUSEADDR failure is not fatal. PF_INET compat code added.
 3381 	  If you compile yourself; strptime and socketpair need compat code.
 3382 
 3383 13 April 2007: Wouter
 3384 	- Minor tweak to nsec3.c, more elegant handling of malformed nsec3 
 3385 	  records from a zone transfer.
 3386 
 3387 10 April 2007: Wouter
 3388 	- Fixup ignored return value in region-allocator. Now returns a NULL
 3389 	  memory allocation failure and leaves region in a consistent state.
 3390 
 3391 20 March 2007: Wouter
 3392 	- Released 3.0.5.
 3393 	- (for 3.0.6) -O2 test for Alpha moved to saner position.
 3394 
 3395 16 March 2007: Wouter
 3396 	- port configure to AIX, removed warning on ALIGNMENT in region code. 
 3397 	  defined _ALL_SOURCE to get recent C definitions on AIX.
 3398 	- improved nsec3.h comments.
 3399 
 3400 22 February 2007: Wouter
 3401 	- Zonesdir default is now /etc/nsd.
 3402 	  So that the invocation directory is not used to dump files into.
 3403 	  The user can change the zonesdir by editing the config file.
 3404 	  The directory is created by install, if not an error is printed.
 3405 	- updated tpkg tests to use current dir for testing.
 3406 	- tcp connections that drop do not spam the log file.
 3407 	  Unless verbosity is set high.
 3408 
 3409 19 February 2007: Wouter
 3410 	- Fix empty line printed with warning on 'force zone transfer'.
 3411 
 3412 15 February 2007: Wouter
 3413 	- Check for EPROTO definition to compile on FreeBSD4/Alpha.
 3414 
 3415 13 February 2007: Mark
 3416 	- Debug flag (-d) behavior changed. Nsd now also forks children when
 3417 	  run in debug mode.
 3418 	- Added verbosity mode (-V <level>) for extra operational logging.
 3419 
 3420 8 January 2007: Wouter
 3421 	- README text on interface configuration added.
 3422 
 3423 2 January 2007: Wouter
 3424 	- Fixup accept() that could block due to already closed connection.
 3425 	  Made listen() nonblocking, ignores errcodes that indicate closed tcp.
 3426 
 3427 29 January 2007: Mark
 3428 	- Handle the new CERT RDATA types defined in RFC 4398 (submitted
 3429 	  by Mans Nilsson).
 3430 	- Change nsd-notify retry timer from linear into exponential backoff
 3431 	  (submitted by Mans Nilsson).
 3432 	- Due to a small bug in a comparison statement, zonec would fail
 3433 	  on the parsing of unknown CERT types. This got triggered by the
 3434 	  first bugfix today, as that one shouldn't have been discovered in
 3435 	  the first place. Took the opportunity to sanitize two other
 3436 	  comparison statements related to strtol().
 3437 	
 3438 24 January 2007: Wouter
 3439 	- Tentative change to set UDP sockets nonblocking. Perhaps it 
 3440 	  helps Howard.
 3441 
 3442 19 January 2007: Wouter
 3443 	- NSEC3 work. prehash printed only once with time taken to prepare.
 3444 	- prints are now only in DEBUG mode (except errors).
 3445 	- rr descriptor counts for NSEC3 updated, has an extra field flags.
 3446 	- now NSEC3PARAMs with flags!=0 are ignored, as per draft-09.
 3447 	- Fixed where only first NSEC3PARAM was properly detected.
 3448 	- Added tpkg in manual (because you need to compile with nsec3)
 3449 	  that performs the test queries from draft-09 and checks them.
 3450 	- Made tpkg to test NSEC3 parameter detection. NSD will skip any
 3451 	  NSEC3PARAMs that don't work until the first working one is found.
 3452 	  Also, this means unknown hash algorithms are simply ignored.
 3453 	  A zone that uses exclusively unknown hash algorithms for NSEC3
 3454 	  will give errors on loading (or after zone transfer) but NSD
 3455 	  will load and serve the zone (but no NSEC3s are returned).
 3456 	- added tpkg in manual to test parent side DS answers.
 3457 	  These follow a different code path than child side DS.
 3458 	- Will allow NSEC3s(and signatures) below a DNAME.
 3459 	- A query for an NSEC3 ownername will lead to DNAME redirection
 3460 	  as if the NSEC3 did not exist.
 3461 	- Test package in manual that tests NSEC3 and DNAME in the apex.
 3462 	- Changed NSEC3 memory requirements from 5 pointers per domain name
 3463 	  to 3 pointers and 2 bits.
 3464 	- Added jumpstart for nsec3 search, will greatly speed up optout
 3465 	  zone nxdomains. At the cost of one ptr per domain name.
 3466 	  The speedup also speeds up the nsec3 prepare stage.
 3467 
 3468 18 January 2007: Wouter
 3469 	- Created 3.0.4 release tag.
 3470 	- 3.0.5 number in trunk.
 3471 	- add nsd.spec patch from Farkas Levente to contrib.
 3472 	- NSEC3 new wireformat and presentation format from draft-09.
 3473 
 3474 11 January 2007: Wouter
 3475 	- The message 'server .. closed cmd channel' is now priority INFO.
 3476 	  This to reduce the 'error' amount in the logs.
 3477 	- On error in a tcp request, set to retry next instead of waiting
 3478 	  for the tcp timeout.
 3479 
 3480 9 January 2007: Wouter
 3481 	- TSIG acl matching changed so that NOKEY allow-notify entries match 
 3482 	  only queries without a tsig. Otherwise NSD would crash.
 3483 	  This only affects servers that have allow-notify: ip NOKEY and
 3484 	  someone sends a TSIG signed notify from that ip.
 3485 	- test package for that.
 3486 	- Fix for reply to notify messages with ANCOUNT wrong. The ack
 3487 	  to notify messages that passed the ACL, and had a SOA in the answer
 3488 	  section of the query, included wrong RR counts in the header.
 3489 	- test package for notify reply wireformat.
 3490 
 3491 8 January 2007: Wouter
 3492 	- ipc_send_blocked will not lead to busy waiting on it, but will block
 3493 	  in select, until SOA_END comes by.
 3494 	- server_main sends SOA_END if reload crashes, to xfrd. So that xfrd
 3495 	  can set ipc_blocked=0 and can_send_reload=1; and thus resume service,
 3496 	  assuming that the crash was a temporary condition. 
 3497 	  This will lead to trying every reload-timeout seconds to reload
 3498 	  if it is a permanent condition. Which is more obvious to the 
 3499 	  operator.
 3500 	- put the error "error: diff: RR ns.kiev.ua. already exists" in
 3501 	  debug mode only. Zone transfers with this error are liberally
 3502 	  accepted, and we should not spam the logfile.
 3503 	- empty zones will not be retried forever every 10 seconds,
 3504 	  but exponential backoff to a max of every 4 hours.
 3505 	  The exact value is randomised to spread out attempts.
 3506 
 3507 5 January 2007: Wouter
 3508 	- Fixed --zonesdir=<path> for configure. The value did not get used
 3509 	  as a default value. Now it is used as a default value. If a 
 3510 	  default value is set for zonesdir, you can go to a 'no value 
 3511 	  specified' by giving the empty string, zonesdir: "" in nsd.config.
 3512 	- Fixed checkconf.tpkg for this change. nsd-checkconf will 
 3513 	  output zonesdir: "" as this is the default for --zonesdir.
 3514 
 3515 2 January 2007: Wouter
 3516 	- Added contrib script from Stephane Bortzmeyer to convert NSD 2 to 
 3517 	  NSD 3 config files. Converts secondary zones and TSIG keys.
 3518 	- Made config conversion script skip empty lines.
 3519 	- Made config conversion script convert primary zones (and notify).
 3520 	- Nsdc control script will exit with 'nsd startup failed.' if nsd
 3521 	  fails to start (due to bad config file for example).
 3522 
 3523 15 December 2006: Wouter
 3524 	- Removed dlopen() checks from configure.ac, NSD3 no longer has
 3525 	  dynamic plugin support (since 3.0.0).
 3526 	- added .rpm spec file to contrib.
 3527 	- Updated README to remove reference to buildzones script.
 3528 
 3529 12 December 2006: Wouter
 3530 	- Added missing include to ipc.c to compile on SunOS.
 3531 	- Cast to avoid signed/unsigned comparison in compat/inet_ntop.c.
 3532 
 3533 11 December 2006: Wouter
 3534 	- Added test to check for CNAME and other data error by zonec.
 3535 	  Currently NSEC, NSEC3, RRSIG, SIG, NXT are allowed next to CNAME.
 3536 	- Fixup unaligned memory access that could occur when reading ixfr.db
 3537 	  with a partial transfer inside.
 3538 	- RR type WKS (well known service) was not printed correctly,
 3539 	  htons() was forgotten when calling getservbyport.
 3540 	- NSD does not complain about not being able to read the db CRC
 3541 	  when all that happens is the file became longer or shorter.
 3542 
 3543 8 December 2006: Wouter
 3544 	- Moved down max XFRD UDP sockets for zone transfer queries to 100
 3545 	  down from 300. This makes the total socket max at 200, so it fits
 3546 	  easily under 256 ulimit (a common default).
 3547 
 3548 7 December 2006: Wouter
 3549 	- Improved error message to help operator.
 3550 	- created 3.0.3 svn tag.
 3551 	- default of zonesdir corrected (no directory is default).
 3552 
 3553 4 December 2006: Wouter
 3554 	- updated test packages. Moved 213_large from manual to long.
 3555 	  size_0, source_port_0 made more working (needs root permission).
 3556 
 3557 1 December 2006: Wouter
 3558 	- Moved xfrd ipc and reload handlers to front of event handler
 3559 	  lists for a 10% speedup in xfrd.
 3560 	- Fixed so that NSD no longer interrupts zone transfers when
 3561 	  a notify comes in for that zone. Added package to test it.
 3562 	- Fixed warning on Solaris 10.
 3563 
 3564 30 November 2006: Wouter
 3565 	- Test for fallback in getaddrinfo more portable.
 3566 	  Ported to FreeBSD 6.1 without inet6.
 3567 	- New quit sync had a problem with blocking in dispatch. Fixed.
 3568 	- reload will retry quit_sync if nothing happens.
 3569 	- parent tries to empty the pipes before closing them on quitsync.
 3570 	- xfrd does not send reload when previous reload request busy.
 3571 	- netio will only deliver the number of bits from select
 3572 	  and then stop. Optimisation.
 3573 
 3574 29 November 2006: Wouter
 3575 	- Fixed getaddrinfo error message to be more descriptive.
 3576 	- Fallback to ip4 also if getaddrinfo fails for ip6.
 3577 	- instead of EAI_ADDRFAMILY uses EAI_FAMILY which is portable
 3578 	  to FreeBSD.
 3579 	- signed/unsigned warning fix for FD_SETSIZE comparison.
 3580 	- Lots of debug statements and new quit sync feature, where
 3581 	  the server children are synced with. So as not to lose buffers.
 3582 
 3583 28 November 2006: Wouter
 3584 	- Debugging 10k zones transfer, set so that zones waiting for a
 3585 	  socket do not get timeouts.
 3586 	- Debug change so that an event is only returned to one handler
 3587 	  by netio.
 3588 	  Reversed this. Netio will not deliver events you do not listen
 3589 	  to, and since xfrd first listens to write then read, it will
 3590 	  not have problems with stale events (for the fd from the previous
 3591 	  select) because these are always read, while it needs a write.
 3592 	  Re-Reversed it: netio will deliver events only once.
 3593 	  This is easier to understand for the poor hapless developer.
 3594 	- Need to set notify_current for notify on waiting list. Fixed.
 3595 
 3596 27 November 2006: Wouter
 3597 	- Debugging 10k zones transfer, noticed that it is possible for 
 3598 	  netio to give a callback for an event that you were not listening
 3599 	  to. Now no longer does that.
 3600 
 3601 16 November 2006: Wouter
 3602 	- Bug #153: now checks for FD_SETSIZE when adding fd to select fdset.
 3603 	- Easy overview of socket allocation for xfrd in xfrd.h
 3604 	- Upped the default xfrd socket limits a bit.
 3605 	- Log message that the TCP connection limit is reach is now only
 3606 	  in -L 2 logging. It is spammy.
 3607 	- updated dependencies.
 3608 	- Added test for notify-socketcount, and removed unused files from
 3609 	  bug153 test package.
 3610 	- Notify udp sockets are also capped at a max number. The rest
 3611 	  has to wait in a queue.
 3612 
 3613 15 November 2006: Wouter
 3614 	- Fixed bug #152: identity keyword in nsd.conf did not work.
 3615 	  What happened was that the hostname() from the computer 
 3616 	  was overriding the nsd.conf identity. Fixed now.
 3617 	  If commandline is given that is used.
 3618 	  Else nsd.conf entry is used.
 3619 	  Else hostname() detected from computer is used.
 3620 	  Else default string "unidentified" is used.
 3621 
 3622 14 November 2006: Wouter
 3623 	- Fixed bug where NSD tries to create 10000 udp sockets,
 3624 	  when starting with 10000 secondary zones. Limited to 50
 3625 	  at a time. The XFRD_MAX_UDP constant controls this.
 3626 
 3627 3 November 2006: Wouter
 3628 	- Created tags/NSD_3_0_2_REL.
 3629 
 3630 2 November 2006: Wouter
 3631 	- Added pdf for differences.tex for ease of use.
 3632 	- Updated text in readme on memory usage.
 3633 
 3634 24 October 2006: Wouter
 3635 	- Recycle rrset memory after doing special processing on the deleted
 3636 	  rrset data.
 3637 	- log message clearer for 'duplicate xfr part' to 'discarding partial
 3638 	  xfr part'.
 3639 	- if you have a server that has IXFR turned off but sends a TC flag
 3640 	  for IXFR queries, xfrd will retry to TCP. This makes the use of
 3641 	  'AXFR' flag in nsd.conf file not needed in certain cases.
 3642 	- Be thrifty and save up the memory that was lost at end of chunks
 3643 	  in the recycle bin. Saved 1.3Mb on 170(rrs)/220(total) Mb dataset.
 3644 
 3645 23 October 2006: Wouter
 3646 	- Added checks for out of memory in reload (diff file). And it exits
 3647 	  if so neatly.
 3648 
 3649 13 October 2006: Wouter
 3650 	- Bug #149: Wrong text for NOTAUTH error code. When notify is not
 3651 	  authorised REFUSED error code returned instead.
 3652 
 3653 4 October 2006: Wouter
 3654 	- More fixes from Koh-ichi Ito (kohi@iri.co.jp now), for bug #146,
 3655 	  his bash does not do $(( )), so nsdc.sh has to use test of course.
 3656 
 3657 29 September 2006: Wouter
 3658 	- recyclebin works, added a test that uses it (about 3 Mb goes
 3659 	  through the recyclebin). This resolves bug #147.
 3660 	- Made -L 1 logging is little less verbose (-L 2 gets it all).
 3661 	- added search path for openssl on Solaris 10 (/usr/sfw).
 3662 
 3663 28 September 2006: Wouter
 3664 	- Removed unused global variable current_region,
 3665 	  and routines for it in region-allocator.c and .h.
 3666 	- Added recycle option to regions. It will keep track of small
 3667 	  objects in a recycle bin. Large objects are deallocated.
 3668 	  No calls to recycle yet, unit test it first.
 3669 	- added unit test for region recycle.
 3670 
 3671 27 September 2006: Wouter
 3672 	- Further suggestion from Koh-ichi Ito, I've set opt->xfrdfile
 3673 	  to XFRDFILE in options_create. So opt->xfrdfile and opt->difffile
 3674 	  are never NULL. This simplifies code elsewhere.
 3675 	  And also handles chroot case (+=l) for default values.
 3676 	- Fix for bug #145. The skip file position in the diff file was used
 3677 	  inconsistently - one part of the code skipped to before the 'IXFR'
 3678 	  type code and another part skipped to after that. Now all skip to
 3679 	  before the type code. This bug only happens if your diff file 
 3680 	  is like: zone1_part1, zone2_part_1, zone1_part2, zone1_commit,
 3681 	    zone2_part2, zone2_commit. The skip over zone1_part1 failed.
 3682 	- tpkg test in long dir that tests for the bugfix. Takes a long time
 3683 	  and uses ldns-testns feature to wait partway through an AXFR.
 3684 	- removed debug log of strerror on diff read failure, when the errno
 3685 	  was already output to the logfile (resulting in a nonsense error).
 3686 
 3687 26 September 2006: Wouter
 3688 	- NSD compiles on Solaris 10 with the sun cc compiler.
 3689 	  Added a define for _STDC_C99 for that.
 3690 	- Checked that the patch for solaris for bug 143 indeed fixes the bug.
 3691 	- Fixed bug #146 reported by Koh-ichi Ito: when chrooted nsd failed
 3692 	  to write xfrdfile/difffile.
 3693 	
 3694 18 September 2006: Wouter
 3695 	- no queries for NSEC3, RRSIG, ANY succeed for nsec3 only domains.
 3696 
 3697 15 September 2006: Wouter
 3698 	- Fixed LOC parsing of integer overflow causing maximum values.
 3699 	  Added to test and backported fix to 2.3.6.
 3700 	- NSEC3 qtype queries get noerror/nodata or nxdomain answers.
 3701 	  You can query for NSEC3PARAM.
 3702 	- warnings for printf format on maxOS (sizet needs cast to int).
 3703 
 3704 13 September 2006: Wouter
 3705 	- added fsync to AF_UNIX sockets to write last command (QUIT) before
 3706 	  closing them.
 3707 	- sent explicit QUIT command to xfrd on final shutdown of the server.
 3708 
 3709 12 September 2006: Wouter
 3710 	- Bug #144: LOC defaults for unspecified values wrong. Error in zonec.
 3711 	  Set defaults. Also fixed parser if LOC has no minutes or seconds.
 3712 	- Also fixed rounding error in seconds 0.001 decimal. 
 3713 	- Test tpkg for bug 144.
 3714 
 3715 11 September 2006: Wouter
 3716 	- nsdc now more portable in use of 'which'.
 3717 	  Does not only look at exit code but also checks for '^no ' string.
 3718 	- nsd-patch does a chdir to zonesdir for relative difffile or dbfile
 3719 	  path names.
 3720 	- nsdc handles zonesdir: for relative pidfile, dbfile, difffile 
 3721 	  pathnames.
 3722 
 3723 7 September 2006: Wouter
 3724 	- bumped version to 3.0.2.
 3725 	- Nice configuration error when you had the wrong zone name in the
 3726 	  nsd.conf file. Zonec will give an error already.
 3727 	- When you start a secondary zone without a zone file, you get
 3728 	  a much nicer error message, warning you of the zone transfer.
 3729 	- Credits for prerelease testers; Thanks guys!
 3730 
 3731 6 September 2006: Wouter
 3732 	- Fixed nsd-patch so that it writes the SOA at the start of the file.
 3733 	- test tpkg that tests for the bug, has multiple rrsets at zone apex
 3734 	  and does nsd-patch followed by zonec.
 3735 	  Previous tests did not catch this: they used nsd-xfer to test zone
 3736 	  contents, or only checked the zone-file after nsd-patch.
 3737 	- version number bumped to 3.0.1.
 3738 	- svn tag 3_0_1 made.
 3739 
 3740 5 September 2006: Wouter
 3741 	- differences file improvements.
 3742 	- created 3.0.0 release in svn tags.
 3743 
 3744 4 September 2006: Wouter
 3745 	- From suggestions by Bin Zhang:
 3746 		- nsdc restart does not fail if nsd was not running.
 3747 		- fixes to man pages, wrong locations for files.
 3748 	- NSEC3-PARAM has no optout bit in presentation format.
 3749 	- NSEC3PARAM spelling.
 3750 	- differences in latex format (needs nlnetlabs housestyle).
 3751 
 3752 31 August 2006: Wouter
 3753 	- Fix for tsig size still set when data is null ptr.
 3754 	- Fix configure for NetBSD (1.6 - 2.0) to find struct timespec.
 3755 	- DIFFERENCES file completion.
 3756 
 3757 30 August 2006: Wouter
 3758 	- Print error nicely when nonblocking connect fails on systems
 3759 	  in a portable way.
 3760 	- doc/UPGRADING document to assist NSD 2 to 3 upgrades.
 3761 	- updates of error print - ignore EINPROGRESS if we check too early.
 3762 	- wait for select writable before testing for connect error.
 3763 	- echo "" >&2 is not as portable as we would like, removed from nsdc.
 3764 	- fixed debug print of a null ptr.
 3765 	- fixed bug where query for CNAME that points to unserved zone caused
 3766 	  nullptr exception on empty zone ptr. Now original zone is restored
 3767 	  after CNAME-pointed data is added to the packet.
 3768 	  Test in dname.tpkg. Reported by Kai.
 3769 	- fixed stack corruption when ipv6 disabled.
 3770 
 3771 29 August 2006: Wouter
 3772 	- NSEC3 made it so it can handle the case where the NSEC3 RRSET
 3773 	  with the SOA bit on does not have the RR with the soa bit set
 3774 	  as the first RR.
 3775 	- Handle NSEC3-PARAM type. Checks to see if any of them work:
 3776 	  zone apex hashed exists, with NSEC3 type, and RR that has
 3777 	  the same parameters and the SOA bit set.
 3778 	- in presentation format of NSEC3, NSEC3-PARAM reversed hash, optout.
 3779 	- update to the DIFFERENCES file, bind 9.3.2 vs NSD 3 and 
 3780 	  NSD 2 and 3 comparisons are completed.
 3781 
 3782 28 August 2006: Wouter
 3783 	- echo messages in nsdc made clearer. nsdc notify and nsdc update
 3784 	  only send notify messages to slaves / localhost to force transfers.
 3785 	- initial NSEC3-PARAM type code entry. parsed, ignored.
 3786 
 3787 25 August 2006: Wouter
 3788 	- disabled make test target as tests are not shipped.
 3789 	- performed prerelease static snapshot.
 3790 	- updates to the DIFFERENCES document.
 3791 
 3792 24 August 2006: Wouter
 3793 	- Fix bug 141 port from 2.3.6, copies behaviour from bind 9.3.2.
 3794 	- Added a test for bug 141.
 3795 	- Bug141: save the opcode from the query.
 3796 
 3797 23 August 2006: Wouter
 3798 	- Fixed % by 0 exception in the bugfix #139.
 3799 	- Fixed RFC 4035 says CD flag SHOULD be cleared on authoritative
 3800 	  responses, now NSD clears the CD flag. This is bug #140.
 3801 	  RFC 4035 could be confusing on this, as it states 'all servers
 3802 	  MUST copy the CD bit' more than once, but then makes clear only 
 3803 	  recursive servers are meant with that statement.
 3804 	- Differences document updates for bind 9.3.2 and nsd 3.
 3805 
 3806 22 August 2006: Wouter
 3807 	- version number to 3.0.0 in preparation for release.
 3808 	- Bug #139: resync stats to whole period. Fixed.
 3809 
 3810 21 August 2006: Wouter
 3811 	- check for error in ftruncate call.
 3812 	- replaced fwrite call with write_data call from util that does
 3813 	  error checking.
 3814 
 3815 15 August 2006: Wouter
 3816 	- removed unused struct nsd.named8_stats variable.
 3817 	- Bug #138: nsd aborts trying to bind all interfaces if ip6 is not
 3818 	  enabled, instead it will fallback to ip4.
 3819 
 3820 14 August 2006: Wouter
 3821 	- Added test for rollback of an IXFR transfer by xfrd.
 3822 	- Added test for reload timeout in xfrd, the reload does happen after
 3823 	  a while, but not immediately.
 3824 	- Test that makes xfrd connect to ip6 address.
 3825 	- Test that overloads the number of tcp connections in xfrd,
 3826 	  simulating a slow master, so that zones have to queue up to get it.
 3827 	- code coverage is now 2514 of 10636 uncovered. Still a lot uncovered.
 3828 	- ixfr queries return NOT_IMPL errors.
 3829 
 3830 11 August 2006: Wouter
 3831 	- srandom to init random() in xfrd based on PID and time.
 3832 	- improved usage() information to be more helpful, and with version.
 3833 	- in makedist.sh, flex and bison called like in Makefile.
 3834 	- test for tcp underrun and overrun of the buffer.
 3835 
 3836 10 August 2006: Wouter
 3837 	- added more tests to increase code coverage of testset.
 3838 	- moved acl parsing code from configparser.c to options.c to help
 3839 	  unit testing.
 3840 	- nsd-checkconf echod wrong difffile filename with -v.
 3841 	- nsd-patch can now be used with -f to force printing of all RRs.
 3842 	- TYPE_NULL crashed NSD when it printed it, arg was ZF_DNAME,
 3843 	  now ZF_UNKNOWN.
 3844 	- unknown rr test was faulty on input, the length was in nibbles
 3845 	  not in octets, but rfc specifies octets for unknown rrs.
 3846 	  NSD does not look at the length, and prints the length correctly.
 3847 	- added type NXT to the rr-test for weird RRs.
 3848 	- added printing test to rr-test, ipseckey and unknown-rr tests.
 3849 	  checks if NSD prints the same RR on output as it read in.
 3850 	- put -x option for nsd-patch in usage().
 3851 	- test that kills an nsd child server and checks that it is
 3852 	  restarted.
 3853 
 3854 9 August 2006: Wouter
 3855 	- tested nsdc functionality, make install and make uninstall.
 3856 	- set O_NONBLOCKING on xfrd tcp sockets before the connect call,
 3857 	  because the handshaking can take very long too.
 3858 	- difffile and xfrdfile set via configure, to absolute pathnames,
 3859 	  so that chroot checks work for them.
 3860 	- updated tpkgs, they need to set relative paths now for difffile.
 3861 	- gcov says 2821 of 10617 total code lines are not covered.
 3862 	  compiled with --coverage, not -O2, ran tpkg/* and long/testplan*.
 3863 	  counted grep '#####:' *.gcov | wc and grep '^ *[0-9]*:' *.gcov | wc.
 3864 	- cleaned up the log functions, NSD no longer spams the syslog with
 3865 	  debug messages. The standard NSD debug util is used, -F -1 -L 2 for
 3866 	  a compile configured with --enable-checking will enable them again.
 3867 	  Errors are logged, as is the automated reload of a new serial.
 3868 	- tpkgs for bug077 and bug107 were silently failing to test properly.
 3869 
 3870 8 August 2006: Wouter
 3871 	- fixes for checkconf test, more portable.
 3872 	- removed items from TODO that have been tested.
 3873 	  for multihomed servers you have to bind to each interface
 3874 	  explicitly to get outgoing ip-address the same as query
 3875 	  destination ip-address.
 3876 	  Forks and if-existing are tested and ok in testplan tests.
 3877 	  close_all_sockets is called by child, if tcponly, so leave it. 
 3878 	- user name check is hard portably with shell scripts, and 
 3879 	  packaging could set a default user that does not exist on a machine.
 3880 	- empty nodes (nonterminals) give no nxdomain any more (todo item done).
 3881 	- removed (old) from TODO.
 3882 	- removed contrib/buildzones.pl, it is outdated.
 3883 
 3884 7 August 2006: Wouter
 3885 	- Made the tests a little more portable.
 3886 	- fixed mempcy unable to handle unaligned memory addresses on Solaris,
 3887 	  used memmove instead of memcpy in zonec LOC conversion code.
 3888 	- another unaligned memory access, when storing off_t pointer in 
 3889 	  difffile.c, used memmove.
 3890 
 3891 4 August 2006: Wouter
 3892 	- nsd will start if diff file is corrupt, with a log message.
 3893 	  It ignores the bad data.
 3894 	- tpkg files do not override PATH, svnhook sets it. So user can
 3895 	  set path to utilities on the system to run the tests.
 3896 	- running testset on DecAlpha discovered uninitialised variable
 3897 	  in NSD. Fixed.
 3898 	- Jakob Schlyter asked for building nsd3 in an obj dir, i.e.
 3899 	  mkdir obj; cd obj; ../configure && make. Fixed up makefile for that.
 3900 	- and bug137.tpkg for separate obj dir building.
 3901 
 3902 3 August 2006: Wouter
 3903 	- more tests in mesh test.
 3904 	- changed test packages to put nsd log to test result "/dev/stdout".
 3905 	- test packages more portable - use default 'dig' location.
 3906 	  also, path is appended to, instead of replaced.
 3907 
 3908 2 August 2006: Wouter
 3909 	- Region can be customised for detailed memory handling.
 3910 	  Especially if you set large_object_size=0, chunk_size=0,
 3911 	  the region will perform individual allocs, and 'save memory'.
 3912 	  The region still keeps tracks of allocations so that at
 3913 	  region_free time all memory is released.
 3914 	- tsig.region removed, it was not used after attaching a cleanup
 3915 	  at creation. tsig creation uses custom region settings.
 3916 	- xfrd inits the tsig records with memory saving settings,
 3917 	  so the regions alloced for tsig take up about 60 + 4*8 bytes.
 3918 	- new custom region for query region - to make chunksize larger
 3919 	  there. The chunksize for the query region is important, if
 3920 	  all allocations for a query fit in it, no mallocs are needed.
 3921 	- TSIG other_data field size according to RFC 2845 is 0 or 6.
 3922 	  In tsig implementation put a maximum to the field of 16,
 3923 	  otherwise a formerror results.
 3924 	- query with IXFR appended SOA not formerror.
 3925 	  IXFR queries not reach the handler in axfr.c for IXFR queries.
 3926 	- removed annoying debug message of added tsig key.
 3927 	- added test that starts 7 servers in a mesh and lets them fight out
 3928 	  what zones to transfer and serve.
 3929 	- xfrd logic bug: if notified a slave would not see the renewal
 3930 	  of its current zone.
 3931 
 3932 1 August 2006: Wouter
 3933 	- Test for remove domains with IXFR.
 3934 	- Fix for empty nonterminals and IXFR deletes.
 3935 	- Test for timeouts, including expiry, and expiry and zone updates.
 3936 	- Test for axfr refused authorisation.
 3937 	- Test for deadlock in ipc.
 3938 
 3939 31 July 2006: Wouter
 3940 	- Test plan ixfr test in tpkg/long directory.
 3941 	- IXFR with many packets tested (one RR per packet).
 3942 
 3943 28 July 2006: Wouter
 3944 	- tentative change, that preserves ordering of rrtypes for a domain.
 3945 	- fix for serial rollover (old_serial + 2**31), now works, is seen
 3946 	  as new serial and rolled over to new.
 3947 	- serial numbers, and time values, printed as unsigned to logfile.
 3948 	- set so that if info is provided by operator, refreshing state
 3949 	  not expired is used.
 3950 	- forgot to * a pointer to boolean, is_ixfr in the difffile reader.
 3951 	  This fixes the testplan_ixfr test 1.
 3952 
 3953 27 July 2006: Wouter
 3954 	- fixup desc of tsig xfer test, remove debug from xfr_huge.
 3955 	- fixed compressed dname tables cleanup, to set ptr to NULL.
 3956 	- initialised xfrd_listener.fd to -1.
 3957 	- fixed difffile handling of very short AXFRs, with no data.
 3958 
 3959 26 July 2006: Wouter
 3960 	- Updated the requirements with comments from Olaf.
 3961 	- README discourages use of experimental nsec3 rr a bit more.
 3962 	- typo in DNAME code, used original qname instead of CNAME
 3963 	  adapted qname variable.
 3964 	- added IPSECKEY RR type, RFC 4025.
 3965 	- tpkg test with sample ipseckey rrs.
 3966 	- wireformat for IPSECKEY depends on the value of a rdata atom, added
 3967 	  WF_IPSECGATEWAY to handle that.
 3968 	- DHCID type, data is encoded in one binary/b64 blob.
 3969 
 3970 25 July 2006: Wouter
 3971 	- max number of tries for nsd-notify is 15, so that the
 3972 	  total time for sending is about 75 seconds.
 3973 	- forward port of fixes for bug 105 and 135 in nsdc.
 3974 	  forward port of test for bug 105.
 3975 	- fixed nasty bug with configure --prefix=<...> where config.h
 3976 	  was wrong. Now double evaluate the shell expansion on the defines.
 3977 
 3978 5 July 2006: Wouter
 3979 	- helped in README with gnu make; need to make clean
 3980 	  so that botched attempts by make to create the lexer files
 3981 	  do not stay around.
 3982 	- removed %zd, replaced by casts to int.
 3983 	- updated REQUIREMENTS file, the sections on RR types, on what
 3984 	  algorithm NSD follows and on which RFCs are supported are updated.
 3985 
 3986 3 July 2006: Wouter
 3987 	- 'make depend' target in makefile. (updates both Makefile.in
 3988 	  and Makefile, so it works for users and for svn).
 3989 	- doc minor update.
 3990 
 3991 2 July 2006: Wouter
 3992 	- TESTPLAN, README, bugzilla-bugs docs updated.
 3993 	- NSD for BIND users update.
 3994 
 3995 29 June 2006: Wouter
 3996 	- removed --zonesfile nsd.zones configure option.
 3997 	- doc/README updated for 3.0.
 3998 	- doc update. NSD_FOR_BIND_USERS document.
 3999 	- moved from -Ds to the config.h header, cleaner compilation output.
 4000 	- use autoconfs built in large file support enabler.
 4001 
 4002 28 June 2006: Wouter
 4003 	- nsdc neater, checks for BLOCKED ips more strictly.
 4004 	- nsd -d also disables xfrd forking, and thus all reloads
 4005 	  and secondary zone treatment. Stated so in manual page.
 4006 	- fixup, apart from ip4 need to allow ip6 in example.conf
 4007 	  line showing how to allow access for everyone to axfr.
 4008 
 4009 27 June 2006: Wouter
 4010 	- Fixed read in server.c to be a blocking read for sure,
 4011 	  even if ipc is not blocking on the OS.
 4012 	- nsd-notify tries to send notify 5 times, then exits with error.
 4013 	- nsd-checkconf can lookup key secrets by name from a config file.
 4014 	- difffile option is always set in options struct with default
 4015 	  or config value.
 4016 	- nsd-patch uses dnames to compare zone names (for trailing .).
 4017 	- nsdc updated to work with config file.
 4018 
 4019 26 June 2006: Wouter
 4020 	- Nicer check in autoconf for struct timespec type.
 4021 	- NSEC3 next hashed ownername is a length byte followed by data.
 4022 	- nsd-checkconf more quiet, clearer error message.
 4023 	- NSEC3 does not complain about glue records without nsec3.
 4024 	- nsdc work (did start, stop, running, rebuild, restart, reload, stats).
 4025 
 4026 21 June 2006: Wouter
 4027 	- nsid commandline parsed using hex_pton routine.
 4028 	- unit test for hex_pton.
 4029 	- added include stdlib, needed for free() on sunos4.
 4030 	- fixup of disable-ipv6 compilation.
 4031 	- memmove compat implementation (created fresh).
 4032 	- yy_set_bol() for old flex compat define.
 4033 	- compat implementation from openssh4.3p2 for
 4034 	  strlcpy, inet_aton, and inet_ntop routines.
 4035 	- changed ctime_r usage to ctime() call, nsd is not threaded.
 4036 	- compiles on SunOS4/gcc-2.95.
 4037 	- debug statements go to the log_msg route instead of the
 4038 	  fprintf route, so they will get to a nice logfile even if
 4039 	  we forked away, with xfrd. logfile=/dev/stderr gives old way.
 4040 	- minor changes to cutest to make unit test compile
 4041 	  on SunOS4/gcc-2.95, it checks out fine there.
 4042 
 4043 20 June 2006: Wouter
 4044 	- updated configure to disable -O2 on platforms where gcc 
 4045 	  does not like it (such as dec-alpha).
 4046 	- nsd-notify used recvfrom and passed addrinfo.ai_addrlen
 4047 	  which is a size_t, but recfrom needs a socklen_t*. On dec
 4048 	  alpha these types differ in size (size_t is 64bit, 
 4049 	  socklen_t is 32bit). Therefore, used a wrapper variable
 4050 	  to pass to recvfrom.
 4051 	- changed long int to time_t in nsd-patch.c to please compiler
 4052 	  on dec alpha.
 4053 	- dec alpha complains if statements are in front of variable
 4054 	  definitions. Fixed code for some mixups on this.
 4055 	- Fixup cutest for dec alpha. Code, lowercase filename, %lf->%f.
 4056 	- cutest fixup uses (size_t) cast and %zx to print ptrs (for debug).
 4057 	- for SunOS4 configure detects ssize_t and struct timespec.
 4058 	- removed usage of fpos_t, instead using fseeko/ftello for 64bit.
 4059 	- configure will define fseeko/ftello with fseek/ftell if unavailable.
 4060 	- added missing include from buffer.c (stdlib for free()).
 4061 	- defines for snprintf and vsnprintf in config.h if needed.
 4062 	- configlexer flex is called more cleanly with -t to write stdout.
 4063 	- missing include from configparser, stdlib for atoi.
 4064 	- config.h provide inet_pton define if it is not available.
 4065 	- fixup of INET6 defines, where sockaddr_storage is used
 4066 	  outside of INET6 defines, in xfrd-tcp.
 4067 	- edns_init_nsid was not defined in edns.h.
 4068 	- added compat/fake-rfc2553.c and h from openssh 4.3p2. That has
 4069 	  a BSD license as well. They replace getaddrinfo() (and friends)
 4070 	  when those are missing.
 4071 
 4072 19 June 2006: Wouter
 4073 	- updated the tpkg/manual tests for NSD 3 config files.
 4074 	  Some need root privileges to run (using hping), they all pass.
 4075 	- also the tpkg/long test bug_sighup.
 4076 	- nsec3 code will warn at prehash time for missing exact nsec3
 4077 	  records. So faulty signed zones are more easily spotted.
 4078 	- fixed NSEC3 and CNAME/DNAME chains, it will disprove the new qname.
 4079 	- removed for() look in CNAME processing, only first CNAME is
 4080 	  processed now.
 4081 	- zonec will error on a zone with multiple CNAMEs for one name.
 4082 
 4083 16 June 2006: Wouter
 4084 	- Swapped read and write ops in xfrd_handle_ipc, so that a read
 4085 	  of a signal from main can stop further writes.
 4086 	- xfrd will complete its last message before shutting down
 4087 	  the ipc writes and then acknowledge the reload-sync.
 4088 	  This resolves the race where half of ipc messages caused bad
 4089 	  modes from the main.
 4090 
 4091 15 June 2006: Wouter
 4092 	- In preparation of notify send overhaul, moved the notify
 4093 	  send code to xfrd-notify.c and h files.
 4094 	- created cleaner split of notify send and xfr code.
 4095 	  Still in the xfr process, because it is a convenient location.
 4096 	- fixed bug where notify sending would read from wrong fd.
 4097 	- send master zone notifies.
 4098 	  Does not skips master zone SOA INFO updates.
 4099 	- fixed bug where port number acls did not match.
 4100 	- fixed bug where tsig keys are checked for twice, but not error_code.
 4101 	- fixed notify send retry counting.
 4102 	- added test tpkg for notifies from nsd master to nsd slave.
 4103 	- nsd-checkconf flags if you set allow-notify without request-xfr.
 4104 
 4105 14 June 2006: Wouter
 4106 	- fixed crash bug when dnssec/NSEC enabled and query DNAME
 4107 	  target did not exist.
 4108 
 4109 13 June 2006: Wouter
 4110 	- created doc subdirectory for documentation.
 4111 	- removed unused DIFF FILE MAGIC string.
 4112 
 4113 12 June 2006: Wouter
 4114 	- dname_test tpkg with very extensive DNAME testing.
 4115 	- moved sizes of zone_name buffers to 3072 - for escaped names.
 4116 	- nsd-patch has a debug option to list the contents of the 
 4117 	  difffile/ixfr.db/transfer patch log in a journal fashion. You can
 4118 	  then manually inspect the contents.
 4119 
 4120 9 June 2006: Wouter
 4121 	- after a reload NSD will report the memory churn: number of bytes
 4122 	  of memory wasted by the zone transfer code.
 4123 
 4124 8 June 2006: Wouter
 4125 	- When zone is re-chosen after a CNAME/DNAME no SERVFAIL is set,
 4126 	  noerror is returned instead.
 4127 	- zonec will error on multiple DNAMEs for the same name.
 4128 	- zonec will error on DNAME and CNAME together.
 4129 	- improved loop log message.
 4130 
 4131 7 June 2006: Wouter
 4132 	- after DNAME the closest_match is set correctly for another DNAME.
 4133 	- in case of a loop returns gracefully instead of crash.
 4134 	- nsec3 checks if it is enabled for the zone for wildcards.
 4135 	- NSD will give referrals for zone cuts encountered after a CNAME
 4136 	  or a DNAME. This also fixed various subtle stuff with CNAME/DNAME
 4137 	  and TYPE_DS at zone cuts. It basically re-determines the zone
 4138 	  to use after the CNAME/DNAME.
 4139 
 4140 6 June 2066: Wouter
 4141 	- zonec checks for data below a DNAME, and will not create the db,
 4142 	  as per rfc 2672. Tpkg test to make sure such a zone is not loaded.
 4143 	- updated rr-test tpkg so it has no data below a DNAME.
 4144 	- DNAME synthesis of CNAME records, including compression for cname.
 4145 	- included cname creation in dname test.
 4146 	- preallocate the extra temporary domain_type structures.
 4147 	- too many temp domains returns OK packet so that the resolver 
 4148 	  will recurse and ask us again with the last name in the chain.
 4149 	- fixed bug introduced in preallocation on temp domain numbering.
 4150 
 4151 2 June 2006: Wouter
 4152 	- dname_replace function that does DNAME replace and unit tests.
 4153 	- added error codes from DNSUPD rfc2136 to constants in dns.h.
 4154 	- in query.c added DNAME following code.
 4155 	- fixed bug 134: hints[i] in nsd.c to hints[0].
 4156 	- added tpkg small test for DNAME.
 4157 	- tpkg to test bug 134 (starts 100 processes).
 4158 
 4159 1 June 2006: Wouter
 4160 	- tsig test with NSD master and NSD slave server. Tsig AXFR transfer.
 4161 	  nsd-xfer used to test slave zone contents.
 4162 	- fixed bug where buffer_flip() is done before appending tsig rr.
 4163 	- version printed at start of nsd in logfile.
 4164 	- xfrd prints name of tsig key used during transfer in commit comments
 4165 	  so it appears in the log file and in zonefile after nsd-patch.
 4166 	- prints RRs from diff file only if debug level >= 1.
 4167 	- scalable transfer test xfr_gig added, you can set the size to try
 4168 	  in the .pre file. Now set very small.
 4169 
 4170 31 May 2006: Wouter
 4171 	- xfrd check for failed updates. It compares the time it wrote the
 4172 	  commit to disk with the time of the last reload command.
 4173 	  Failed updates are restarted like the zone is notified of the soa.
 4174 	  It also catches reloads that have been lost (reload cmd while reload
 4175 	  is running, or a crashed reload process, for example).
 4176 	- when reload is issued, times at that second are put back one second,
 4177 	  so that after a reload all the zones that should have been loaded
 4178 	  have a time from before the reload. 
 4179 	- if a reload crashes, NSD will continue with the old database,
 4180 	  xfrd is not informed, since it cannot fix that. 
 4181 	- nsd-checkconf strdups arg strings before writing to it.
 4182 	- tsig error replies contain error data, but no signature.
 4183 	  also crashproof, badly formatted tsigs get a format error.
 4184 	- tsig error print knows about DNS rcodes in tsig error field.
 4185 	- added tpkg tests for tsig.
 4186 	- tpkg test for nsd-xfer with TSIG from nsd.
 4187 	- small stuff with makedist.sh, CREDITS, Features, make test.
 4188 
 4189 30 May 2006: Wouter
 4190 	- tsig pre-allocs the rr_region, not at runtime, tsig_create_record().
 4191 	- redid some region work for tsig. Now has another temporary region
 4192 	  for the context data. User is only aware of the region passed at 
 4193 	  start that exists for the lifetime of the struct.
 4194 	  During TSIG checks no more mallocs are done, only region_free_all
 4195 	  and region allocs (of small size).
 4196 	- checkconf, port is stored as a string.
 4197 	- tsig now keeps a max_digest_size for giving reserved space.
 4198 	- AXFR does tsig every 96 packets (and first and last packet).
 4199 	- tsig signing works for all queries. SOA queries, ...
 4200 	  If you configured the key in the config file, you can use
 4201 	  that key for any query for any zone.
 4202 	  Except for NOTIFY and AXFR queries; those are only allowed for
 4203 	  the zone (and source ip address) which are configured in the config.
 4204 	- cleaner compile with tsig disabled.
 4205 	- fixed unknown key error reply in tsig.
 4206 
 4207 29 May 2006: Wouter
 4208 	- The nonblocking write routines disable silently if they have
 4209 	  nothing to do.
 4210 	- put xfrd read/write state routines (almost 500 lines of code)
 4211 	  into xfrd-disk.c file.
 4212 	- little readme blurb on xfrd state file for the operator.
 4213 	- put ipc code in its own file for ease of reading.
 4214 	- removed --disable-axfr, you can control this via acls.
 4215 	  With no provide-xfr: statements, a zone will not do axfr.
 4216 
 4217 25 May 2006: Wouter
 4218 	- fixed reload sending; it checks for EAGAIN and EINTR.
 4219 	- reload sends parent quit command blocking to make sure of arrival.
 4220 	- send_children_quit in parent uses nonblocking writes and closes
 4221 	  the pipe to signal the child to quit (even if the write does not
 4222 	  come through, the closed pipe will cause the child to quit).
 4223 	- need_to_send_STATS flag in parent. 
 4224 	- reload has its own ipc-listening handler in server_main.
 4225 	- nonblocking writes for server_main; this solved write-blocking race.
 4226 	- another race condition solved, if a process dies, half a read or
 4227 	  write buffer could be left behind on another process. These are
 4228 	  dropped. Now:
 4229 	  	* The server_main drops ipc from dead children.
 4230 		* The server_main drops ipc if xfrd dies.
 4231 		* The server_main drops xfrd(old) and all children ipc 
 4232 			on reload.
 4233 		* The xfrd drops ipc to parent on a SOA_BEGIN from reload.
 4234 		  So after reload, but parent and xfrd start with 
 4235 		  clean ipc buffers.
 4236 
 4237 24 May 2006: Wouter
 4238 	- unit tests print progress while running to stderr. Included license
 4239 	  of cutest with its source in svn repository.
 4240 	- stack type (for the IPC buffer of zone update dirty). And unit test.
 4241 	- only update zone-is_ok if needed to reduce memory copy on write.
 4242 	- split off conn_write() from xfrd tcp nonblocking write routines.
 4243 	- nonblocking writes for xfrd.
 4244 
 4245 22 May 2006: Wouter
 4246 	- ported over minor nits from 2.3.5 NSD fixups. Cast to (void) 
 4247 	  unused function return values.
 4248 	- removed kill signal to children, superfluous due to quit cmd ipc.
 4249 	- moved is_ok for zones to the zone_type in namedb, not in 
 4250 	  the options, it is a runtime value not a config value.
 4251 	  For zones that have no data, parent and children keep no state.
 4252 
 4253 12 May 2006: Wouter
 4254 	- fixed up usage print for zonec to include -f option.
 4255 	- xfrd send notifies.
 4256 	- server no longer sends SOA INFO for master zones.
 4257 	- removed possible debug log print of a null string.
 4258 
 4259 11 May 2006: Wouter
 4260 	- nsd.conf.sample shows defaults for ip4-only, ip6-only and debug-mode.
 4261 	- SOA_BEGIN message on start of reload sending soa info so that
 4262 	  xfrd will not reply with expire-notifications and thus deadlock
 4263 	  both on blocking writes (and no OS buffer on the pipes).
 4264 
 4265 10 May 2006: Wouter
 4266 	- nsdc.sh is set +x after creation.
 4267 	- improved error message when zone in db has no config info.
 4268 	- support for broken nsec3 chains (if the one with the SOA bit
 4269 	  is complete, it is OK for there to be other nsec3 chains 
 4270 	  with different parameters in the zone).
 4271 
 4272 9 May 2006: Wouter
 4273 	- Fix for finding bad zone when populating SOA info on start.
 4274 	 it would find a parent zone instead of the zone in question (
 4275 	 which is empty).
 4276 	- request-xfr: AXFR 10.0.0.153 keytouse syntax to interoperate
 4277 	  with NSD machines. Will only send AXFR queries to the machine.
 4278 	- documented AXFR option in nsd.conf.5 manual page,
 4279 	  and updated nsd-checkconf, nsd.conf.sample.
 4280 	- made 'skipping zone' log entry clearer (Sam Weiler asked).
 4281 
 4282 8 May 2006: Wouter
 4283 	- updated zparser.y to handle empty nsec_seq lists.
 4284 	  for empty nonterminals in NSEC3.
 4285 	- nicer without ambiguous grammar.
 4286 
 4287 5 May 2006: Wouter
 4288 	- nsd-notify handles option -y key:secret to TSIG sign outgoing
 4289 	  queries.
 4290 	- the acl checks now verify TSIG signatures on the query.
 4291 	- iterated_hash compiles with ssl disabled.
 4292 	- new ipc NSD_ZONE_STATE sent by xfrd to nsd process. notifies
 4293 	  nsd of the state (ok or expired) of a zone.
 4294 	- reload process waits for the old server_main to exit to make
 4295 	  sure there is no race condition listening to the NSD_ZONE_STATE
 4296 	  messages generated when reload sends SOA_INFO to xfrd.
 4297 	- server_main and children all set zone_ok state in config options.
 4298 	  also server_main so that newly forked children get the right state.
 4299 	- if a secondary zone is expired, NSD returns SERVFAIL.
 4300 	  a transient error, so resolvers try again later.
 4301 	- SOA_END ipc message, sent by reload to xfrd, so it can repeat
 4302 	  all zone states (which can have changed during reload).
 4303 	- zone_is_ok kept in config section so that state for zones
 4304 	  without data is not lost. Those have no zone_type*.
 4305 	- secondary zones start in the expired state.
 4306 	- if expired zones are updated, then NSD gets the go ahead from
 4307 	  xfrd after reload sends SOAINFO/SOAEND msg, so it is really
 4308 	  updated in nsd memory.
 4309 	- fixed tpkg xfr_1 to have longer expiry times (from 0 and 3
 4310 	  seconds to 2000 and 3000 seconds), so the zone does not expire
 4311 	  during the test anymore.
 4312 
 4313 4 May 2006: Wouter
 4314 	- when a new lease is acquired xfrd_packet_newlease result is used.
 4315 	- if a zone is lost in nsd db, xfrd will update state to match.
 4316 	- IXFR can use TSIG in queries and verify responses.
 4317 	- Fixed memory leak in xfrd tsig handling.
 4318 
 4319 3 May 2006: Wouter
 4320 	- forward of 2.3.4 RELNOTES into trunk.
 4321 	- debug log statements to track xfrd request rounds.
 4322 	- removed memleak from handle_passed_packet in xfrd.
 4323 	- faster find_zone in difffile.c.
 4324 	- nsd-patch writes commit log entries into zone file.
 4325 	- took some tsig.c enhancements from 3 branch,
 4326 	  -> if key or algo changes during connection, return bad_key,
 4327 	  -> debug statement neater.
 4328 	- nsd adds tsig keys to tsig keyring at startup.
 4329 
 4330 2 May 2006: Wouter
 4331 	- ifdef inet6 back on ss_family usage in server.c.
 4332 	- nsd-checkconf ip6 ifdefs improved.
 4333 	- xfrd tries servers 3 rounds, then waits for next retry.
 4334 
 4335 1 May 2006: Wouter
 4336 	- off_t used for 64bit fileio. 
 4337 	- searches for smallest unused part and sets diff_skip to that.
 4338 	- doc comment near the region_free_all for every query about 
 4339 	  malloc speed.
 4340 	- null ptr in strcmp does not work on bsd, fixed nsd-checkconf.
 4341 	- made nsd.conf.sample.in so the sample gets prefix-corrected.
 4342 	- removed nsd.zones.sample.
 4343 	- makedist.sh added manual pages for nsd-xfer nsd-patch.
 4344 	- install/uninstall nsd-patch, nsd-checkconf and manpage. 
 4345 	  small update readme.
 4346 
 4347 28 Apr 2006: Wouter
 4348 	- ixfr >64k in xfrd.
 4349 	- fixed length of new commit parts.
 4350 	- fixed multiple ipc reads in xfrd.
 4351 	- fixed multiple packet ixfr read in diff file.
 4352    Miek:
 4353 	- Forward port fixes for nsd-xfer and nsd-notify
 4354 
 4355 27 Apr 2006: 
 4356    Wouter:
 4357 	- nsec3 review fixes.
 4358 	- diff file format expanded for >64kb transfer support.
 4359 	- diff reader adjusted for >64kb.
 4360    Jelte:
 4361 	- small non-null options check in nsd.c.
 4362    Miek:
 4363 	- updated nsd-checkconf for zone parse shell script support.
 4364 
 4365 25 Apr 2006: Wouter
 4366 	- Tests on NSEC3 code. Fixed that the unsecure delegations also
 4367 	  have _ds_ parent nsec3 prehashes, so that they get proper NSEC3s.
 4368 	  NSD will serve NSEC3s to prove 'opt-out' also if the opt-out bit
 4369 	  is (erroneously) not set.
 4370 	- For the 05pre2 draft section 5.4.8.1. QTYPE is NSEC3, only NSEC3
 4371 	  RRsets at name. Fixed that RRSIGs present do not matter.
 4372 	  And also the closest encloser proof in that case fixed.
 4373 	  If wildcard exists below zone apex servfails (cannot disprove
 4374 	  it and NSD cannot instantiate the wildcard at that point).
 4375 
 4376 24 Apr 2006: Miek
 4377    Miek:
 4378 	- forward port nsid (disabled by default)
 4379    Wouter:
 4380 	- nsd-patch manual page.
 4381 	- minor MacOSX port fixes.
 4382 	- xfrd-reload-timeout: config option.
 4383 	- if you set the xfrd reload timeout to -1 it will not
 4384 	  automatically reload after a transfer. User can reload.
 4385 	- reload timeout is a wait period after the reload is triggered.
 4386 	- more verbose acl logging. Validated acls are logged in detail.
 4387 	  Invalid acls are only logged in debug mode, level >= 1.
 4388 	- log message when xfrd tcp connections max out.
 4389 	- if unknown NSEC3 hash type (not SHA-1), disable NSEC3.
 4390 	- xfrd randomizes the timeouts, within 10% of original,
 4391 	  to spread out activity. Short timeouts < 10 seconds are not
 4392 	  affected, and will give activity bursts (on startup for example).
 4393 
 4394 21 Apr 2006: Wouter
 4395 	- put NSEC3 code in nsec3.c and nsec3.h.
 4396 	- iterated_hash only adds the salt if salt_len > 0.
 4397 	- added some assertions and cleanups to nsec3 code.
 4398 	- prehash also calcs the nsec3_last domain*.
 4399 	- dbaccess when reading in will set the rr_type.owner value.
 4400 	- changed namedb_find_zone to domain_find_zone, log msgs.
 4401 	- implemented logic from nsec draft 05-pre2 section 5.4.1 - 5.4.8.
 4402 	  NSEC3 responses only happen for nsd compiled with --enable-nsec3
 4403 	  and for zones where an NSEC3 with the SOA bit set exists.
 4404 	- added prehash pointer to ds parent side cover for opt out.
 4405 	- removed dynamic plugins. Dynamic plugin support is an explicit 
 4406 	  non-requirement (under creeping featurism).
 4407 	- in domain table create root nsec3 ptrs are NULL.
 4408 
 4409 20 Apr 2006: Wouter
 4410 	- Unittest of base 32 encoding. 
 4411 	- unittest start for iterated hash.
 4412 	- fixed for ctrlc in debug mode.
 4413 	- delete zparser_conv_long, not used, not needed
 4414 	- nsd-xfer will display NSEC3 correctly. zonec parses.
 4415 	- improved usage() line from zonec, about -c none, must be -C.
 4416 	- base32 printed in lowercase (canonical format for DNS).
 4417 	- NSEC3 added prehash pointers to the namedb.
 4418 	- NSEC3 autodetects presence of NSEC3 in zone and parameters.
 4419 
 4420 19 Apr 2006: Wouter
 4421 	- port fix base10 in zonec conv short from 2_2 branch to trunk.
 4422 	  and conv byte, algo, certificate, long.
 4423 	- configure option to enable NSEC3 (--enable-nsec3) support.
 4424 	- from Ben Laurie's NSEC3 patch, loaned the parse code,
 4425 	  base32 conversion code and iterated_hash. 
 4426 	  With some small modifications. The type rrdescriptors are 
 4427 	  indexed by value below SPF, and in 
 4428 	  rdata_wireformat_to_rdata_atoms BINARYWITHLENGTH checks
 4429 	  for end of buffer. Also parser checks for '-' salt.
 4430 	  Some layout (spaces after ,s). And NSEC3 define is used.
 4431 	  strtol used for iterations is base 10.
 4432 	- moved rrtype descriptor table sanity check to unittest.
 4433 
 4434 18 Apr 2006: Wouter
 4435 	- Fixed check for SOA IN, bad ntohs in the check.
 4436 	- minimum timeout also enforced for very low expire times.
 4437 	- report the actual used length of the sockaddr to sento
 4438 	  for FreeBSD.
 4439 
 4440 7 Apr 2006: Wouter
 4441 	- modified the kill_nsd tpkg so that it waits up to 10x5 secs
 4442 	  for nsd to make the pid file, and it wait up to 10x5 secs for
 4443 	  nsd to exit after the kill signal is given.
 4444 	- xfrd checks on startup if there is trailing garbage in the
 4445 	  diff file, left there by a previous xfrd killed in action.
 4446 	  It then snips off any partial parts, so service can resume.
 4447 	  Also the difffile_skip pos is set before any partial record there.
 4448 	- first version of nsd-patch; reads db and ixfrs and updates zones.
 4449 	- moved print_rdata from nsd-xfer to rdata.h to share code.
 4450 	- moved print_rr from nsd-xfer to util.h to share code.
 4451 
 4452 6 Apr 2006: Wouter
 4453 	- notify handler passes acl number that matches to xfrd.
 4454 	- xfrd keeps a next_master for a zone, and sets it after notify.
 4455 	  when notified nsd will try to contact the master that sent
 4456 	  the notify, if send from an address that is both in acl
 4457 	  allow-notify and request-xfr.
 4458 	- xfrd closes its tcp and udp sockets on exit.
 4459 	- default names for diff file and xfrd state nicer.
 4460 	- fixed up kill nsd grep on ps.
 4461 	- fixed up race conditions in test script for kill nsd
 4462 	  wait for pid file creation by nsd, and grep -v grep in check.
 4463 	- in nsd signal-flags inherited from the parent are zeroed 
 4464 	  when a server_child starts. Also the server_child switches back
 4465 	  to NSD_RUN mode when a bad mode happens.
 4466 	- check if ixfrs start from the version in memory.
 4467 	- if IXFR/AXFR ends in a serial that is newer than the serial
 4468 	  that was sent in an notify, update the notified serial.
 4469 
 4470 5 Apr 2006: Wouter
 4471 	- added lowerbound for retry timeout.
 4472 	- added extra assertions to xfrd-tcp.c, saying that the waiting line
 4473 	  for tcp connections must be empty if the counter is below max.
 4474 	- setup so that the first master tried is the first in acl list.
 4475 	- diff file skips OPT and TSIG RRs if they are put into the answer
 4476 	  section.
 4477 	- if IXFR contains an RR to delete that does not exist, nothing
 4478 	  happens.
 4479 	- update zone for NS, RRSIG also if multiple RRs in the rrset.
 4480 	- difffile: create zone struct also if domain exists already.
 4481 	- difffile: destroy temp region on error.
 4482 	- difffile: in delete_RR, create temp region outside of the routine,
 4483 	  so no alloc region, destroy region for every deleted RR.
 4484 	- difffile: for IXFR: do not delete final SOA RR.
 4485 	- difffile: unknown parts in file is an error.
 4486 	- difffile: EOF on last packet is ignored w/o giving an error.
 4487 
 4488 4 Apr 2006: Wouter
 4489 	- Addes EACCES to the netio dispatch error bailout.
 4490 	- Removed EACCESS (probably due to log_msg), error on close
 4491 	  xfrd pipe is small, main process closes its end, and hopes for 
 4492 	  the best).
 4493 	- review: return on error condition in xfrd_tcp_open fixed.
 4494 	- review: expired when time >= expire_time, so it will not wait
 4495 	  for the retry after expire until it will detect the expiredness.
 4496 	- removed duplicate lines from xfrd_handle_zone_timeout.
 4497 	- review: copy of uint32_t using memcpy to avoid unaligned memory
 4498 	  accesses.
 4499 	- review: fd=-1 removed from set_refresh_now; only does timer.
 4500 	- on a tcp timeout it will retry immediately (instead of waiting
 4501 	  another retry timeout). This means if you set refresh_now, it will
 4502 	  interrupt a tcp-timer for a fresh retry with the next master.
 4503 	- put null in buffer for xfrd read state.
 4504 	- log msg uses string that exists instead of overwritten buffer.
 4505 	- read entry sets refresh depending on current time,
 4506 	  and makes sure not to check soa contents if none provided.
 4507 	  added explanatory comments.
 4508 	- EACCES back in check.
 4509 	- server_main first checks for terminated children, then select().
 4510 	  So when select is interrupted, by kill or quitting children,
 4511 	  it will first see if it has to quit itself, before restarting
 4512 	  the children.
 4513 	- destroy tempregion xfrd read on error.
 4514 	- check for serial existence in xfrd_handle_incoming_soa.
 4515 	- handle_incoming_soa uses set_timer_refresh routine.
 4516 	  and can handle expire times < refresh times.
 4517 	- log msg for udp socket() error.
 4518 	- review: xfrd_parse_soa_info email parse uses correct buffer spot.
 4519 	- added a lowerbound to refresh interval (=1 second now).
 4520 	- upon receipt of a IXFR, if the serial is older than the notified
 4521 	  serial, the zone stays refreshing (but the ixfr is saved).
 4522 
 4523 3 Apr 2006: Wouter
 4524 	- Added buffer length check to internal ipc.
 4525 	- split out packet_read_query_section from the process_query_section
 4526 	  routine (and moved to packet.c/h).
 4527 	- xfrd reads passed packet via ipc.
 4528 	- ported over fix to 2_2 on missing rr types by removing the 
 4529 	  duplicate RRtype array, and using rrtype_to_string.
 4530 	- xfrd handles notifies. immediately starts updating.
 4531 	- xfrd state file format fix.
 4532 	- removed libwrap stuff - superseded by acls.
 4533 	  use provide-xfr: statements for your zone in the config file.
 4534 	  updated README for this.
 4535 	- updated tpkg tests for axfr to use provide-xfr: 127.0.0.1 NOKEY
 4536 	- review: move var create to start of function (xfrd_init()).
 4537 
 4538 31 Mar 2006: Wouter
 4539 	- zone type has a pointer to zone options.
 4540 	- nsd options has an rbtree to find zone options in.
 4541 	- nsd checks acl for incoming notifies and replies
 4542 	  error or confirmation.
 4543 	- nicer layout in options.c.
 4544 	- updated makefile dependencies.
 4545 	- fixed sz for SOA_INFO ipc, which was too small.
 4546 	- notify is sent to server_main, server_main sends it to xfrd.
 4547 
 4548 30 Mar 2006: Wouter
 4549 	- include: documented in manual page.
 4550 	- MAXINCLUDES define in one place (config.h).
 4551 	- configure checks for strptime in include files.
 4552 	- use %d instead of %zd (sparc5 machine does not get zd).
 4553 	- use region_strdup in configlexer.
 4554 	- added a check for EINVAL in dispatch - will abort
 4555 	  on the error instead of busy hang.
 4556 
 4557 29 Mar 2006: Wouter
 4558 	- \r for config lexer. (similar changes to zonelexer).
 4559 	- forward port of fix to 2_2 branch:
 4560 	  short int in var_arg is promoted to int, according to B. Laurie.
 4561 	  The same logic for %o, %d %x would hold for %u I think.
 4562 	- in XFRD, soa prim_ns and email domain names are kept in a max
 4563 	  size buffer.
 4564 	- split up dname_parse into parse from string to wireformat
 4565 	  and parse from wireformat to memoryformat, so both can be called.
 4566 	- split up dname_make_from_packet into reading the wireformat
 4567 	  from the packet and the dname_make, so both can be called.
 4568 	- xfrd reads all soa info from incoming xfr packets.
 4569 	- xfrd will ignore TC bit on tcp channels.
 4570 	- nsd sends xfrd all soa info, including ttl and dnames.
 4571 	- config file now has an include: filename directive.
 4572 
 4573 28 Mar 2006: Miek
 4574 	- forward port fixes for zone compiler and \r. svn:1926-1927
 4575 	- add DO bit MASK and remove the !! construct
 4576 
 4577 17 Mar 2006: Wouter
 4578 	- according to axfr-clarify, added comments that we check
 4579 	  more leniently on further responses on a TCP stream.
 4580 
 4581 16 Mar 2006: Wouter
 4582 	- Fixed up SOA INFO Send routines. Send from server works.
 4583 	- niced up xfrd state file.
 4584 	- Fixed up so that after a reload it will continue in diff file
 4585 	  where it left off.
 4586 	- made send of SOA info use write_socket, in case of short writes.
 4587 	- redesigned xfrd_tcp_read to use the same code for ipc read.
 4588 	- no free()s before xfrd exit.
 4589 	- xfrd handles incoming SOA INFO ipc packets.
 4590 	- removed debug, updated zones get SOA INFO sent.
 4591 
 4592 15 Mar 2006: Wouter
 4593 	- Fixed up domain table insert, it was being used in routines
 4594 	  that originate from nsd-xfer that do not set compression numbers
 4595 	  correctly.
 4596 	- memleak fix in difffile in case of error.
 4597 	- difffile processing works so that NSD can read an axfr saved
 4598 	  into the nsd.diff file. (xfrd already request and save it there).
 4599 	- split off xfrd tcp handling into xfrd-tcp.c.
 4600 	- cleaned up send_udp in xfrd, and read_state.
 4601 	- removed xfrd tcp_send_blocking.
 4602 	- xfrd sets state from ok to refresh to expired based on timeout.
 4603 	- xfrd sets reload timeout.
 4604 	- Added zone updated to keep track of zones that are changed
 4605 	  after a reload. These zones get their information notified
 4606 	  to xfrd.
 4607 	- removed unused zprintrr declaration from zonec.h
 4608 	- nsd sends soa information to xfrd.
 4609 
 4610 14 Mar 2006: Wouter
 4611 	- TODO updated
 4612 	- worked on reload ixfr. It will add/delete RRs and zones.
 4613 	- xfrd receive parse of xfr messages improved. writes commit.
 4614 	- server compressed_dname_offsets table is increased if reload
 4615 	  creates extra names.
 4616 	- difffile will create zone and apex if not there (i.e. the zone
 4617 	  is configured but no data file provided).
 4618 	- bit more verbose in error message for bad diff file.
 4619 	- Typo fix in sample config file.
 4620 
 4621 13 Mar 2006: Wouter
 4622 	- configure sets fseek (fgetpos/fsetpos) to use 64 bit interface
 4623 	  with _FILE_OFFSET_BITS=64.
 4624 	- nsd will skip loading the .db if the DB checksum is the same.
 4625 	- Miek added trace test and nsd kill test.
 4626 	- Wouter worked on diff file c.
 4627 
 4628 10 Mar 2006: Wouter
 4629 	- Cleanup of UDP/TCP code in XFRD.
 4630 	- xfrd now has tcp max connections and managing. tcp read/write.
 4631 	- response TC on UDP ixfr, starts TCP.
 4632 	- sends correct ixfr and axfr queries, a bind server answers.
 4633 	- made packet_skip_dname() public.
 4634 	- sets read/write event flags for tcp fd right.
 4635 
 4636 9 Mar 2006: Wouter
 4637 	- Removed header from DIFF file format. CRC not that important there,
 4638 	  you have to check the packets anyway.
 4639 	- cutest rbtree removed unused clean_rbtree and always_fail routines.
 4640 	- xfrd timeout handler, more work. Checks expire.
 4641 
 4642 8 Mar 2006: Wouter
 4643 	- xfrd sends UDP xfr request to master(s) with timeouts, and stores
 4644 	  returned data on disk.
 4645 	- updated dependencies and declaration of write_soa_buffer.
 4646 
 4647 7 Mar 2006: Wouter
 4648 	- Fixed printfs for size_t warnings on Mac OsX.
 4649 
 4650 6 Mar 2006: nsd-team
 4651    * Wouter: xfrd read and write work. Statefile is "nsd.xfst".
 4652    * Wouter: nsd-checkconf checks dname parse of zone name:.
 4653    * Wouter: updated difffile in parser.y, production in server: clause.
 4654    * Wouter: zonec now takes -C for 'no config file' option.
 4655    * Wouter: updated configyyrename.h for bison 1.875d on sparc.
 4656    * Miek: zonec -h and nsd -h exit with exit code = 0.
 4657    * Miek & Wouter: updated tpkgs to work again.
 4658    * Wouter: xfrd read handle soas, handle soa_incoming part.
 4659    * Wouter: moved compare_serial() from nsd-xfer to util.h.
 4660 
 4661 4 Mar 2006: Wouter
 4662 	- xfrd zone and soa memory structure definitions.
 4663 	- xfrd init zones.
 4664 	- xfrd read and write state file code.
 4665 	- option for difffile: and xfrdfile: config lines.
 4666 
 4667 3 Mar 2006: Wouter
 4668 	- Removed double kill after reload. Only socket cmd send.
 4669 	- Added code to handle race condition where xfrd is restarted
 4670 	  during a successful reload. Afterwards, the new server_main
 4671 	  only has the old xfrd pid, new xfrd is an orphan.
 4672 	  Solution: when xfrd closes cmd channel (i.e. it quit)
 4673 	  unexpectedly, send sighup to all processes in the group.
 4674 	  This should quit the orphan & all children & reload the
 4675 	  server_main, which will fork the children and xfrd again.
 4676 
 4677 2 Mar 2006: Wouter
 4678 	- Added nsd-checkconf.8 to makedist.sh replace list.
 4679 	- DIFF file format updated.
 4680 	- removed tsigkey->server value, it was read in, but unused.
 4681 	- new function to add config file keys to tsig.
 4682 	- nsd-checkconf checks parsing of keys. 
 4683 	- Updated sample key file with valid keys.
 4684 	- added first xfrd files. xfrd is started from server_main.
 4685 	  xfrd listens to server and server to xfrd. xfrd is restarted
 4686 	  if it dies unexpectedly. xfrd quits when server signals it.
 4687 	  xfrd survives nsd reloads.
 4688 	- nsd_options no longer global variable.
 4689 
 4690 1 Mar 2006: Wouter
 4691 	- Nicer text in nsd.8.
 4692 	- nsd.c prettier code in option handling.
 4693 	- zonec.c code prettier in option handling, also chdir bug removed.
 4694 	  zonec uses the zone definitions in the config file.
 4695 	  updated zonec.8 and usage().
 4696 	- nsd also chdirs to the zonedir, otherwise nsd and zonec would
 4697 	  try to read the database: file from different directories.
 4698 	  .(it does the chdir before the chroot call.)
 4699 	- new calling syntax for zonec and nsd, because of new config file.
 4700 	- options added acl acceptance tests (no tsig yet).
 4701 	- added unit test for options.c - for acl tests.
 4702 	- zonec removed unused vars, nsd-checkconf print arguments.
 4703 	- nsd-checkconf.8 manual page.
 4704 
 4705 28 Feb 2006: Wouter
 4706 	- checked in options.h and config parser code.
 4707 	- also nsd-checkconf that will test a config file 
 4708 	  .(and optionally show what was read).
 4709 	- default identity has a spelling error.
 4710 	- Small fix (typo in example) to config manual page.
 4711 	- Added ; to configparser.y to please bison 1.75 on bsd.
 4712 	- Will check for blocked addresses in outgoing acls. Also ranges.
 4713 	- Check configuration tpkg test added. Uses checkconf.
 4714 	- checkconf does extra semantic tests. i.e. enable absent features.
 4715 	- tcpcount and servercount cannot be negative.
 4716 	- updated nsd.conf.5 manpage for @port syntax.
 4717 	- changed config parser: allows empty server: part (defaults).
 4718 	- made nsd.conf.sample file.
 4719 	- put option to configure for CONFIG_FILE nsd.conf location.
 4720 	  Note. Already nsdc.conf exists. Both exist now.
 4721 	- updated makefile dependencies (gcc -MM).
 4722 	- getopt optstring in nsd-checkconf updated ("v" only option).
 4723 	- Added config .o files to nsd and zonec. This compiles.
 4724 	- Added commandline option -c configfile to zonec and nsd.
 4725 	  configure defaults < configfile < commandline options in importance.
 4726 
 4727 24 Feb 2006: Wouter
 4728 	- Added compute_crc in util.h and unit tests for it.
 4729 	- in cutest.tpkg the number of unit tests was hardcoded
 4730 	  in the tpkg package. Removed the dependency, cutest exit
 4731 	  value indicates if any failures happened.
 4732 	- Added crc at end of NSD-database format. Unique per db.
 4733 	  upped db version to 7 because of this.
 4734 	- Tested that crcs are big/little endian correct.
 4735 	- Added DIFF file spec
 4736 	- updated tpkg213 which compares md5 on a zonefile for new format.
 4737 	- added nsd.conf.5 manual page with a draft contents.
 4738 
 4739 22 Feb 2006: nsd-team
 4740    * Miek: Changed over to Cutest testing framework.
 4741    * Miek: fixed typo in netio.h
 4742    * Miek: fix syntax in rbtree.c put functions on multiple lines.
 4743    * Miek: unit test tpkg for cutest.
 4744    * Wouter: fixed ptr bug in rbtree unit test.
 4745 
 4746 17 Feb 2006: Wouter
 4747 	- rbtree_delete is added and works. Unit tests are there too.
 4748 	- Changed tail recursion in rbtree_delete to while loop.
 4749 	- Tagged this version as NSD_3_signalsocket_solution.
 4750 	  It is the stable 2_2 branch with cleanups, portable, and
 4751 	  signalhandler solution by socket communication redesign.
 4752 
 4753 15 Feb 2006: nsd-team
 4754    * Wouter: Fixed server_child would wait for two kill signals before quit.
 4755    * Miek: don't check for port==0 pkt, just try to send them. 
 4756 	Forward Port of 2.3.
 4757    * Wouter: Removed unused, not substituted, @nsdxfer@ from Makefile.in.
 4758 
 4759 14 Feb 2006: Wouter
 4760 	- Added unit tests for rbtree. Extensive testing of all functions.
 4761 	- Added tpkg unit test.
 4762 	- configure tests for CUnit(optional lib for unit tests). Makefile
 4763 	  cleanup so it works on non-gmake on freebsd.
 4764 
 4765 13 Feb 2006: Wouter
 4766 	- Removed timespec_add(current_time) in server_main, the timeout was
 4767 	  relative, not absolute. This fixes EINVAL on the timeout on freebsd.
 4768 	- Added check in configure for compiler flags. Used for -Wextra.
 4769 	- Added check in configure for va_list definition conflict between
 4770 	  stdio and stdarg. This happens on DEC Alpha/Debian.
 4771 	- removed --enable-mmap configure option. There is no mmap support
 4772 	  in the current codebase.
 4773 	- renamed local prev to next in domain_next() in namedb.h.
 4774 	- Removed heap.h. It was not used. Heap and rbtree are mingled anyway.
 4775 	- in netio.c, in dispatch, it would store the next pointer 'in case
 4776 	  the handler removes itself'. But if the handler removes that next.
 4777 	  Then it would fail. So stored the next in struct netio.
 4778 	  This removes a potential bug. Netio_dispatch is not reentrant.
 4779 	  Reentry would need a list of iterator* in struct netio.
 4780 	- Changed process_query() to server_process_query(). It is too 
 4781 	  similar to query_process().
 4782 
 4783 10 Feb 2006: nsd-team
 4784    * Wouter: Improved configure.ac to detect pselect in sys/select.
 4785 	The check works on freebsd(yes) and fedoracore 3 and 4 (no).
 4786 	I hope it also works on Solaris.
 4787 	Also various other prototypes were implicit: chroot, strptime, ...
 4788 	These are also solved.
 4789    * Wouter: Checked configure on sparc5(solaris). Added check for
 4790 	ctime_r in time.h (for tsig.c). This conf also works on freebsd/linux.
 4791    * Wouter: Updated dependencies in makefile for plugin headers.
 4792 	These are included only when --enable-plugins is present.
 4793    * Wouter: Added a send quit over socket to kill commands in server_main,
 4794 	These act when the fork children fails. If the kill fails, the
 4795 	socket command hopefully still works.
 4796    * Wouter: Put reload code into a separate function. It communicates with
 4797 	a socket to the old parent, and sends it a quit command. This works
 4798 	and terminates the old nsd. Left in the kill as a double failsafe.
 4799 	If the reload process dies, then the parent closes the socket.
 4800    * Wouter: Separated the signal mode from the socket-determined nsd->mode.
 4801 	Every signal function has a variable, so that multiple signals can
 4802 	arrive. Only the number of signals of the same type is lost, but not
 4803 	important for nsd. The signals are handled in turn by the run loop.
 4804 	This completes the coding to remove signal race conditions:
 4805 	- nsd uses sockets to communicate with its subprocesses(server,reload).
 4806 	- signal handler routine contains no lengthy system calls.
 4807 	- signals cannot overwrite a previous signal.
 4808    * Wouter: fixed problem where nsd->mode and mode are different in 
 4809 	server_main. Nsd would kill the children, but then restart them again.
 4810 
 4811 09 Feb 2006: nsd-team
 4812    * Wouter: Updated dependencies in Makefile (regenerated them with gcc -MM).
 4813    * Wouter: Used splint on the source (with settings to reduce spam.)
 4814 	And came to the following changes:
 4815 	- In util.h, make it respect HAVE_CONFIG_H and HAVE_SYSLOG_H.
 4816 	Also it now defines fallback values for #defines in syslog h.
 4817 	- Added explicit cast to (unsigned int) in snprintf in dname.c,
 4818 	dname_to_string routine.
 4819    * Wouter: Used extra warnings during gcc compile. -Wextra -Wall 
 4820 	-pedantic -Wbad-function-cast -Wmissing-declarations 
 4821 	-Wmissing-prototypes -Wnested-externs -Wold-style-definition 
 4822 	-Wstrict-prototypes -Wdeclaration-after-statement.
 4823 	Using -Wtraditional gives too many warnings.
 4824    * Wouter: Found a problem with pselect. sys/select.h does not by default
 4825 	provide the pselect function definition. configure script is 
 4826 	adjusted to test for this and enable _XOPEN_SOURCE=600 to get it.
 4827 	Found this using the gcc warnings.
 4828    * Wouter: dname and rbtree test apps were in make clean target, but
 4829 	do not exist anymore. Removed from make clean target.
 4830    * Wouter: in util log_file() the epoch time_t is passed to printf
 4831 	without an int cast. Found using extra gcc warnings.
 4832    * Wouter: In server.c fixed some signed-unsigned comparisons
 4833 	using the extra gcc warnings.
 4834 	- in shutdown and int was used instead of size_t.
 4835 	- in server_main timeout(signed) was compared with unsigned.
 4836 	- unused variable in new handler functions.
 4837 	- in handle_child_command int i instead of size_t was used.
 4838 	- in zonec the process_rr routine was missing (void) as paramlist.
 4839    * Wouter: Added -Wall and -Wextra when --enable-checking is enabled.
 4840    * Miek: Ported over the big fat enable checking configure warning.
 4841    * Wouter: fixed configure check for pselect on freebsd.
 4842 
 4843 08 Feb 2006: nsd-team
 4844    * Wouter: In server.c also sockets from unexpectedly dead childs are closed.
 4845    * Wouter: in nsd.c and server.c cleaned out the signal handler, so that
 4846 	it only includes two switch/if statements and alters only the mode. 
 4847 	No more calls to alarm(), waitpid(), write(), log_msg().
 4848 	Instead the work is done in the runloop in server.c and sent by socket.
 4849 	Also the parent now waits for children. Parent restarts them.
 4850    * Wouter: Fixup, the children will quit if the parent closes the command
 4851 	socket. If parent is killed, they will exit too.
 4852    * Wouter: The server_main now listens to children command channels.
 4853 	Included timeout to check for terminated processes.
 4854 	Test says that new signal handler works, and child->parent comm.
 4855 
 4856 07 Feb 2006: nsd-team 
 4857    * Miek: configure.ac version to 3.0.0
 4858    * Miek: looked at: buffer.{ch}, answer.{ch}, dns.{ch}
 4859 	   those files don't have any changes, except for dns.{ch} for the
 4860 	   explicit compression.
 4861    * Miek: looked at: zlexer.lex and zparser.y; only changes there
 4862 	for the database changes.
 4863    * Wouter: Changed buffer in write_pid from 16 bytes to 32 bytes, 
 4864 	this makes 64 bit numbers fit in the buffer.
 4865    * Wouter: Socket connection between parent and child nsds added.
 4866 	But sighandler now in worse shape. Need to close them. Remove kills.
 4867    * Wouter: close the parent and child command channel sockets in shutdown().