13 December 2019: Wouter 2 - Fix #52: do not log transient network full errors unless higher 3 verbosity is set. 4 - Fix checkconf test for new error output string. 5 - tag for 4.2.4rc1 release. 6 727 November 2017 Jeroen 8 - Fix regressions in configparser.y 9 1022 November 2019: Wouter 11 - Fix #48: Add make distclean that removes config.h made by configure. 12 And add maintainer-clean that removes bison and flex output. 13 1418 November 2019: Wouter 15 - Detect fixed time memcmp for openssl 0.9.8 compatibility. 16 - Detect EC_KEY_new_by_curve_name for openssl 0.9.8. 17 - include limits.h for UINT_MAX. 18 - If no recvmmsg, dont use msg_flags member, but errno for error, 19 where our fallback function left it, msg_flags also does not exist 20 on some systems. 21 - Remove unused variable warning for portability. 22 2314 November 2019: Wouter 24 - Fix checkconf test with filenames that sort in the same order. 25 - Tag for 4.2.3rc1. Branch master is 4.2.4 in development. 26 2711 November 2019: Wouter 28 - Fix #44: document that remote-control is a top-level nsd.conf 29 attribute. 30 - Fix compile on OSX. 31 - Fix for #44: nicer top-level clause documentation. 32 3322 October 2019: Jeroen 34 - Number of different UDP handlers has been reduced to one. recvmmsg 35 and sendmmsg implementations are now used on all platforms. 36 Compatible implementations are in place for systems that lack the 37 system calls. 38 - Socket options are now set in designated functions for easy reuse. 39 - Socket setup has been simplified for easy reuse. 40 - Configuration parser is now aware of the context in which an option 41 was specified. 42 4321 October 2019: Wouter 44 - For #21 add 45 contrib/patch_for_s6_startup_and_other_service_supervisors.diff 46 that adds support for readiness notification with READY_FD from 47 Cameron Nemo. 48 4917 October 2019: Jeroen 50 - Fix #40: Merge small fixes for confine-to-zone by Greg Bock. 51 5215 October 2019: Jeroen 53 - For #39: Merge confine-to-zone feature contributes by Greg Bock. 54 5526 September 2019: Wouter 56 - Fix #38: log address and failure reason with tls handshake errors, 57 squelches (the same as unbound) some unless high verbosity is used. 58 - Fixup clang analysis warning in xfrd_parse_received_xfr_packet 59 master dereference. 60 6125 September 2019: Wouter 62 - The nsd.conf includes are sorted ascending, for include statements 63 with a '*' from glob. 64 6516 September 2019: Wouter 66 - Fixup warnings during --disable-ipv6 compile. 67 - Fixup unit test executable to run without IPv6. 68 694 September 2019: Wouter 70 - Fix #35: excessive logging of ixfr failures, it stops the log when 71 fallback to axfr is possible. log is enabled at high verbosity. 72 732 September 2019: Wouter 74 - For #21: pidfile "" allows to run NSD without a pidfile, for 75 startup management tools like daemontools. 76 7728 August 2019: Wouter 78 - In tests check for tls test tool availability. 79 8019 August 2019: Wouter 81 - Tag for 4.2.2 release. Git master contains 4.2.3 in development. 82 8313 August 2019: Wouter 84 - Fix error message for out of zone data to have more information. 85 - Tag for 4.2.2rc2. 86 8712 August 2019: Wouter 88 - Fix #33: Fix segfault in service of remaining streams on exit. 89 906 August 2019: Wouter 91 - Tag for 4.2.2rc1. 92 935 August 2019: Wouter 94 - PR #31: nsd-control: Add missing stdio header. 95 - PR #32: tsig: Fix compilation without HAVE_SSL. 96 - Cleanup tls context on xfrd exit. 97 9831 July 2019: Wouter 99 - Fix #29: SSHFP check NULL pointer dereference. 100 - Fix #30: SSHFP check failure due to missing domain name. 101 - Fix to timeval_add in minievent for remaining second in microseconds. 102 10322 July 2019: Wouter 104 - Set timeout for refetch immediately, only spread load when there 105 are retries. 106 10719 July 2019: Wouter 108 - Set no renegotiation on the SSL context to stop client 109 session renegotiation. 110 11118 July 2019: Wouter 112 - Fix #25: NSD doesn't refresh zones after extended downtime, 113 it refreshes the old zones, with a random delay of a couple of 114 seconds to spread the load. 115 - Fix so that expired zones stay expired when server is down a 116 long time. 117 11817 July 2019: Wouter 119 - Fix that NSD warns for wrong length of the hash in SSHFP records. 120 12115 July 2019: Wouter 122 - PR #23: Fix typo in nsd.conf man-page. 123 1244 July 2019: Wouter 125 - Set version to 4.2.2 in development. 126 - clean memory on exit of nsd-checkzone for memory debug. 127 - Fix #20: CVE-2019-13207 Stack-based Buffer Overflow in the 128 dname_concatenate() function. Reported by Frederic Cambus. 129 It causes the zone parser to crash on a malformed zone file, 130 with assertions enabled, an assertion catches it. 131 - Fix #19: Out-of-bounds read caused by improper validation of 132 array index. Reported by Frederic Cambus. The zone parser 133 fails on type SIG because of mismatched definition with RRSIG. 134 1352 July 2019: Wouter 136 - Tag for 4.2.1rc1 137 13827 June 2019: Wouter 139 - Fix unit test for added options and no dot after zone updated 140 log message. 141 - Fix compile without accept4. 142 14321 June 2019: Wouter 144 - Omit remaining tcp processing if the list is empty. 145 - Fix output of nsd-checkconf -h. 146 14720 June 2019: Wouter 148 - Initialize event structures before event_set, to stop uninitialized 149 values from setting event library lists and assertions, that would 150 sometimes also show after event_del. 151 - Added num.tls and num.tls6 stat counters. 152 - PR #12: send-buffer-size, receive-buffer-size, 153 tcp-reject-overflow options for nsd.conf, from Jeroen Koekkoek. 154 - Do not use symbol from libc, instead use own replacement, if not 155 available, for accept4. 156 - Fix #14, tcp connections have 1/10 to be active and have to work 157 every second, and then they get time to complete during a reload, 158 this is a process that lingers with the old version during a version 159 update. 160 16119 June 2019: Wouter 162 - Fix tls handshake event callback function mistake, reported 163 by Mykhailo Danylenko. 164 16518 June 2019: Wouter 166 - Fix #15: crash in SSL library, initialize variables for TCP access 167 when TLS is configured. 168 16914 June 2019: Wouter 170 - Fix to init event not pointer, in reassignment. 171 17212 June 2019: Wouter 173 - Fix to init event structure for reassignment. 174 17511 June 2019: Wouter 176 - NSD 4.2.0 release. Current development is 4.2.1. 177 - Fixup of RELNOTES, corrected RFC reference for 4892. 178 - Fix #13: Stray dot at the end of some log entries, removes dot 179 after updated serial number in log entry. 180 - Fix TLS cipher selection, the previous was redundant, prefers 181 CHACHA20-POLY1305 over AESGCM and was not as readable as it could be. 182 - Consolidate server tls context create and remote control context 183 create, with hardening for the remote control tls context too. 184 1856 June 2019: Wouter 186 - NSD 4.2.0rc1 tag. 187 1884 June 2019: Wouter 189 - Fix unit test for outgoing interface to use random port numbers for 190 the outgoing interface config. 191 19229 May 2019: Wouter 193 - Fix to guard _OPENBSD_SOURCE from redefinition. 194 19528 May 2019: Wouter 196 - Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD. 197 19816 May 2019: Wouter 199 - Fix #10: Fix memory leaks caused by duplicate rr and include 200 instructions. 201 2026 May 2019: Wouter 203 - Note CII best practices badge for NSD on the README.md. 204 2052 May 2019: Wouter 206 - Fix .gitignore for unit test generated files. 207 - Fix checkconf unit test for hide-identity and tls. 208 2091 May 2019: Wouter 210 - Fix makedist.sh for use with git. 211 - Nicer output on travis for clang analysis. 212 - Add .gitignore file to exclude built files from version tracking. 213 - Add README.md file in repository with compile instructions. 214 - Fix .gitignore for dnstap files and aclocal temp. 215 - Add aclocal to README.md for pkgconfig for some configure options. 216 21725 April 2019: Wouter 218 - Add tls.tpkg unit test for DNS over TLS functionality. 219 22018 April 2019: Wouter 221 - Fix to avoid buffer alloc with global buffer in tls write handler. 222 - Fix to initialize event structure when accepting TCP connection. 223 - Use travis for build check, initial unit test and clang analysis. 224 - Disable SSLv2,3,TLSv1.0,1.1 if TLS1.2 is available in libssl. 225 - Disable weak ciphers, enable CIPHER_SERVER_PREFERENCE. 226 - further setup ssl ctx after the keys are loaded, for ECDH. 227 - TLS OCSP stapling support, enabled with tls-service-ocsp: filename, 228 patch from Andreas Schulze. 229 23017 April 2019: Wouter 231 - Fix to share openssl init code, and perform it once. 232 23316 April 2019: Andreas via Sara 234 - Patch to add support for TCP Fast Open 235 - Patch to add support for tls service on a specified tls port 236 23716 April 2019: Wouter 238 - Fix #4249: The option hide-identity: yes stops NSD from responding 239 with the hostname for chaos class queries. Implements the RFC4829 240 security considerations. 241 - Remove starttls, this signalling method was not standardized. 242 - Remove TO bit, this signalling method was not standardized. 243 - Remove unused first_query and tls_ok states. 244 - Remove sign-compare warning in tls packet send code. 245 - Fix spelling in comment and log printout. 246 - Fix potential uninitialized variable. 247 - Fix documentation for DNS over TLS, and set default port 853. 248 - Fix to add missing comment. 249 - Fix that the TLS handshake routine sets the correct event to 250 continue when done. 251 - Fix that TLS renegotiation calls the read and write routines again 252 with the same parameters when the desired event has been satisfied. 253 - Fix that TCP Fastopen has better error message and supports OSX. 254 - Fix log for fastopen with verbosity. 255 - Squelch TLS handshake failure log until verbosity 3. 256 - Add per-zone statistics for TLS queries, and dnstap for TLS queries, 257 and rcode and TCflag statistics for TCP and TLS queries. 258 25925 March 2019: Wouter 260 - Print IP address when bind socket fails with error. 261 26221 March 2019: Wouter 263 - Fix spelling error in release notes. 264 - Fix to delete unused zparser.default_apex member. 265 26619 March 2019: Wouter 267 - tag 4.1.27rc1. This became 4.1.27 on 25 March 2019 and trunk has 268 4.1.28 in development. 269 27018 March 2019: Wouter 271 - Fix unit test bug013_truncate for new truncation with EDNS size, 272 it is one RR smaller for the truncated response in the test. 273 27414 March 2019: Wouter 275 - Fixed radtree_insert memory leak. 276 - Fixed access recycled variable. 277 27811 March 2019: Wouter 279 - Fix #6: nsd-control-setup: Change validity time to a shorter 280 period (<2038). 281 - Fix unused definition in header remote.h. 282 - Fix #4236: IPV4_MINIMAL_RESPONSE_SIZE=1480 is slightly too big. 283 - Fix #4235: IP_PMTUDISC_OMIT on IPv4/UDP sockets. 284 28518 February 2019: Wouter 286 - Fix to remove unused code. 287 28815 February 2019: Wouter 289 - tentative robustness, delete stats items from list twice if needed. 290 29114 February 2019: Wouter 292 - Fix #4: setusercontext() is in libutil on NetBSD, and also 293 include login_cap.h only if it exists. 294 - Fix #4215: fixup for state update for TSIG information in server 295 processes, nicer printout for tsig_print, tsig_print without 296 arguments and no leaks. 297 - nicer logging for update_tsig. 298 2991 February 2019: Wouter 300 - Fix for tsig assoc_tsig command on acl with nokey elements. 301 30229 January 2019: Wouter 303 - Fix #4215: on-the-fly change of TSIG keys with patch from Igor, adds 304 nsd-control print_tsig, update_tsig, add_tsig, assoc_tsig 305 and del_tsig. These changes are gone after reload, edit the 306 config file (or a file included from it) to make changes that 307 last after restart. 308 - documentation for tsig nsd-control options. 309 31024 January 2019: Wouter 311 - Deny ANY with only one RR in response, by default. Patch from 312 Daisuke Higashi. The deny-any statement in nsd.conf sets ANY 313 queries over UDP to be further moved to TCP as well. 314 Also no additional section processig for type ANY, reducing 315 the response size. 316 - assertions for clang analysis. 317 31810 December 2018: Wouter 319 - Fix for FreeBSD port with dnstap enabled. 320 3216 December 2018: Wouter 322 - Fix to reduce region_log_stats if condition, this removes a 323 debug statement. 324 3255 December 2018: Wouter 326 - Fix #4213: disable-ipv6 and dnstap compile error. 327 3283 December 2018: Wouter 329 - Note that the content_list member is unused; and could be removed 330 if the database format is modified or updated. 331 - Fix that dnstap logs CQ and CR like BIND does. 332 - Revert that, it looks wrong, AQ and AR are for the authoritative. 333 33429 November 2018: Wouter 335 - Tag for 4.1.26rc1. Which became 4.1.26 on 4 dec 2018. 336 Trunk has 4.1.27 in development. 337 - Fix clang analysis warning on null in closest encloser for wildcard 338 denial nsec. 339 - Fix clang analysis warnings. 340 34127 November 2018: Wouter 342 - Fix parsezone failure in 4194 fix. 343 34426 November 2018: Wouter 345 - Fix to not set GLOB_NOSORT so the nsd.conf include: files are 346 sorted and in a predictable order. 347 - Added nsd-control changezone. nsd-control changezone name pattern 348 allows the change of a zone pattern option without downtime for 349 the zone, in one operation. 350 - Fix #3433: document that reconfig does not change per-zone stats. 351 35220 November 2018: Wouter 353 - Fix #4205: enable-recvmmsg in mixed IPv4/IPv6 environment fails. 354 This sets the msg_hdr.msg_namelen correctly after receipt. 355 35619 November 2018: Wouter 357 - Support SO_REUSEPORT_LB in FreeBSD 12 with the reuseport: yes 358 option in nsd.conf. 359 - Fix #4202: nsd-control delzone incorrect exit code on error. 360 - Tab style fix to use tab for 8 spaces, from Xiaobo Liu. 361 36225 October 2018: Wouter 363 - Adjust dnstap socket path for chroot. 364 36522 October 2018: Wouter 366 - Fix #4194: Zone file parser derailed by non-FQDN names in RHS of 367 DNSSEC RRs. 368 - Fix some more, neater code and checks for domain length limit. 369 - check that the dnstap socket file can be opened and exists, print 370 error if not. 371 3724 October 2018: Wouter 373 - dnstap work, the dnstap.proto is a copy of the file from Unbound, 374 also dnstap.m4 configure include file. 375 - dnstap collector: free eventbase and memclean nicer. 376 - dnstap collector: send data and read it in collector. 377 - dnstap/dnstap.c and .h from Unbound's contribution from 378 Farsight Security, added to then adapt it for dnstap logging in NSD. 379 - dnstap.c with auth query and auth response, and called from 380 the collector. 381 - dnstap work, config nsd.conf parse. 382 - dnstap example config. 383 38425 September 2018: Wouter 385 - NSD 4.1.25 released, trunk has 4.1.26 in development. 386 38718 September 2018: Wouter 388 - tag for NSD 4.1.25rc1. 389 39017 September 2018: Wouter 391 - Fix #4156: Fix systemd service manager state change notification 392 39314 September 2018: Wouter 394 - Remove unused if clause during server service startup. 395 39613 September 2018: Wouter 397 - Fix typo in clang analysis test. 398 - Annotate exit functions with noreturn. 399 - nsd-control prints neater errors for file failures. 400 40112 September 2018: Wouter 402 - clang analysis test. 403 40411 September 2018: Wouter 405 - Fix to combine the same error function into one, from Xiaobo Liu. 406 - Fix initialisation in remote.c. 407 - please clang analyzer and fix parse of IPSECKEY with bad gateway. 408 - Fix unit test code for clang analyzer. 409 - Fix nsd-checkconf fail on bad zone name. 410 41110 September 2018: Wouter 412 - Fix coding style in nsd.c 413 4147 September 2018: Wouter 415 - append_trailing_slash has one implementation and is not repeated 416 differently. 417 4184 September 2018: Wouter 419 - Fix codingstyle in nsd-checkconf.c in patch from Sharp Liu. 420 42115 August 2018: Wouter 422 - Fix use_systemd typo/leftover in remote.c. 423 42413 August 2018: Wouter 425 - tag for 4.1.24 release. 426 - trunk is 4.1.25 in development. 427 - Fix that nsec3 precompile deletion happens before the RRs of 428 the zone are deleted. 429 - Fix printout of accepted remote control connection for unix sockets. 430 4316 August 2018: Wouter 432 - tag for 4.1.24rc1 release. 433 43430 July 2018: Wouter 435 - Tag for NSD 4.1.23 release, trunk is 4.1.24, includes 436 fix NSD time sensitive TSIG compare vulnerability. 437 - Fix checkconf test for use-systemd option. 438 43925 July 2018: Wouter 440 - #4133: Fix that when IXFR contains a zone with broken NSEC3PARAM 441 chain, NSD leniently attempts to find a working NSEC3PARAM. 442 44323 July 2018: Wouter 444 - Remove socket activation from systemd code, it was reported as 445 not useful to enable. The readiness signalling is still there, 446 and can be enabled with use-systemd: yes. 447 - Only call sd_notify from systemd when use-systemd is yes. 448 4496 July 2018: Wouter 450 - RFC8162 support, for record type SMIMEA. 451 - Fix that type CAA (and URI) in the zone file can contain 452 dots when not in quotes. 453 45426 June 2018: Wouter 455 - configure --enable-systemd (needs pkg-config and libsystemd) can 456 be used to then use-systemd: yes in nsd.conf and use socket 457 activation and readiness signalling with systemd. 458 45919 June 2018: Wouter 460 - #4106: Fix that stats printed from nsd-control are recast from 461 unsigned long to unsigned (remote.c). 462 46314 June 2018: Wouter 464 - Fix that first control-interface determines if TLS is used. Warn 465 when IP address interfaces are used without TLS. 466 46712 June 2018: Wouter 468 - #4102: control interface via local socket. 469 configure it with control-interface: "/path/nsd.ctl" The path 470 has to start with a / to separate it from an IP address. 471 The local socket does not use SSL, but unencrypted traffic, use 472 file and containing directory permissions to restrict access. 473 4746 June 2018: Wouter 475 - Patch to fix openwrt for mac os build darwin detection in configure. 476 4774 June 2018: Wouter 478 - tag for 4.1.22rc1. Became 4.1.22 on 11 June, trunk is 4.1.23 in 479 development from this point. 480 48131 May 2018: Wouter 482 - Fix to use same condition for nsec3 hash allocation and free. 483 48423 May 2018: Wouter 485 - Use accept4 to speed up answer of TCP queries, on Linux and FreeBSD 486 and OpenBSD. 487 48822 May 2018: Wouter 489 - Fix nsec3 hash of parent and child co-hosted nsec3 enabled zones. 490 49115 May 2018: Wouter 492 - Fix memory free in unit test. 493 49414 May 2018: Wouter 495 - Tag for 4.1.21 release. 496 - trunk has 4.1.22 in development. 497 - refuse-any sends truncation (+TC) in reply to ANY queries over UDP, 498 and allows TCP queries like normal. 499 5007 May 2018: Wouter 501 - Tag for 4.1.21rc1 release. 502 5034 May 2018: Wouter 504 - Fix #4093: Release notes not using 2018. 505 5063 May 2018: Wouter 507 - Fix buffer size warnings from compiler on filename lengths. 508 50926 April 2018: Wouter 510 - lower memory usage for tcp connections, so tcp-count can be higher. 511 - Fix checkconf test for refuse-any option. 512 5133 April 2018: Wouter 514 - refuse-any nsd.conf option that refuses queries of type ANY. 515 5165 March 2018: Wouter 517 - Fix #3562: explain build error when flex missing. 518 51920 February 2018: Wouter 520 - For more clang warnings 521 - Fix spelling error in xfr-inspect. 522 52319 February 2018: Wouter 524 - Fix for clang analysis complaints. 525 52615 February 2018: Wouter 527 - --enable-memclean cleans up memory for use with memory checkers, 528 eg. valgrind. 529 - Fix unused variable warnings from clang analyzer. 530 53114 February 2018: Wouter 532 - updated RELNOTES for upcoming release. 533 - tag 4.1.20rc1, became release on 20 feb, trunk has 4.1.21 in 534 development. 535 5369 February 2018: Wouter 537 - make depend: updated the make dependencies in the Makefile. 538 5398 February 2018: Wouter 540 - Fix memory leak when rehashing nsec3 after axfr or zonefile read, 541 in the selectively allocated precompiled nsec3 hashes. 542 5436 February 2018: Wouter 544 - Fix memory leak in zone file read of unknown rr formatted RRs. 545 54611 December 2017: Wouter 547 - Add test for support of -Wno-address-of-packed-member for 548 --enable-packed. 549 - tag for release 4.1.19 550 - trunk has 4.1.20 in development. 551 5528 December 2017: Wouter 553 - tag for 4.1.19rc1 554 5557 December 2017: Wouter 556 - Fixup lexer warning for gcc 4.2. 557 5586 December 2017: Wouter 559 - Fix 3392: Fix regression in 4.1.18 for notify lists with ip4 560 and ip6 targets. 561 5625 December 2017: Wouter 563 - Fix spelling error in xfr-inspect. 564 5651 December 2017: Wouter 566 - Fix warnings emitted by clang for --enable-packed. Alignment is not 567 a problem for x86_64, don't enable packed when the platform 568 requires aligned access. 569 57030 November 2017: Wouter 571 - tag for 4.1.18 release. 572 - trunk has 4.1.19 in development. 573 - ignore fallthrough compiler warning in flex EOF rule. 574 57527 November 2017: Wouter 576 - Fix crash for DS query when parent and child zones both configured 577 in nsd.conf and parent zone has not loaded properly. 578 - tag for 4.1.18rc2. 579 58016 November 2017: Wouter 581 - tag for 4.1.18rc1. 582 58314 November 2017: Wouter 584 - Fix #2871: Increase number of sockets for xfrd transfers. 585 5866 November 2017: Wouter 587 - Set usage counts in namedb tree to uint32 to save memory. 588 - Fix up debug content from nsec3 collision printout work. 589 5902 November 2016: Wouter 591 - make ip-transparent option work on OpenBSD. 592 59311 October 2016: Wouter 594 - Fix #1567: Change crit to err log level for gettimeofday failure. 595 Add defines for compile without syslog. 596 5979 October 2016: Wouter 598 - Fix collision printout of nsec3 to print name, hash and reverse. 599 6002 October 2016: Wouter 601 - nsd-control zonestatus prints wait time between attempts, for zones 602 that are in that waiting time. 603 60419 September 2016: Wouter 605 - merges feature branch branches/alloced_prehashes into trunk. 606 60718 September 2016: Wouter 608 - Fix #1446: A corrupted zone file "propagates" to good ones. 609 61014 September 2016: Wouter 611 - Fix layout in xfrd.c. 612 6136 September 2017: Willem 614 - Save memory by selectively allocate precompiled nsec3 hashes 615 61629 August 2016: Wouter 617 - With --enable-packed save memory, at expense of unaligned reads. 618 - Fix writev compile warning on FreeBSD. 619 62025 July 2016: Wouter 621 - NSD sends up to 16 notifies simultaneously for up to 64 zones, 622 to increase rate of notification for large master configurations. 623 62424 July 2016: Wouter 625 - Fix gcc 7.1.1 warnings. 626 62717 July 2016: Wouter 628 - Trunk has 4.1.18 629 - xfr-inspect is part of source dir, but not made or installed by 630 default. 631 - retry timeout between sending notifies dropped from 15 to 3 sec. 632 63313 July 2016: Wouter 634 - tag 4.1.17rc1, and that became the 4.1.17 release on 21 July 2017. 635 63629 June 2016: Wouter 637 - make depend. 638 63926 June 2016: Wouter 640 - Fix text format of deletes for CDS and CDNSKEY, single 0 to represent 641 empty base64 or hex string. 642 64323 June 2016: Wouter 644 - Fix potential null pointer in nsec3 adjustment tree. 645 64615 June 2016: Wouter 647 - xfr-inspect debug tool prints out xfr contents of files in tmp. 648 6496 June 2016: Wouter 650 - Fix #1272: use writev to put tcp length field with data for outgoing 651 zone transfer requests. 652 65316 May 2016: Wouter 654 - zone parser parses type AVC (it has TXT format). 655 65625 April 2016: Wouter 657 - 4.1.16 release tag. 658 - trunk contains 4.1.17 in development. 659 66011 April 2016: Wouter 661 - 4.1.16 rc1 tag for release. 662 - minor manpage fix. 663 6645 April 2016: Wouter 665 - Patch for expire state in multi-master when masters includes 666 broken master. 667 66827 March 2016: Wouter 669 - Fix 1243: Option to make NSD emit really minimal responses, 670 minimal-responses: yes in nsd.conf. 671 - but they give additional information for priming queries (type NS). 672 6736 March 2016: Wouter 674 - Fix 1228: OpenSSL include is not guarded with HAVE_SSL 675 67628 February 2016: Wouter 677 - Printout serial error with hint it may be too big. 678 67920 February 2016: Wouter 680 - Fix missing _t to _type conversion for disable-radix-tree option. 681 68215 February 2016: Wouter 683 - zone parser can parse acronyms for algorithms ED25519 and ED448. 684 68513 February 2016: Wouter 686 - Calculate new udb index after growing the array, fix from 687 Chaofeng Liu. 688 6897 February 2016: Wouter 690 - tag for 4.1.15 rc1. Which became 4.1.15 on 16 Feb. Trunk 4.1.16. 691 69219 January 2016: Wouter 693 - Fix to rename _t typedefs because POSIX reserves them. 694 6953 January 2016: Wouter 696 - Fix #1195: Fix so that NSD fails on non-compliant values for Serial. 697 69814 December 2016: Wouter 699 - Squelch zone transfer error address family not supported by protocol 700 at low verbosity levels. 701 70213 December 2016: Wouter 703 - Fix nsd-control and ipv6 only. 704 7058 December 2016: Wouter 706 - tag 4.1.14 707 - trunk contains 4.1.15 in development. 708 7091 December 2016: Wouter 710 - Fix restart of zone transfers when new config becomes available. 711 - tag 4.1.14rc1 712 71325 October 2016: Wouter 714 - Fix #1132 for SERVFAIL zones perform backoff, and remembers the 715 timeout on next startup. 716 - Save backoff timeout into xfrd.state file, this file has a higher 717 version number now. Old files are skipped silently (causes 718 refresh) and created as new files upon exit. 719 - Set number of rounds to 1; NSD will try every master once, then 720 wait for timeout or notify. 721 - Fix axfr fallback for rounds to 1. 722 72320 October 2016: Wouter 724 - suppress compile warning in lex files. 725 72618 October 2016: Wouter 727 - Robust fix against missing master in tcp_open for xfrd. 728 - More in depth fix for the previous. 729 - Fix wildcards in include: config statements with chroot enabled. 730 73127 September 2016: Wouter 732 - NSD 4.1.13 tag. 733 - trunk has 4.1.14 in development. 734 - Fix null memcpy for radixtree with single link element. 735 73619 September 2016: Wouter 737 - Review comments Ralph: wrapped long lines and nicer example conf. 738 73916 September 2016: Wouter 740 - NSD 4.1.13rc1 tag. 741 74215 September 2016: Wouter 743 - Test for openssl init_crypto and init_ssl functions. 744 74514 September 2016: Ralph 746 - Fix OPENSSL_INIT_ADD_ALL_DIGESTS compatibility check 747 74813 September 2016: Wouter 749 - Fix double const in dname_const() function. 750 - Silenced flex-generated sign-unsigned warning print with gcc 751 diagnostic pragma. 752 7538 September 2016: Wouter 754 - more extensible edns option handling. 755 7562 September 2016: Wouter 757 - Release of 4.1.12; trunk is 4.1.13 and the patch for 4.1.12 (that 758 does not contain the other changes to the trunk) is folded into 759 the trunk. 760 - Fix #827: fix compile with openssl 1.1.0 with api=1.1.0. 761 76225 August 2016: Wouter 763 - Fix multimaster for not tried full zone transfer for a expired zone. 764 - Explain --disable-radix tree uses some more CPU. 765 76622 August 2016: Wouter 767 - Fix README spelling error of BSD license (reported by Joerg Jung). 768 76919 August 2016: Wouter 770 - for type SRV add A/AAAA to the additional section (if possible), 771 just like we already do for type MX. 772 77317 August 2016: Wouter 774 - Add robustness against unallocated data in nsec3 trees. 775 77616 August 2016: Wouter 777 - configure --disable-radix-tree for about 15% lower memory usage. 778 77912 August 2016: Wouter 780 - Fix #817: xfrd update failed loop. 781 7829 August 2016: Wouter 783 - Can config key algorithms with the digest name, eg. 'sha256'. 784 - default tsig algorithm is sha256. 785 - Fix typo in log output, 'transfered' -> 'transferred'. 786 - Fix compile warnings about signcompare in minmax retrytime. 787 7888 August 2016: Wouter 789 - Support syntax of RR type OPENPGPKEY from RFC 7929. 790 7915 August 2016: Wouter 792 - multi-master-check: yes can be used to check all masters for the 793 last version, using the higher version from the configured masters, 794 from Manabu Sonoda. 795 - small fixups on patch. And fix spacing and remove configure flag. 796 - Fix #812: make depend fails after distribution. 797 7982 August 2016: Wouter 799 - Fix unused result warnings from write and strtol. 800 8011 August 2016: Wouter 802 - Tag 4.1.11rc1. 803 - Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut. 804 - Tag 4.1.11rc2. 805 - trunk is 4.1.12 in development. 806 8078 July 2016: Wouter 808 - Note down tracking numbers for issue JVN#63359718 JPCERT#91251865. 809 8105 July 2016: Wouter 811 - Fix #790: size-limit-xfr can stop NSD from downloading infinite zone 812 transfer data size, from Toshifumi Sakaguchi. 813 81427 June 2016: Wouter 815 - Set default for min-refresh-time and min-retry-time to 0. Behaves 816 just like before, but has a configurable option in nsd.conf. 817 - Fix #783: Trying to run a root server without having configured it 818 silently gives wrong answers. 819 82016 June 2016: Wouter 821 - When tcp is more than half full, use short timeout for tcp session. 822 - Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori. 823 - man page entries for max-refresh-time patch. 824 82515 June 2016: Wouter 826 - Fix build without IPv6, patch from Zdenek Kaspar. 827 82814 June 2016: Wouter 829 - release 4.1.10 and tag for that. 830 - trunk has 4.1.11 in development. 831 8327 June 2016: Wouter 833 - Fix NSEC3 ent fix to use closest encloser, not wildcard denial. 834 8352 June 2016: Wouter 836 - Fix for NSEC3 with zone signed without exact match for empty 837 nonterminals, the answer for that domain gets wildcard denial. 838 - #772 Document that recvmmsg has IPv6 problems on some linux kernels. 839 - tag for 4.1.10rc1. 840 84131 May 2016: Wouter 842 - print notice that nsd is starting before taking off. 843 84420 May 2016: Wouter 845 - Updated fix for nonterminal nsec3 answers. 846 84719 May 2016: Wouter 848 - Fix empty nonterminal nsec3 cover answers. 849 85012 May 2016: Wouter 851 - NSD includes AAAA before A for queries over IPV6 (in delegations). 852 And TC is set if no glue can be provided with a delegation because 853 of packet size. 854 85519 April 2016: Wouter 856 - Fix #755: NSD spins after a zone update and a lot of TCP queries. 857 8587 April 2016: Wouter 859 - If set without nsd.db print "" as the default in the man pages. 860 8614 April 2016: Wouter 862 - Fix #751: NSD fails to occlude names below a DNAME. 863 86424 March 2016: Wouter 865 - Fix for openssl 1.1.0, HMAC_CTX size not exported from openssl. 866 86721 March 2016: Wouter 868 - Update acx_nlnetlabs.m4 to version 33 with HMAC_Update test. 869 - acx_nlnetlabs.m4 to v34, with -ldl -pthread test for libcrypto. 870 87115 March 2016: Wouter 872 - ip-freebind: yesno option in nsd.conf sets IP_FREEBIND socket option 873 for Linux, binds to interfaces and addresses that are down. 874 - Change the nsd.db file version because of nanosecond precision fix. 875 - 4.1.9 release with the nsd.db file version fix (but not freebind), 876 trunk contains 4.1.10 in development. 877 87810 March 2016: Wouter 879 - Tag 4.1.8 880 - Trunk contains 4.1.9 in development. 881 8822 March 2016: Wouter 883 - Tag 4.1.8rc1 884 8851 March 2016: Wouter 886 - #744: Fix that NSD replies for configured but unloaded zone 887 with SERVFAIL, not REFUSED. 888 88916 February 2016: Wouter 890 - RR type CSYNC (RFC7477) syntax is supported. 891 89229 January 2016: Wouter 893 - #739: zonefile changes when mtime is small are detected on reload, 894 if filesystem supports precision mtime values. 895 89619 January 2016: Wouter 897 - Fix #736: segfault during zone transfer. 898 89908 January 2016: Wouter 900 - Define _DEFAULT_SOURCE with _BSD_SOURCE for recent Linuxes. 901 90205 January 2016: Wouter 903 - #732: tcp-mss, outgoing-tcp-mss options for nsd.conf, patch 904 from Daisuke Higashi. 905 90604 January 2016: Wouter 907 - Updated acx_nlnetlabs to version 32. 908 90911 December 2015: Wouter 910 - Fix flto check for OSX clang. 911 91210 December 2015: Wouter 913 - 4.1.7 release 914 - trunk has 4.1.8 in development. 915 - take advantage of arc4random_uniform if available, patch from 916 Loganaden Velvindron. 917 9183 December 2015: Wouter 919 - tag for 4.1.7rc1 prerelease. 920 9212 December 2015: Wouter 922 - configure --enable-ratelimit-default-is-off with --enable-ratelimit 923 to set the default ratelimit to disabled but available in nsd.conf. 924 - Document that ratelimit qps and slip are updated in reconfig. 925 - version: "string" option to set chaos version query reply string. 926 - Fix up defaults in manpage. 927 9281 December 2015: Wouter 929 - Explain rrl-slip better in documentation. 930 93130 November 2015: Wouter 932 - Fix TCP responses when REUSEPORT is in use by turning it off. 933 - reuseport: no is the default, because the feature is not troublefree. 934 - Document default in manpage for rrl-slip, ip4 and 6 prefixlength. 935 93624 November 2015: Wouter 937 - Fix zonec ttl mismatch printout to include more information. 938 93918 November 2015: Wouter 940 - RELNOTES more descriptive. 941 - newer acx_nlnetlabs.m4. 942 - spelling fixes from Igor Sobrado Delgado. 943 94417 November 2015: Wouter 945 - Fix #721: Fix wrong error code (FORMERR) returned for unknown 946 opcode. NOTIMP expected. 947 94816 November 2015: Wouter 949 - Allocate less memory for TSIG digest. 950 9516 November 2015: Wouter 952 - Fixup for newer acx_nlnetlabs.m4, test for openssl version after 953 testing for libdl need. 954 9555 November 2015: Wouter 956 - newer acx_nlnetlabs.m4, does not needlessly link with -ldl. 957 95830 October 2015: Wouter 959 - Fix tpkg tests for portability. 960 96129 October 2015: Wouter 962 - patch from Doug Hogan for SSL_OP_NO_SSLvx options. 963 - updated contrib/nsd.spec, from Bálint Szigeti. 964 - support configure --with-dbfile="" for nodb mode by default, where 965 there is no binary database, but nsd reads and writes zonefiles. 966 96727 October 2015: Wouter 968 - portability fixes. 969 97026 October 2015: Wouter 971 - Init pfd for handlers added during handler-event-walk. 972 97323 October 2015: Wouter 974 - Fix many interfaces and zones updates from nsd parent event loop. 975 97622 October 2015: Wouter 977 - 4.1.6 release tag. 978 - trunk contain 4.1.7 in development. 979 98020 October 2015: Wouter 981 - 4.1.6rc2 tag created. 982 98319 October 2015: Wouter 984 - Fix compile of zonec error message on FreeBSD. 985 98615 October 2015: Wouter 987 - 4.1.6rc1 tag created. 988 98913 October 2015: Wouter 990 - nsd-checkconf warns for master zones with no zonefile statement. 991 - Fix start failure when many file descriptors are in use. 992 - The servfail rcode is not printed with a space in the middle. 993 - fixup file descriptor fixup nicer. 994 - print failed token for config syntax error or parse error. 995 99612 October 2015: Wouter 997 - Fix #711: Document that debug-mode yes is used for staying 998 attached to the supervisor console. 999 - Document verbosity 3 prints more information. 1000 100130 September 2015: Wouter 1002 - makedist.sh print on pgp signature creation. 1003 100428 September 2015: Wouter 1005 - Fix typo in zonec.c inside error message. 1006 100724 September 2015: Wouter 1008 - Fix #701: Fix that AD=1 set in a BADVERS response. 1009 101021 September 2015: Wouter 1011 - Fix #706: default port 53 not opened on ip4 because of getaddrinfo 1012 hints initialisation failure. 1013 - 4.1.5 release tag 1014 - trunk contains 4.1.6 in development. 1015 10169 September 2015: Wouter 1017 - 4.1.4 release tag created. 1018 - trunk contains 4.1.5 in development. 1019 102031 August 2015: Wouter 1021 - 4.1.4rc1 tag created. 1022 102328 August 2015: Wouter 1024 - Fix #698 formatting errors and typos in nsd.8.in. 1025 - Add --enable-pie and --enable-relro-now options. 1026 102718 August 2015: Wouter 1028 - Admitted axfrs are logged at verbosity 1. Refused at verbosity 2. 1029 103017 August 2015: Wouter 1031 - Fixed checkconf test for reuseport setting. 1032 103314 August 2015: Wouter 1034 - SO_REUSEPORT does not work on FreeBSD. Enabled by default on Linux, 1035 not enabled by default on other OSes. 1036 10375 August 2015: Wouter 1038 - Fix that notify from nsd-control contains soa serial. 1039 10403 August 2015: Wouter 1041 - squelch SO_REUSEPORT failure on verbosity less than 3. 1042 104331 July 2015: Wouter 1044 - removed hardcoded interface limit, --with-max-ips removed. 1045 - SO_REUSEPORT support. 1046 104716 July 2015: Wouter 1048 - Fix #618: documented need to list ip-addresses separately in 1049 nsd.conf if there are multiple, because the source address of 1050 replies can otherwise go wrong. 1051 105210 July 2015: Wouter 1053 - Fix that for expired zones NSD performs an AXFR and accepts newer 1054 and older serial numbers. 1055 - Document that minimal responses only minimizes responses to fit 1056 in one datagram. It does not minimize smaller responses. 1057 10582 July 2015: Wouter 1059 - Fix NSID response for short edns sizes. 1060 106123 June 2015: Wouter 1062 - Trunk contains 4.1.4 in development. 1063 10644 June 2015: Wouter 1065 - Tag 4.1.3rc1 1066 - improve nsd-control usage text. (23 june - added to 4.1.3) 1067 - RFC7553 RR Type URI support. 1068 10692 June 2015: Wouter 1070 - Fix redefined macro lex warning for freebsd flex. 1071 107229 May 2015: Wouter 1073 - Fix that formerrors are ratelimited. 1074 107519 May 2015: Wouter 1076 - max-interfaces raised to 32. 1077 107818 May 2015: Wouter 1079 - removed unused defines for unofficial tsig-hmac algorithm codes. 1080 The TSIG algorithm is identified by name in the config file. 1081 108214 May 2015: Wouter 1083 - hmac sha224, sha384 and sha512 support, patch from David Gwynne. 1084 108523 April 2015: Wouter 1086 - Fix crash in zone parser for relative dname after error in origin. 1087 - Test for zone parser failures 1088 108921 April 2015: Wouter 1090 - nsd-control addzones and delzones read list of zones from stdin. 1091 - Fix task and zonestat files to be stored in a subdirectory in tmp 1092 to stop privilege elevation. 1093 - printout names for successful addition and removal with bulk command. 1094 109520 April 2015: Wouter 1096 - Fix #665: when removing subdomain, nsd does not reparse parent zone. 1097 109814 April 2015: Wouter 1099 - trunk contains 4.1.3(upcoming). 1100 11017 April 2015: Wouter 1102 - Tag 4.1.2rc2. 1103 11042 April 2015: Wouter 1105 - Made log message more consistent, changed 'axfr refused' log message 1106 to be more consistent with other messages. Also notify refused. 1107 - verbosity 2 logs axfr refused and notify refused. 1108 verbosity 1 contains less log messages. 1109 111031 March 2015: Wouter 1111 - Tag 4.1.2rc1. 1112 111324 March 2015: Wouter 1114 - Fix #654: Fix contradiction in notify logging verbosity level. 1115 - Incoming notifies have serial number logged (at verbosity 1). 1116 - Fix #655: Fix contradiction in verbosity for zone transfers. 1117 111817 March 2015: Wouter 1119 - Use reallocarray for integer overflow protection, patch submitted 1120 by Loganaden Velvindron. 1121 - Fix allocation integer overflow checks. 1122 112313 March 2015: Wouter 1124 - Fix buffer overflow in config parse of domain name, 1125 reported by John Van de Meulebrouck Brendgard. 1126 112712 March 2015: Wouter 1128 - Updated default keylength in nsd-control-setup to 3k. 1129 113010 March 2015: Wouter 1131 - Fix use after free after zonefile syntax error followed by ttl 1132 or origin directive, reported by John Van de Meulebrouck Brendgard. 1133 - Fix syntax error followed by too many TXT elements parse crash 1134 reported by John Van de Meulebrouck Brendgard. 1135 11369 March 2015: Wouter 1137 - Fix origin directive from unused old value and subdomain parser 1138 failure, reported by John Van de Meulebrouck Brendgard. 1139 11402 March 2015: Wouter 1141 - Fix b64pton out of bounds error on invalid zonefile input 1142 reported by John Van de Meulebrouck Brendgard. 1143 114420 February 2015: Wouter 1145 - Fix segfault on double origin in zone reader (thanks John Van de 1146 Meulebrouck Brendgard). 1147 114819 February 2015: Wouter 1149 - Remove dead code domain_table_iterate. 1150 - Fix segfault in zone reader on invalid input 1151 reported by John Van de Meulebrouck Brendgard. 1152 11535 February 2015: Wouter 1154 - Fix #642: Change 'zone read with no errors' to '.. with success'. 1155 Patch from Benedikt Heine. 1156 11573 February 2015: Wouter 1158 - Tag 4.1.1 release 1159 - Trunk is 4.1.2 in development. 1160 - Remove some duplicate header includes (from Brad Smith). 1161 - Fix tcp waiting list for zone transfers where the bind and connect 1162 calls fail. 1163 116429 January 2015: Wouter 1165 - Fix zonesdir chroot error message. 1166 116728 January 2015: Wouter 1168 - correct some hyphen-used-as-minus-sign (from Andreas Schulze) in 1169 man pages. 1170 117127 January 2015: Wouter 1172 - Tag 4.1.1rc1 1173 117421 January 2015: Wouter 1175 - Synthesize CNAMEs with same TTL as DNAME. 1176 117712 January 2015: Wouter 1178 - Fix casts for ctype functions (from Todd Miller). 1179 - nsd-checkconf -f prints out full name of pidfile (with dir). 1180 11819 January 2015: Wouter 1182 - Fix bug#637: fix that nsd.db grows limitlessly, an off by one 1183 on one megabyte free chunks, created during AXFRs of large zones, 1184 that caused the one megabyte chunk to be leaked. 1185 - Fix udb-inspect for one megabyte chunks, counts and statistics. 1186 11876 January 2015: Wouter 1188 - Fix spinning NSD with lots of failing transfers, due to pointer 1189 comparison using void pointer subtraction (from Otto Moerbeek). 1190 11915 January 2015: Wouter 1192 - Patch nsd_munin_ from Philip Paeps to use type ABSOLUTE. 1193 11944 Nov 2014: Wouter 1195 - Document zonestat config, and nsd-checkconf access. 1196 11973 Nov 2014: Wouter 1198 - Fix that failure to add tcp to tcp base does not leak the socket. 1199 120027 Oct 2014: Wouter 1201 - Disabled use of SSLv3 in nsd-control. 1202 - zonestats are cleared (or not, with stats_noreset). 1203 120422 Oct 2014: Wouter 1205 - Test for wildcard fix (from 3.2). 1206 120716 Oct 2014: Wouter 1208 - Fixes for wildcard addition and deletion, speedup for some cases. 1209 121015 Oct 2014: Wouter 1211 - Fix that queries for noname CH TXT are REFUSED instead of nodata. 1212 121314 Oct 2014: Wouter 1214 - per zone statistics with --enable-zone-stats, configure with 1215 zonestats: "zonestatidentifier", zones with the same id are added. 1216 121710 Oct 2014: Wouter 1218 - Fix #616: retry xfer for zones with no content after command. 1219 - Fix char used as array index warnings on NetBSD. 1220 12218 Oct 2014: Wouter 1222 - Fix "xfrd_handle_ipc: bad mode" log errors when compiled 1223 with --disable-bind8-stats. 1224 122518 Sep 2014: Wouter 1226 - Fix that expired zones stay expired after a server restart. 1227 122815 Sep 2014: Wouter 1229 - RFC 7344: CDS and CDNSKEY (read in). 1230 12314 Sep 2014: Wouter 1232 - Tag 4.1.0. 1233 - trunk is 4.1.1 in development. 1234 - fix manpage for nsd-checkzone to have version and date. 1235 123629 Aug 2014: Wouter 1237 - Fix install of the nsd-checkconf man page. 1238 123928 Aug 2014: Wouter 1240 - Tag 4.1.0rc1 1241 124225 Aug 2014: Wouter 1243 - Increased default --with-max-ips from 8 to 16, this increases the 1244 number of interfaces you can specify in nsd.conf to listen to. 1245 124619 Aug 2014: Wouter 1247 - Remove .LP after .SH in man pages. 1248 12497 Aug 2014: Wouter 1250 - Fix for process swap of main and reload, reload failure from the 1251 pipe is acted on, and reload fail not cause nsd to shutdown, also 1252 ignore sigchlds from the servermain in reload, that would cause 1253 EINTR to break file reads. 1254 - trunk has version 4.1. 1255 12565 Aug 2014: Wouter 1257 - Fix #600: document that provide-xfr provides AXFR and not IXFR. 1258 - remove program group fix, because it is not needed. 1259 - Fix rising-load-average or memory-leaks in OSes (Linux since 2.6), 1260 that keep track of all past process parents, or leak memory 1261 for them. Fix makes it so there is no very deep string of 1262 process parents. 1263 The reload process is now the process parent of servermain. That 1264 makes signals for children arrive at the reload, and servermain 1265 has to use closed pipes to detect that children have exited. 1266 12671 Aug 2014: Wouter 1268 - Set program group on main process and its child processes, and 1269 kill them on a reload. 1270 127120 July 2014: Wouter 1272 - Fix endian.h include for OpenBSD. 1273 127415 July 2014: Wouter 1275 - Fix -O3 compile flag to -O2 to avoid miscompilations. 1276 - Allow user to override the -g -O2 CFLAGS in ./configure. 1277 127811 July 2014: Wouter 1279 - fix strptime implicit declaration error on OpenBSD. 1280 12819 July 2014: Wouter 1282 - removed unnecessary arc4random_uniform. 1283 12848 July 2014: Matthijs 1285 - fake-rfc2553 patch (thanks Benjamin Baier). 1286 12878 July 2014: Wouter 1288 - wait and reap processes that are not part of the process group. 1289 12907 July 2014: Wouter 1291 - Code review fixup from NSD3. 1292 129330 Jun 2014: Wouter 1294 - Fix #590: rrl log does not print wildcard as a star but escaped. 1295 - Fix #591: rrl log messages at verbosity level 1. 1296 (If that does not work for everyone, we need rrl-log: yesno option). 1297 129827 Jun 2014: Wouter 1299 - Fixup rr-test test so that it does not fail on the #553 string. 1300 130117 Jun 2014: Matthijs 1302 - Fix #587: Default value for statistics is 0. 1303 - Remove the shift-reduce conflicts from the bug#553 fix. 1304 13055 Jun 2014: Wouter 1306 - Fix roundrobin cornercase for truncated packets. 1307 - round-robin: yesno in nsd.conf enabled round robin rotation. 1308 130928 May 2014: Wouter 1310 - Fix #585: yylex_destroy missing, cannot compile on RHEL 5.x. 1311 - Fix #583: Round-robin for records in the Answer section. 1312 131322 May 2014: Wouter 1314 - Fix zonefile parse with no whitespace before semicolon comments. 1315 131616 May 2014: Wouter 1317 - xfrd reaps children on a timer as well, similar to server_parent. 1318 13198 May 2014: Wouter 1320 - Fix #564: nsd-checkzone tool to check zonefile correctness. 1321 13227 May 2014: Wouter 1323 - Fix #577: makefile incorrectly installed manpages from srcdir. 1324 132530 April 2014: Wouter 1326 - Fix that xfrd reaps all children on every eventloop, because some 1327 exited reloads may attach here and need reaping, also if the signal 1328 is lost. 1329 133023 April 2014: Wouter 1331 - Fix progress printout for very large zones (numeric overflow). 1332 133310 April 2014: Wouter 1334 - Fix write_socket return value check in server.c (Thanks Brad Smith, 1335 Mark Kettenis). 1336 13378 April 2014: Wouter 1338 - nsd-control addzone reports if zone already exists. 1339 13407 April 2014: Wouter 1341 - Fix #571: unused variable and incompatible pointer warnings when 1342 compiled on a system without INET6. 1343 134427 March 2014: Wouter 1345 - Fix delete or rename of a lot of zones and make it take a 1346 non-enormous time. Database compaction is deferred. 1347 - Speed up deletion of zone contents a lot, (56s to 1s), speeds up 1348 delete, rename and AXFR for zones. Defer emptynonterminal checks. 1349 - Better example config in nsd.conf manual page. 1350 - log-time-ascii option, default yes, with readable timestamp in log. 1351 135225 March 2014: Wouter 1353 - nsd shuts down during init process if given signal. 1354 - shorter logging for zone transfer fail rcodes. 1355 135624 March 2014: Wouter 1357 - include: "foo/nsd.d/*.conf" works, wildcard glob on includes. 1358 - Fix print filename of encompassing config file on read failure. 1359 136021 March 2014: Wouter 1361 - Fix bug in nodatabase mode with ixfrs that change nsec3param 1362 (Thanks Anand Buddhdev). 1363 - Changed maxbackoff for no-content secondary zones from 4h to 24h. 1364 - nocontent zones are checked on startup, but continue backoff 1365 from stored xfrd.state values. 1366 136719 March 2014: Wouter 1368 - made database: "" set the 3600 default for zonefileswrite only 1369 if it is also at its default, so that user settings override. 1370 - Unit test for zonefiles-write. 1371 - Write xfrd.state for nodb mode again. Disable xfrd.state with 1372 xfrdfile: "" in config. Does not check slave zone if state is 1373 same as last time on startup. 1374 - Fixed shutdown message sporadically not printed on exit. 1375 - Documented zonefile %s syntax in nsd.conf man page. 1376 - Fix manpage to put colon after zonefiles check and write. 1377 - Change from 'Zone" to "zone" with ".. serial .. is updated" log 1378 message. 1379 138018 March 2014: Wouter 1381 - unit test for nodb mode. 1382 - Speed up zone write (.nl zonefile 30% faster). 1383 The memory alloc-dealloc in print_rr has been moved to print_rrs. 1384 - (from 3.2), fix for #553 and for other TXT string syntax. 1385 - in nodb mode, xfrd.state is not written out, because the zones 1386 are refreshed upon next startup anyway, so keeping timers and state 1387 is unnecessary. 1388 - zonefiles-write option in nsd.conf, enabled when database is "". 1389 The server writes changed zonefiles to disk every hour. 1390 139117 March 2014: Wouter 1392 - Speed up zone parsing (.nl reads 40% faster). 1393 The rrtype_from_string routine is called often, optimised it. 1394 139514 March 2014: Wouter 1396 - tag 4.0.3 1397 - trunk has 4.0.4 in development. 1398 - database: "" starts without mmap of database. Less memory is used, 1399 zones are read from text zonefile. 1400 140113 March 2014: Wouter 1402 - Fix nsd.db unclean close check. Previous databases are considered 1403 unclean by the code and are created anew. 1404 - Adds nsd.db larger than 400Tb check for sanity. Also test if 1405 filesize as documented in the file is correct. 1406 - nsd waits for tasks to complete on stop, prevents nsd.db corruption. 1407 - fix to not delete tmpdir too early in shutdown process. 1408 140912 March 2014: Wouter 1410 - tag 4.0.2 1411 - trunk has 4.0.3 in development. 1412 - disabled udb checking functionality that made it very slow, 1413 this was enabled when enable-checking was turned on. 1414 141527 February 2014: Wouter 1416 - tag 4.0.2rc1 1417 141826 February 2014: Wouter 1419 - Fix that NSD will delete and recreate not-clean-closed databases. 1420 142120 February 2014: Wouter 1422 - Fix from 3.2: make SOA RDATA comparisons in XFR more lenient (only 1423 check serial). 1424 142518 February 2014: Wouter 1426 - Fix leak of zone name after zonefile read. 1427 - Fix malloc too large that would be leaked in the radix tree. 1428 142914 February 2014: Wouter 1430 - configure change for easier compile on Minix. 1431 143210 February 2014: Wouter 1433 - Fix #552: zonefile loads on nsd-control reconfig when the name 1434 of the file has changed. 1435 14367 February 2014: Wouter 1437 - Fix #551: change Regent to Copyright holder in the LICENSE, 1438 to match the definition on opensource.org for the BSD License. 1439 14403 February 2014: Wouter 1441 - Disabled recvmmsg and sendmmsg usage by default because kernel 1442 versions have implementation issues: ipv6 ignored, security issues. 1443 - Detect libevent2 install automatically by configure, and use 1444 event2 header files if necessary. 1445 - Fixup link with lib/event2 subdir. 1446 144730 January 2014: Wouter 1448 - Fix expired zones to give SERVFAIL, also when parent zone loaded. 1449 145027 January 2014: Wouter 1451 - tag 4.0.1. 1452 - trunk is 4.0.2 in development. 1453 - rcode REFUSED for queries to non-hosted zones. 1454 - documented nsd-control zonestatus output in nsd-control manpage. 1455 - remove mention of nsdc from nsd-checkconf manpage. 1456 145721 January 2014: Wouter 1458 - tag 4.0.1rc2 1459 146020 January 2014: Wouter 1461 - Fix #546: output format errors in nsd_munin_ (Thanks Tom Hendrikx). 1462 146317 January 2014: Wouter 1464 - Fix type CAA. 1465 - Fix type EUI48. 1466 - nsid can be set with "ascii_somestring" in ascii. 1467 - Fix printout of high-chars in TXT on NetBSD. 1468 146916 January 2014: Wouter 1470 - Unit test for WKS failure. 1471 147215 January 2014: Wouter 1473 - tag 4.0.1rc1 1474 147513 January 2014: Wouter 1476 - Check if configure in srcdir collides with outofdir build. 1477 147810 January 2014: Wouter 1479 - Fix that chroot is removed from zonefile names (for absolute names). 1480 14819 January 2014: Wouter 1482 - Fix that bad IXFR updates do not result in double SOA records, 1483 and that an AXFR is started (attempted) when the zone state seems 1484 to be inconsistent with the master's zone state. 1485 14868 January 2014: Matthijs 1487 - Bugfix #542: Match RRSIG TTL with SOA TTL in negative response. 1488 14897 January 2014: Wouter 1490 - Fix xfrd when zone transfer TCP contains zero length packets. 1491 - Fix for NSEC3 zones where parent zone is co-hosted, also NSEC3, 1492 because AXFRs overwrote nsec3 administration in the child zone. 1493 14942 January 2014: Wouter 1495 - Log ip address for sendto and sendmmsg failures. 1496 14974 December 2013: Matthijs 1498 - Support for CAA RRtype (RFC 6844). 1499 150026 November 2013: Wouter 1501 - Fix segfaults after read of zones with rr type WKS from zonefile. 1502 - Seed PRNG for openssl at start of daemon, fixes SSL connection issue. 1503 150425 November 2013: Wouter 1505 - (same as in 3.2.16): fix wildcard cname to nxdomain repeated rrset. 1506 150711 November 2013: Wouter 1508 - Fix bug#534: IXFR query loop over UDP for zones that are unchanged. 1509 151011 November 2013: Matthijs 1511 - EUI48 and EUI64 is now RFC 7043 1512 15135 November 2013: Wouter 1514 - Accept interface: as an alternative for ip-address: for 1515 consistency with unbound.conf syntax. 1516 151729 October 2013: Wouter 1518 - tag for 4.0.0 release. 1519 - trunk has 4.0.1 in development, for bug fixes. 1520 152124 October 2013: Wouter 1522 - Fixup zone change code. 1523 - tag 4.0.0rc3. 1524 152521 October 2013: Matthijs 1526 - Initialize xfrd zone when changing zone from master to slave 1527 and delete xfrd zone when changing zone from slave to master. 1528 152914 October 2013: Wouter 1530 - tag 4.0.0rc2. 1531 153214 October 2013: Matthijs 1533 - Additional log messages with reason why RR to be deleted cannot be 1534 found. 1535 153614 October 2013: Wouter 1537 - Fix for zone transfer that has different-cased RRSIG signer names 1538 or NSEC next-owner names. 1539 15409 October 2013: Wouter 1541 - tsig errors on incoming tsig print key name and source IP of query. 1542 15438 October 2013: Wouter 1544 - Update documentation for nsd -d option. 1545 15467 October 2013: Wouter 1547 - Fix mini_event ev_once flag to be prettier (review comments Yuri). 1548 - tag 4.0.0rc1 recreated. 1549 15504 October 2013: Wouter 1551 - Fix bug where if you do not have flex, and then install flex, it 1552 would not make without a re-untar of the source. 1553 15543 October 2013: Wouter 1555 - Review changes from Matthijs. 1556 - doc/README updated, 'nsdc' is now removed. 1557 15581 October 2013: Wouter 1559 - Review commits from Matthijs. 1560 - doc/UPGRADING updated, review Yuri. 1561 156230 September 2013: Wouter 1563 - tag 4.0.0rc1 1564 - updated doc/RELNOTES 1565 156619 September 2013: Wouter 1567 - configure --disable-recvmmsg for compat with older Linux kernels, 1568 by default it autodetects support in the kernel on the buildmachine. 1569 157020 Aug 2013: Wouter 1571 - Fix time at 2038, uint32s changed to time_t, support 64bit time_t. 1572 157319 Aug 2013: Wouter 1574 - Fix use of 32bit time, for 2038, thanks to Theo de Raadt for patch. 1575 157613 Aug 2013: Wouter 1577 - Bugfix#518 Incorrect RRL prefix length option names in nsd.conf 1578 man page from Ville Mattila. 1579 15809 Aug 2013: Wouter 1581 - Fix that xfrd, and nsd-control, does not stop responding when reload 1582 errors out. The pid is sent like it should by server_main. 1583 - Fix that EOF in quoted string error does not cause reload to exit. 1584 - Fixup errors from the stack code checker. 1585 15866 Aug 2013: Wouter 1587 - Removed use of random when arc4random is available. Thus, random 1588 and srandom are then not linked with the executable. 1589 159016 Jul 2013: Wouter 1591 - Fix segfault with no logfile and chroot (Thanks Patrik Lundin). 1592 159315 Jul 2013: Wouter 1594 - beta 5 tag. 1595 - trunk has beta6 named in configure. 1596 15979 Jul 2013: Wouter 1598 - unlink xfr file if transfer is stopped, timeouted or interrupted. 1599 And unlink xfr file in progress when the zone is deleted. 1600 16018 Jul 2013: Wouter 1602 - Increase tcpbacklog default to 256 (silently capped to 128 on BSD). 1603 For remote control keep it at 16, it has less TCP load. 1604 It does not actually increase TCP performance (some except), but 1605 reduces connection loss when there is a spike in TCP connections. 1606 16075 Jul 2013: Wouter 1608 - nsd-mem stores temp files in current dir because /tmp is too small. 1609 - printout pct parsed, read, nsec3 and written every 100.000 elements 1610 and after 5 seconds. For big zones. 1611 16123 Jul 2013: Wouter 1613 - region-allocator has list of large allocations, so delete is in O(1). 1614 - recursive readroutine for speedup of nsd.db reads (30%). 1615 - udb-inspect prints type summary of nodes in nsd.db. 1616 161728 Jun 2013: Matthijs 1618 - Update tmp serial in xfr checking. 1619 162028 Jun 2013: Wouter 1621 - nsd.db 12% smaller, no nsec3 hash storage. Also ups udb version 1622 because of the format change. printout udb write complete for 1623 debug. 1624 - Fix warning in labellength 0 code. 1625 162627 Jun 2013: Matthijs 1627 - Better XFR checking, fallback to AXFR (if allowed) if three 1628 malformed XFR packets have been seen. 1629 - zonec: Don't crash on domain names with label length 0. 1630 163125 Jun 2013: Matthijs 1632 - Rename --enable-eui-rrtypes to --enable-draft-rrtypes. 1633 163425 Jun 2013: Wouter 1635 - acx_nlnetlabs.m4 update, --disable-flto. 1636 163720 Jun 2013: Matthijs 1638 - Use IPV6 minimum MTU settings with TCP to reduce failures that 1639 are caused by delays in learning working PMTU when communicating 1640 through a tunnel. 1641 - Improved RRL logging: also print triggering query src addr and qtype 1642 (thanks Klaus Darilion). 1643 - Merge some minor stuff from NSD3.2 1644 164518 Jun 2013: Matthijs 1646 - Add rrl-slip config option (thanks Stephane Bortzmeyer). 1647 - Add rrl-ipv{4,6}-prefix-length config option. 1648 - Bug #496: Support for EUI48 and EUI64 RR types. 1649 165014 Jun 2013: Wouter 1651 - Optimizations: -O3 if possible (user can override CFLAGS), udp 1652 buffers are set to 1m by default (if socket options exist), 1653 use recvmmsg and sendmmsg, or only recvmmsg, or recvfrom. 1654 165511 Jun 2013: Wouter 1656 - Fix memory leak in zone parser for txt record (since the large 1657 number of txt subsections fix). 1658 - Fix zone parser allocations to be in db region. 1659 - nsd-mem prints advice 1660 16615 Jun 2013: Wouter 1662 - Fix segfault on repeated reconfigs, double free of zone apex name. 1663 16644 Jun 2013: Wouter 1665 - Remove duplicate zlfile variable from options structure. 1666 166730 May 2013: Wouter 1668 - Fix nsd-mem for printout of values above 4G. 1669 167016 May 2013: Wouter 1671 - Patch from Lukas Wunner that makes chroot more consistent. 1672 Make all paths absolute with the chrootdir in front, or use 1673 an absolute zonesdir with other patsh relative to that. 1674 16753 May 2013: Wouter 1676 - Fix race on exit of nsd, for restarts, so that the pidfile-pid 1677 process waits until port53 has been closed before exiting. 1678 - update acx_nlnetlabs.m4 to v23, sleep w32 fix. 1679 168029 April 2013: Wouter 1681 - Remove unused pointer and fixup chroot include for trail slash. 1682 168326 April 2013: Wouter 1684 - Patch from Lukas Wunner that makes nsd.conf include files work 1685 inside chroot/etc environments on repattern and reconfig. 1686 168725 April 2013: Matthijs 1688 - New config option "ip-transparent:", to bind to non local addresses 1689 (thanks Arjen Zonneveld). 1690 - RRtypes ASFDB, RP, RT should not compress dnames (thanks Peter 1691 van Dijk). 1692 169319 April 2013: Wouter 1694 - own snprintf, fix use of snprintf return value (in debug print). 1695 169618 April 2013: Wouter 1697 - fix bug #491: pick program name (0th argument) as syslog identity. 1698 16999 April 2013: Wouter 1700 - Bug #494: Exit with return code 1 if socket code fails. (from 3.2) 1701 - Fix B64_NTOP replacement definitions in configure.ac. 1702 170326 March 2013: Wouter 1704 - update lookup3.c with better endianness detection. 1705 170625 March 2013: Wouter 1707 - faster nsec3 updates. 1708 - Fixup contrib/bug390.patch for 4.0.0b4. 1709 - remove leak of nsec3. 1710 - allocate radixtree in region for small (5%) total savings and 1711 about 15% savings in the radixtree itself (due to many small alloc 1712 savings in region). 1713 171422 March 2013: Wouter 1715 - use less memory for non-nsec3, nsec3tree. 1716 171718 March 2013: Wouter 1718 - update nsd-mem with pretty printout and RRL count. 1719 172014 March 2013: Wouter 1721 - Fix memory statistics in nsd_munin_. 1722 17238 March 2013: Wouter 1724 - nsd-mem tool initial commit. 1725 17267 March 2013: Wouter 1727 - notify information is logged at correct verbosity level, 1. 1728 17295 March 2013: Matthijs 1730 - Add hash to rrl bucket 1731 17325 March 2013: Wouter 1733 - Fixup the growth and shrinkage of nsd.db. This should use less 1734 calls to remap and change the file and mmap size. 1735 173615 February 2013: Wouter 1737 - Fix compile on bigendian netbsd alpha. 1738 - Fixup tests for older dig (check if +noedns option is supported) 1739 174011 February 2013: Matthijs 1741 - Fix outgoing-interface: Don't fail if family is IPv6 but 1742 only IPv4 outgoing-interface is set, or vice versa. 1743 174411 February 2013: Wouter 1745 - fix tcp zonetransfer pipeline lookup function. 1746 - remove compiler warning for memset from tsig read. 1747 17487 February 2013: Wouter 1749 - detect endianness in lookup3 on BSD, patch from Brad Smith. 1750 - nsd-control verbosity prints out verbosity level without argument. 1751 - nsd-control status prints out ratelimit if ratelimit is enabled. 1752 17535 February 2013: Wouter 1754 - Fix that old zonefile does not override newer AXFR for slave zones. 1755 - Nicer printout of notify. 1756 - beta4 1757 17584 February 2013: Wouter 1759 - Fix AXFR of NSEC3 slave zone. 1760 17611 February 2013: Wouter 1762 - Less printout of 'bad transfer'. 1763 176431 January 2013: Wouter 1765 - Fix that nsec3 zones are precompiled when read from udb. This 1766 caused assertion failures. 1767 - Fix is_apex flag for zones read from udb. 1768 176929 January 2013: Matthijs 1770 - RRL documented in nsd.conf.sample 1771 177229 January 2013: Wouter 1773 - printout log less verbosely, not every axfr packet. 1774 - remove printout of "bad transfer" to the log for notimpl. 1775 - fixup tests for new netstat and new netcat. 1776 177725 January 2013: Wouter 1778 - fix gcc warning, do not use uninit value for rng init. 1779 - fix zonefiles-check: entry in nsd.conf 1780 - remove -fwhole-program gcc flag usage. We cannot reliably detect 1781 if it works without failure. 1782 178323 January 2013: Wouter 1784 - beta3 1785 178622 January 2013: Wouter 1787 - Fix time calculation of zone transfer. 1788 - log ip address with tcp failure. 1789 179021 January 2013: Wouter 1791 - Improve tabs in sample nsd.conf for different tabsizes. 1792 - Fix segv if xfrdir does not exit. 1793 - create xfrdir on make install (does not remove on make uninstall, 1794 because this could be /tmp). 1795 - do not leave task files in /tmp if nsd fails to startup because 1796 of file permissions. 1797 - do-ip4 and do-ip6 nsd.conf options just like unbound. 1798 - fixed testset for dig9 default with edns. 1799 180018 January 2013: Wouter 1801 - Fix configure for gentoo gcc and headers. 1802 - List libevent in README. 1803 - Tabs and spaces nicer in nsd.conf.sample. 1804 - Fix spurious assertion failure for some rrl blocks. 1805 180616 January 2013: Wouter 1807 - Added zonefiles-check option, default yes, check mtimes of zone files 1808 on sighup and startup (from Robin Hack). 1809 181015 January 2013: Wouter 1811 - documented that the _implicit_ pattern names are used internally. 1812 181310 January 2013: Wouter 1814 - updated RELNOTES. 1815 - applied patch from Robin Hack to remove double pid file truncation. 1816 - repattern is called reconfig (because most config options are 1817 picked up, except for superuser options (chroot, logfile, port)). 1818 - document that the zonefile attribute can be empty. 1819 18209 January 2013: Wouter 1821 - 4.0.0b2 is beta2 version tag. 1822 18238 January 2013: Matthijs 1824 - Merge changes from 3.2.15 with trunk: 1825 * Update docs: CREDITS, NEW-CFG-OPTION, REQUIREMENTS, 1826 RELNOTES, TODO 1827 * Update dname_test.tpkg test. 1828 * TSIG init only fails if no digests at all can be found. 1829 * Remove unused tsig_get_algorithm_by_id code (was used by 1830 nsd-xfer). 1831 * Fix some fd leaks. 1832 * Bug #485: Fallback to DEFAULT_TTL if MSB is set. 1833 * Fix RCODE when xNAME loop final answer not exist to NXDOMAIN. 1834 18358 January 2013: Wouter 1836 - Fix make outside of source directory. 1837 18387 January 2013: Wouter 1839 - fixed uninit variable for empty zone axfr request 1840 - fixed alloc of acl options for config zones so they can be deleted. 1841 - fixed that pattern name is copied, so that patterns stay the same. 1842 - repattern also rereads the zones in the config file and applies that 1843 to the running server. 1844 184521 December 2012: Wouter 1846 - --with-logfile sets the logfile inside the example documentation. 1847 - Fixed addzone and delzone inside chroot (thanks Will Pressly). 1848 184919 December 2012: Wouter 1850 - Fixup for libevent-2.1.2. 1851 185218 December 2012: Wouter 1853 - makedist makes sha256 for tarballs. 1854 - nsd-control start runs an absolute path to start sbin/nsd. 1855 185617 December 2012: Wouter 1857 - Fix for use with libev (no use of event.ev_flags). 1858 185912 December 2012: Wouter 1860 - 4.0.0b1 is beta1 version. 1861 186211 December 2012: Matthijs 1863 - Better ILNP RR parsing (thanks Stephane Bortzmeyer). 1864 186511 December 2012: Wouter 1866 - fix libevent=no signals on Solaris. 1867 - Fix handle of activated zones from timeout event. 1868 - contrib/nsd_munin_ updated with memory lookup for BSD. 1869 187010 December 2012: Wouter 1871 - implement --with-libevent=no. 1872 187310 December 2012: Matthijs 1874 - Bug #483: Better error messages for TSIG errors. 1875 - RFC 2845: If BADKEY or BADSIG, RCODE should be NOTAUTH. 1876 Also, continue TSIG verification if NOTAUTH. 1877 18787 December 2012: Wouter 1879 - stable pidfile, xfrd is process leader and forks server-parent. 1880 18815 December 2012: Wouter 1882 - NSD4_imp_6 tag. 1883 - trunk has imp_7 implementation. 1884 18854 December 2012: Wouter 1886 - NSD-RRL documented in manpage. 1887 18883 December 2012: Wouter 1889 - Fixup exit of server-child while notifies are incoming. 1890 189128 November 2012: Wouter 1892 - RRL implements classification type RRSIG. 1893 189426 November 2012: Wouter 1895 - Fix to make nsd.udb portable between 32bit and 64bit machines. 1896 - Fix to make udb mmap work for FreeBSD8 when it grows significantly. 1897 189823 November 2012: Wouter 1899 - Fix compiler warnings and fix blocking pipes. 1900 - default tcp-count set to 100. 1901 190221 November 2012: Wouter 1903 - Implement rrl log of unblock for collision. 1904 - imported TLSA and ILNP support from NSD3. 1905 190619 November 2012: Wouter 1907 - Fix bug 480: libevent use when tcp-count is hit caused hang (in NSD4). 1908 19099 November 2012: Wouter 1910 - Log when NSD-RRL stops a stream from being blocked. 1911 19128 November 2012: Willem 1913 - Fix AXFR. Loop through the zone to transfer only. 1914 19152 November 2012: Wouter 1916 - Fix bug 478: declaration after statement (for gcc 2.95). 1917 19181 November 2012: Wouter 1919 - Fix default settings for RRL. 1920 192130 October 2012: Wouter 1922 - review fixup of RRL SLIP response. 1923 - RRL uses dev/random at start, nonRRL does not. 1924 192526 October 2012: Wouter 1926 - nsd-control repattern also changes rrl-ratelimit and whitelist limit. 1927 192817 October 2012: Wouter 1929 - Fix alignment problem in zone transfer pipeline code. 1930 - Fix random generator generating negative. 1931 - Fix udb radtree strspace creation bug. 1932 193315 October 2012: Wouter 1934 - Fix activated zone does not interrupt transfer. 1935 - Log of connection failure for zone transfer is neater. 1936 193712 October 2012: Wouter 1938 - Fix invalid time argument in nsd control (for OpenBSD). 1939 194011 October 2012: Wouter 1941 - Fix build on OpenBSD (Thanks Oliver Peter). 1942 - tpkg for RRL. 1943 194410 October 2012: Wouter 1945 - implement nsd-checkconf option use of rrl-whitelist. 1946 19479 October 2012: Wouter 1948 - with --enable-ratelimit you enable ratelimiting, with verbosity 2 1949 it logs what is ratelimited for operational inspection. 1950 - unit test for rrl. 1951 - rrl uses mmap to save state across reloads. 1952 - rrl enum and u16 flags (dnskey type). 1953 - rrl whitelist and config. 1954 19558 October 2012: Wouter 1956 - Sync with unbound lookup3, has raninit value. 1957 19585 October 2012: Wouter 1959 - fix bug with event loop in zone transfer pipeline. 1960 - close xfrd_sock_p in server_child because otherwise due to use of 1961 kqueue, it gets a broken pipe when that process exits (on FreeBSD). 1962 19634 October 2012: Wouter 1964 - Fixup no use of internals ev_flags of libevent. 1965 19661 October 2012: Wouter 1967 - fix xfrd tcp skip. 1968 196921 September 2012: Wouter 1970 - tzset before chroot for correct timezone (from Camiel Dobbelaar). 1971 - pipeline support for AXFR and IXFR tcp queries. 1972 197311 September 2012: Wouter 1974 - writev support for TCP. 1975 197628 August 2012: Wouter 1977 - TXT records with components longer than 255 fail to parse, 1978 but without segfault, it continues processing with non NULL value. 1979 198027 August 2012: Wouter 1981 - libevent in server_child. 1982 198321 August 2012: Matthijs 1984 - Fix bug#464: Conditionally define MAXHOSTNAMELEN 1985 198620 August 2012: Wouter 1987 - Fix hang on exit in xfrd. 1988 - optimized socket counts for zone transfer speed. 1989 199013 August 2012: Wouter 1991 - Fix xfrd libevent events. 1992 199310 August 2012: Wouter 1994 - libevent in xfrd. 1995 199626 July 2012: Yuri 1997 - Prioritize notify sender for requesting XFR. 1998 (thanks Ilya Bakulin) 1999 200019 July 2012: Willem 2001 - Fix for VU#624931 CVE-2012-2978: NSD denial of service 2002 vulnerability from non-standard DNS packet from any host 2003 on the internet. 2004 http://www.nlnetlabs.nl/downloads/CVE-2012-2978.txt 2005 200618 July 2012: Wouter 2007 - Fix bug#460: man page correction - identity. 2008 20099 July 2012: Wouter 2010 - delete temporary transfer files on exit of xfrd and reload. 2011 - when tasks are applied, reload checks if it must exit between 2012 tasks, so that it can quickly exit when NSD is told to quit. 2013 - fix bug in apply_xfr that must use an udb_ptr because it shifts 2014 when new allocations are made. 2015 20166 July 2012: Wouter 2017 - add xfrdir: "/tmp" option and configure --with-xfrdir="/tmp". 2018 The nsd.task files and a subdirectory for zone transfers are 2019 created there. 2020 20212 July 2012: Wouter 2022 - fix checkconf unit test and add test for backwards compatibility 2023 for difffile: "x" statement. 2024 202529 June 2012: Wouter 2026 - Implemented /tmp/nsd.xfr.xxx/ to replace ixfr.db. So that nsdc 2027 patch is no longer needed. 2028 20298 June 2012: Wouter 2030 - Fix tpkg test cutest_qroot and rr-test for printout of algorithms 2031 as numbers, and copy of DO flag to the answer. 2032 - pick up fd fix from 3_2 branch: Some more fd >= 0 to fd != -1 fixes 2033 203431 May 2012: Matthijs 2035 - Sync with 3.2 branch 2036 203724 February 2012: Wouter 2038 - Fix for qtype ANY for a wildcard domain in NSEC signed zone. 2039 20409 February 2012: Wouter 2041 - Update acxnlnetlabs.m4 version 21, fixed MEMCMP_BROKEN #undef line. 2042 204323 January 2012: Wouter 2044 - remove clang security warning about %n in format string. 2045 204620 January 2012: Wouter 2047 - Fix bug #430: segfault when MAX_INTERFACES set to more than 65K. 2048 - Fix configure for OpenIndiana sunos 5.11, acx_nlnetlabs.m4 update. 2049 205012 January 2012: Matthijs 2051 - Fix bug #421: truncate pidfile on shutdown, before unlink. 2052 205310 January 2012: Wouter 2054 - removed unused variables. 2055 205610 November 2011: Wouter 2057 - acxnlnetlabs.m4 updated to version 16, better lto check (a.out drop). 2058 20593 November 2011: Wouter 2060 - fflush zonelistfile after zone add or delete. 2061 20621 November 2011: Wouter 2063 - Fix -flto detection for llvm compiler on Lion. 2064 206510 October 2011: Matthijs 2066 - Don't clear the AA bit if there is an authoritative CNAME in the 2067 answer section (as shown in RFC 1034, Section 6.2.7, 2nd example). 2068 206910 October 2011: Wouter 2070 - squelch EPIPE when writing AXFR, enable with verbosity 2. 2071 207226 September 2011: (Matthijs, from NSD3_2 branch) 2073 - Copy the DO bit to the response. 2074 - Don't return SERVFAIL on a domain that looks like a NSEC3 2075 domain but is actually a empty non-terminal. 2076 207719 August 2011: Wouter 2078 - Fix segfault if no logfile is used. 2079 20805 August 2011: Wouter 2081 - Fix make from repeating action already taken. 2082 - Fix compile without openssl. 2083 20843 August 2011: Wouter 2085 - silence 'Broken pipe' messages in log (visible with verbosity 2). 2086 - fix makedist.sh for removal of patch, notify, xfer. new nsd-control. 2087 - tag 4.0.0-imp-5 created. 2088 - trunk is 4.0.0-imp-6 under development. 2089 - added nsd_munin_ script for statistics monitoring to contrib. 2090 20912 August 2011: Wouter 2092 - fix compile on Ubuntu 11.04 systems, detects cc system header issue. 2093 20941 August 2011: Wouter 2095 - fix checkconf test for remote control options. 2096 - fix warning on Ubuntu 10.04, fix autoconf 2.68 warning on NetBSD. 2097 209829 July 2011: Wouter 2099 - zones with no zonefile are not written to text (assumes you can 2100 get AXFR and IXFR for the contents). They are stored in nsd.db. 2101 - test for repattern. 2102 210328 July 2011: Wouter 2104 - nsd-control repattern reads TSIG and pattern configuration. 2105 210625 July 2011: Wouter 2107 - fixed tests for removed tools from nsd, with replacements. 2108 replaced nsd-patch with nsd-control write. replaced nsd-notify with 2109 ldns-notify. replaced nsd-xfer with dig -t axfr. 2110 - fix for xfrd restart if crashed. xfrd knows if a reload is 2111 active at that time so it cannot start another one at the same 2112 time. New shortsoa track for start that does not use taskdb 2113 in use by reload. taskdb in use by crashed xfrd is recreated, 2114 in case it is corrupt. This keeps the nsd.db intact, keeps 2115 reload running with its updated and keeps service from the 2116 server processes active. 2117 211822 July 2011: Wouter 2119 - added contrib/nsd.init (nsdc.sh that only does start,stop). 2120 - removed nsdc.sh, nsd-xfer, nsd-notify, nsd-patch. 2121 for rc.d: contrib/nsd.init, or platform specific init script. 2122 nsd-xfer: see nsd-control transfer, or force_transfer. 2123 nsd-notify: see nsd-control notify. 2124 nsd-patch: see (cron job to) nsd-control write. 2125 212621 July 2011: Wouter 2127 - nsd-control notify, transfer and force_transfer. 2128 - fix for bug in write and reload zone option. 2129 - nsd-control zonestatus command. 2130 213120 July 2011: Wouter 2132 - reload can be given optional zone argument. 2133 - nsd-control reopen_logfile. 2134 - nsd-control write changed zonefiles. 2135 213618 July 2011: Wouter 2137 - Fix xfrd activation of zones to not break running zone transfers. 2138 213913 July 2011: Wouter 2140 - fix that signal causes stats to be printed to log. 2141 - fix stats without remotecontrol. 2142 - ignore notify and soainfo for deleted zone, if due to race they 2143 arrive after the deletion. 2144 - tpkg test for nsd-control, addzone and delzone 2145 21465 July 2011: Wouter 2147 - fix link to ssl with FreeBSD make. 2148 21491 July 2011: Wouter 2150 - fix optimize compile to link with ssl. 2151 215229 June 2011: Wouter 2153 - nsd-control delzone zone. Removes zone from zonelist. 2154 - stats includes number of zones. 2155 - RAXFR stat, which has not worked since NSD 1.2.4, reinstated. 2156 - print more memory statistics, for xfrd and config. 2157 215828 June 2011: Wouter 2159 - nsd-control addzone zone pattern. Adds new zone, slave or master. 2160 216127 June 2011: Wouter 2162 - nsd-control stats and stats_noreset (if enabled at compile time). 2163 nsd does not print statistics to logfile if period is 0. 2164 216523 June 2011: Wouter 2166 - -flto check supports clang compiler. 2167 216822 June 2011: Wouter 2169 - remote control, config, client, setup and status command. 2170 - reload nsd-control command. 2171 - stop nsd-control command. 2172 - verbosity nsd-control command. 2173 217414 June 2011: Wouter 2175 - Fix to have no authority NS set processing for CNAMEs. 2176 21779 June 2011: Wouter 2178 - fix bug that relptrs have to be initialized with rel_ptr_init() when 2179 created and zeroed with rptr_zero before deletion. 2180 - tag 4.0.0-imp4 created 2181 - trunk is 4.0.0-imp5 under development. 2182 21838 June 2011: Wouter 2184 - nsd reads the zonelist file on start. 2185 - updated acx_nlnetlabs.m4 to version 11. 2186 - configure checks size of off_t and increase region-allocator 2187 alignment to 8 if it is 64bit and alignment at 4. 2188 - fixed bug where not all references were removed before mmap was 2189 synced to another process. 2190 21917 June 2011: Wouter 2192 - code to add and remove zonelist entries, and unit test. 2193 21946 June 2011: Wouter 2195 - fix unit tests for mmap with TODO and removal of -f in nsd-patch. 2196 - zone expiry is communicated via the mmap, and not via the pipes, 2197 simplifying the code significantly as well as making a large number 2198 of zones more feasible. 2199 22001 June 2011: Wouter 2201 - mmap used for parent-xfrd communication of tasks and task results. 2202 SIGHUP is sent to xfrd so it can become a task in the normal 2203 workflow. This can process about 4500 zones per second (this was 2204 with lots of debug prints per zone, in debug compile). The mmaps 2205 are file-backed with /tmp/ files. They are removed on a clean exit. 2206 - nsd.db and tmp mmaps are created with mode 0600 for safety. 2207 - updated flag removed, nsd-patch always in -f force mode (-f removed) 2208 and writes all zones always. Its role is taken over by task results. 2209 221030 May 2011: Wouter 2211 - Fix Makefile for U in environment, since wrong U is more common than 2212 deansification necessity. 2213 221427 May 2011: Wouter 2215 - xfrd is forked before the database is read in, thus it does not 2216 consume the memory of the database. It can be reforked on a crash, 2217 which is like the current case. Difffile is cleaned by main process 2218 and the soa serials are all sent via pipe instead of via forkmem. 2219 222024 May 2011: Wouter 2221 - implemented patterns in the nsd.conf file. 2222 they can be instantiated with include-pattern: x. 2223 existing zone definitions keep working (backwards compatible), such 2224 zones really have an implicit pattern and cannot_delete flag set. 2225 - work on zonelist read and storage. 2226 222720 May 2011: Wouter 2228 - from NSD_3_2 branch the fix: bug if the zonefile is changed for a 2229 secondary but stored transfers are applied, and stop ixfr to empty. 2230 The zone is flagged with error, and the good zone is still in nsd.db 2231 for NSD4. 2232 223317 May 2011: Wouter 2234 - unit test for code coverage on nsec3 ixfr. 2235 - tag 4.0.0-imp3 created 2236 - trunk is 4.0.0-imp4 under development. 2237 223813 May 2011: Matthijs 2239 - Fix bug #381 - Binary escaped and transfers. 2240 224113 May 2011: Wouter 2242 - Unit test nsec3 salt change and fix for sanity check of nsec3 chain. 2243 pretty prints the nsec3 parameters if verbose. 2244 224512 May 2011: Wouter 2246 - more unit test for nsec3 precompile changes. 2247 - unit test for salt change, rehash in udb fix, remove last NSEC3 2248 from chain works, NSEC3PARAM RR fixed up if RR added or removed 2249 from NSEC3PARAM RRset, hashtrees cleared properly, precompile clear 2250 more thorough (not dependant on nsec3_conditions). 2251 225211 May 2011: Wouter 2253 - fixes for nsec3 precompile code: precompile for empty nonterminals 2254 created when an RR is added. If SOA removed, precompile stays 2255 coherent even though domain_find_zone no longer returns correct zone. 2256 225721 April 2011: Wouter 2258 - unit test and fixes in nsec3 precompile code. 2259 226020 April 2011: Wouter 2261 - incremental NSEC3 precompile. 2262 226314 April 2011: Wouter 2264 - remove chnum. Added numlist sorted by domain.number. 2265 domains that are not used are removed. 2266 226713 April 2011: Wouter 2268 - Fix is_existing flag for ENT when domain that has a shared ENT 2269 is deleted by IXFR. 2270 - zonec can parse strings with RR in it. 2271 - unit test for namedb. 2272 22738 April 2011: Wouter 2274 - porting complete. 2275 - tag 4.0.0-imp2 created 2276 - trunk is version 4.0.0-imp3. 2277 22787 April 2011: Wouter 2279 - ported to sunos 4.1.4, the unit test works (udb, radtree in mmap). 2280 22816 April 2011: Wouter 2282 - UDB_CHECK is enabled if --enable-checking is used. 2283 Because it checks the pointer-administration lists it slows down. 2284 - udb-inspect has feature -l that lists zones (and RRs) in nsd.db. 2285 - fix memory leak by zonec; the region_cleanup triggers too late. 2286 - set listen TCP_BACKLOG to 16 by default, it avoids connect reset 2287 by peer in 1000-zones transfer on an ultra10, thus for many-zones. 2288 - default xfrd-reload-timeout to 1 second. 2289 22905 April 2011: Wouter 2291 - Fix uninitialised value in xfrd nsd_soa, the rdata_count. 2292 - Unit test for update of the nsd.db with new contents. 2293 - Fix array bounds check in radtree-search function. 2294 22954 April 2011: Wouter 2296 - removed zonec from tests. fix unknown_rr test, enable ipseckey test. 2297 increased timeouts on tests that are hard on the filesystem. 2298 - Fixed IPSECKEY printout by nsd-patch. 2299 230030 March 2011: Wouter 2301 - nsd edits nsd.db for IXFR and AXFR messages. since xfrd already 2302 checks zone transfers completely for syntax those errors cannot 2303 happen, if they do (memory, disk error) the file is left dirty, 2304 to be recreated on the next start (and the process dies). 2305 230629 March 2011: Wouter 2307 - nsd recreates nsd.db if it has not been closed properly or is 2308 corrupted (bad header or wrong file format). 2309 231028 March 2011: Wouter 2311 - NSD without zonec. NSD loads zonefiles on start. 2312 NSD stores NSEC3hashes on disk. 2313 231425 March 2011: Wouter 2315 - Fix bug #365, you can set NSDC_ZONEC_VERBOSE and NSDC_PATCH_STYLE 2316 in the environment where nsdc runs. 2317 - Fix bug #375, typos in nsd.conf.5. 2318 - First step of bug #369: RRSIG DNSKEY sets zone to be treated DNSSEC. 2319 - Fix bug #302, nsd accepts XFR but refuses to re-read the slave zone. 2320 - NSD4 work: removed zonec, nsdc patch does not write text files 2321 for slave zones (as if option is always to binary, this capability 2322 returns later), nsdc patch deletes the ixfr.db. 2323 kill-HUP rereads zone files that have changed. 2324 232524 March 2011: Wouter 2326 - compile fixes for BSD. preserve RRset order. 2327 232823 March 2011: Wouter 2329 - udbzone, store and read zone data in the random-access udb format. 2330 233121 March 2011: Wouter 2332 - udbradtree works. udb-inspect tool can print radtree details. 2333 233416 March 2011: Matthijs 2335 - undo fix bug#325: messes up dname compression 2336 233714 March 2011: Wouter 2338 - udb code added. uses lookup3 from unbound (public domain). 2339 - unit test for radix tree in cutest. 2340 - unit test for udb in cutest. 2341 - udb-inspect tool to printout internals of udb files. 2342 for debug, not installed or built by default. 2343 - removed --disable-radixtree option. 2344 234511 March 2011: Wouter 2346 - Removed precompile features, speed gain took too much memory. 2347 - domain number to size_t. 2348 23499 March 2011: Wouter 2350 - DNAME synthesis of CNAME. Uses TTL of the DNAME record. 2351 - nsec3 and wildcard code. No additional section for wildcards. 2352 Also CNAME and DNAME replies contain only that record (and synth 2353 CNAME), the chain is not followed. 2354 23558 March 2011: Wouter 2356 - precompile work: 2357 class ANY gets AA flag, SOA and type-NS processing, just 2358 like BIND (9.6) and it simplifies processing for NSD. 2359 other than compression difference (precompile compresses smaller), 2360 there are no differences in a 49000 query testset against the root, 2361 without EDNS. 2362 23637 March 2011: Wouter 2364 - check chown value and report high verbosity its error. 2365 23663 March 2011: Matthijs 2367 - fix #bug352: fix hardcoded paths in manpages. 2368 23692 March 2011: Matthijs 2370 - fix #bug354: make realclean cleans too much 2371 - added make devclean for cleaning up autoconf and automake stuff 2372 - Fix hardcoded paths in nsd.conf.sample and nsd.conf.5 2373 237424 February 2011: Matthijs 2375 - fix #bug350: refused notifies should log client ip. 2376 23772 March 2011: Wouter 2378 - Fix AXFR service with radix tree. 2379 - cutest for speed of answer encoding, and format of answers for root. 2380 23811 March 2011: Wouter 2382 - after merge, remove double -I. from makefile. 2383 - radixtree is default. Nicer makefile and no warnings from unused 2384 flex functions. 2385 23861 March 2011: Wouter 2387 - merge with trunk r3181: 2388 24 February 2011: Matthijs 2389 - fix #bug350: refused notifies should log client ip. 2390 24 February 2011: Wouter 2391 - fix bug#362: outgoing-interface and v4 vs. v6 leads to spurious 2392 warning messages. 2393 - fix bug#363: nsd-checkconf -v does not print outgoing-interface ok. 2394 - fix that nsd-checkconf -o outgoing-interface omits NOKEY. 2395 23 February 2011: Wouter 2396 - fix for bug#357, make xfrd quit with many zones. 2397 239823 February 2011: Wouter 2399 - Merge trunk r3151. 2400 22 February 2011: Matthijs 2401 - Patch Jakob Schlyter (setusercontext before chroot). 2402 18 February 2011: Wouter 2403 - overhaul of testset, with port uniqueness and fast start and stop. 2404 11 February 2011: Wouter 2405 - added test case to do with bug357. 2406 24 January 2011: Matthijs 2407 - Patch Tom Hendrikx (only errors to stderr when doing nsdc patch). 2408 240917 February 2011: Wouter 2410 - Fix leak of compressiontable when the domain table increases in size. 2411 - added test case to do with bug357. 2412 241310 February 2011: Wouter 2414 - Merged with trunk r3115 changes: 2415 20 January 2011: Wouter 2416 - Fix on shutdown, then getaddrinfo acquired data uses freeaddrinfo. 2417 19 January 2011: Wouter 2418 - Bug #348: no -I/usr and -L/usr for libcrypto in /usr. 2419 5 January 2011: Matthijs 2420 - Fix nsdc update and nsdc notify 2421 - Force outgoing interface to be a single range acl 2422 - Update documentation about acl options 2423 - Code review 2424 - Fix nsdc so it can use hmac-sha* tsigs 2425 - Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch 2426 4 January 2011: Yuri 2427 - Doc spelling error, bug#345 2428 15 December 2010: Wouter 2429 - fix race condition when nsd is stopped while a reload is in 2430 progress, often when rc.d does nsdc patch; nsdc stop in sequence. 2431 reload is now signalled to stop too. 2432 10 December 2010: Matthijs 2433 - fix bug#306: applied documentation patch 2434 - fix bug#253: now also for QTYPE=DS. 2435 12 October 2010: Wouter 2436 - Fix compilation on SunOS4. 2437 24 September 2010: Matthijs 2438 - Bug #328: nsd-checkconf overrun 2439 1 September 2010: Yuri 2440 - Support for huge TXT records. 2441 23 Aug 2010: Wouter 2442 - fix bug#325: remove stale files from cvs from repo. 2443 16 Aug 2010: Yuri 2444 - zonec, MAXRDATALEN check was off by one. 2445 9 Aug 2010: Matthijs 2446 - nsdc return 1 outside function, should be exit 1 2447 - Bug #320: arc4random 2448 2 Aug 2010: Matthijs 2449 - Bump to 3.2.7. 2450 21 July 2010: Wouter 2451 - NUM_RECV_PER_SELECT 100 implemented, configure check if kernel 2452 supports this. 2453 245417 January 2011: Matthijs 2455 - Bump to 3.2.8. 2456 24575 January 2011: Matthijs 2458 - Fix nsdc update and nsdc notify 2459 - Force outgoing interface to be a single range acl 2460 - Update documentation about acl options 2461 - Code review 2462 - Fix nsdc so it can use hmac-sha* tsigs 2463 - Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch 2464 246520 July 2010: Wouter 2466 - Branched from trunk. Added radix tree. 2467 - use -fwhole-program if gcc supports it. 2468 246919 July 2010: Matthijs 2470 - fix bug#314, NSEC next field now correctly escapes spaces. 2471 Also fixes label overflow issue. 2472 - Put back HAVE_SSL. 2473 - Code reviews. 2474 - Add donor text. 2475 24766 July 2010: Wouter 2477 - Compiles on Minix 3.1.7; checks ss_family, suseconds_t, some 2478 warning fixes. Needs socketpair to work, e.g. 2479 http://wiki.minix3.org/en/SummerOfCode2010/UnixDomainSockets. 2480 24812 July 2010: Wouter 2482 - Put back CHECK_SSL in configure (removed with disable-tsig). 2483 248417 June 2010: Matthijs 2485 - Expand command line option '-a' and config option 'ip-address:' 2486 with port number. 2487 - Removed --disable-nsid, --disable-dnssec, --disable-tsig 2488 248914 April 2010: Matthijs 2490 - Bump to 3.2.6. 2491 249214 April 2010: Matthijs 2493 - uintptr_t fallback value to void* 2494 - Backwards compatibility for MAP_ANONYMOUS 2495 - Tag 3.2.5. 2496 249731 March 2010: Matthijs 2498 - Commit b64_pton optimalized compat code (Martin Svec). 2499 - Commit (experimental) mmap-alloc-namedb patch (Martin Svec). 2500 - Commit parse-token-leaks patch (Martin Svec). 2501 250227 March 2010: Wouter 2503 - fix bug#303: misspelled error message. 2504 250519 March 2010: Wouter 2506 - documented nsid: "hex string" setting in nsd.conf.sample. 2507 250824 February 2010: Matthijs 2509 - nsid: option 2510 - Enable NSID support by default 2511 - --with-chroot configure option 2512 - Less stupid chroot error handling 2513 251415 February 2010: Matthijs 2515 - Skip memory cleanup to speed up reload (Martin Svec) 2516 25171 February 2010: Wouter 2518 - compat code for memcmp unsigned comparisons. 2519 252021 January 2010: Wouter 2521 - fixup debug sprintf to snprintf. 2522 252321 January 2010: Matthijs 2524 - Secure string functions, including compat code for strlcat. 2525 - Randomness utility function 2526 - Prepare for default chroot 2527 25286 January 2010: Wouter 2529 - check write errors when marking commit failed when difffile is broken. 2530 25316 January 2010: Matthijs 2532 - Move to 3.2.5 2533 253423 December 2009: Matthijs 2535 - Store new options in nsd structure. 2536 253722 December 2009: Matthijs 2538 - New options 'ipv4-edns-size:' and 'ipv6-edns-size'. 2539 - Bug 276 2540 - Bug 286 2541 - Bug 288 2542 254321 December 2009: Matthijs 2544 - New option 'tcp-query-count:'. 2545 - New option 'tcp-timeout:' and configure option '--with-tcp-timeout'. 2546 - New zone option 'notify-retry:'. 2547 254811 December 2009: Wouter 2549 - Disable UDP IPv4 DF flag on Linux/FreeBSD/AIX with socket option. 2550 255120 November 2009: Matthijs 2552 - NSID bugfix: NSD did not recognize NSID in the query. 2553 25549 September 2009: Matthijs 2555 - DLV support 2556 255718 August 2009: Matthijs 2558 - Bug 269. 2559 - Typo: logincap.h -> login_cap.h 2560 256112 August 2009: Matthijs 2562 - Maintainers feedback 2563 256410 August 2009: Matthijs 2565 - Code review. 2566 - Also send errors to /dev/null in controlled_stop. 2567 - chown nsd.db 2568 25697 August 2009: Matthijs 2570 - Bug 266: don't have strptime build error 2571 257228 July 2009: Matthijs 2573 - Bug 263: make TSIG algorithms comparison case insensitive. 2574 257523 July 2009: Matthijs 2576 - Patch Paul Wouters for NSD using hardcoded name. 2577 257813 July 2009: Matthijs 2579 - Bug 236: allow RRs before the SOA RR. 2580 - Bug 253: No need for NS RRset in authority section, when returning 2581 final answer for QTYPE=DNSKEY. 2582 258329 June 2009: Wouter 2584 - patch for use of Linux IPV6_MTU option, so that on linux the default 2585 EDNS UDP size advertised becomes 4096 over IPv6. It fragments the 2586 packets using the IPv6 minimum MTU. 2587 258819 May 2009: Matthijs 2589 - Clean up configure script (install hickup) 2590 - Bug 249: Remove unnecessary LLONG_MIN and LLONG_MAX code. 2591 - Replace strtoll code with own strtoserial function. 2592 - Move up to 3.2.3. 2593 259411 May 2009: Matthijs 2595 - Add Off-by-one test 2596 25976 May 2009: Matthijs 2598 - Small fix in SO_REUSEADDR warning log message. 2599 - Off-by-one bugfix (thanks Ilja van Sprundel, IOActive) 2600 260129 April 2009: Matthijs 2602 - A more ensured do_stop (useful fo nsdc restart). 2603 26042 February 2009: Matthijs 2605 - Bugfix #234. 2606 - Bugfix #235. 2607 - Reset 'error occurred' after notifying an error occurred at the $TTL or 2608 $ORIGIN directive (Otherwise, the whole zone is skipped because the 2609 error is reset after reading the SOA). 2610 26112 February 2009: Matthijs 2612 - Bugfix: return BADVERS when EDNS version > 0, instead of 0x1<FORMERR>. 2613 261419 January 2009: Matthijs 2615 - Bug 230: nsd-*: use stdout for non-error output (instead of stderr). 2616 - Don't do strptime test when cross compiling. 2617 261817 January 2009: Jelte 2619 - Fix file rotation when no logfile but chroot. 2620 26218 January 2009: Matthijs 2622 - New nsd-patch option -o dbfile (set output.db) 2623 - update nsdc to deal with the new nsd-patch options 2624 - strptime compat fix 2625 26266 January 2009: Matthijs 2627 - New nsd-patch option -s (skip writing zonefiles) 2628 - Removed some region_create memchecks (not needed) 2629 26305 January 2009: Matthijs 2631 - Bug 218 2632 - Bug 222 2633 - Replace SHA256_DIGEST_LENGTH with nicer HAVE_EVP_SHA256 2634 263510 December 2008: Matthijs 2636 - Bugfix: better error message when ixfr.db cannot be read 2637 263818 November 2008: Matthijs 2639 - chown logfile, don't do file rotation if logfile is outside absolute 2640 and outside chroot. 2641 264217 November 2008: Matthijs 2643 - File rotation for nsd.log when owned by nsd (+ tpkg test). 2644 - Only AXFR fallback if master responded NOTIMPL or FORMATERR on IXFR 2645 request. 2646 - allow-axfr-fallback option. 2647 26487 November 2008: Matthijs 2649 - Bugfix: don't fclose if logfile == NULL. 2650 265130 October 2008: Matthijs 2652 - Allow escape characters in literal dnames 2653 - Fix typo in zonec manpage 2654 - Some fixes from code review 2655 265620 October 2008: Matthijs 2657 - Redo bugfix literal domain names in rdata (code adjustment) 2658 - Added tests for case sensitive dns names and "Bug #162" 2659 - Adjust nsd-patch to new ixfr.db format 2660 266114 October 2008: Matthijs 2662 - Only SO_LINGER when outgoing port is set 2663 - Reset diff_skip when a new difffile is created (parts in the difffile 2664 now have a timestamp). 2665 - Undo bugfix literal domain names in rdata (code adjustment) 2666 - Split up dname_parse to parse literal dnames and normalized dnames. 2667 26683 October 2008: Matthijs 2669 - setsockopt SO_LINGER, for portability outgoing-interface (BSD/Solaris) 2670 26711 October 2008: Matthijs 2672 - Configure the source ip-address for notifies by the master and zone 2673 transfer requests by the slave in nsd.conf. 2674 - Previously added source hostname/ip and port configuration for 2675 nsd-notify and nsd-xfer 2676 - Finetuned nsdc for nsdc notify and nsdc update 2677 267829 September 2008: Matthijs 2679 - Bugfix: only normalize domain names in rdatas when rrtype is listed in 2680 RFC 4034, section 6.2: Canonical RR Form. 2681 - Update TODO list 2682 268325 September 2008: Matthijs 2684 - Fix bug where hmac-sha256 was in algorithm table, but could not be 2685 retrieved by name or id. 2686 - Additional arguments for nsd-notify and nsd-xfer: set outgoing 2687 hostname/ip-address and source port. 2688 - Additional TODO entry: optimize code in nsd-* programs. 2689 26908 September 2008: Matthijs 2691 - RFC 4635, bugfix #130: support for hmac-sha1 and hmac-sha256 tsig 2692 algorithms. 2693 - modify and add tpkg tests for hmac-sha1 algorithms. 2694 26952 September 2008: Matthijs 2696 - AXFR fallback when IXFR/UDP failed on all masters 2697 - Bugfix: strip off chroot value in corner cases 2698 - Additional debug and verbose log messages 2699 270029 August 2008: Matthijs 2701 - IXFR allow UDP option 2702 270326 August 2008: Matthijs 2704 - Code layout, additional comments and documentation typo fixes 2705 - IXFR over TCP, no longer UDP 2706 270717 July 2008: Matthijs 2708 - Make the maximum number of interfaces configurable. 2709 - Write pidfile *after* successful server initialization, 2710 instead of writing, and unlink if fail. 2711 271216 July 2008: Matthijs 2713 - Set upcoming release to 3.1.1 2714 - Wouter: fixed memory leaks that happened on error, mostly on 2715 zone transfer errors. 2716 271711 July 2008: Matthijs 2718 - Avoid race condition in nsdc: let nsd server update pidfile before 2719 closing old parent process. 2720 27218 July 2008: Jelte 2722 - Fixed NSEC3 memory leak in the case NSEC3 is not needed. 2723 27247 July 2008: Matthijs 2725 - Bugfix #191 2726 27279 June 2008: Matthijs 2728 - When comparing RRs, do not compare TTL values (since the same record 2729 with different TTL values are considered equal). 2730 - Fixup some more unaligned memory access that could occur when 2731 reading ixfr.db. 2732 273319 May 2008: Matthijs 2734 - Do not always log tcp read errors, only when real error or high verbosity 2735 273628 April 2008: Matthijs 2737 - Bugfix #172 (misleading error from zonec) 2738 273927 March 2008: Matthijs 2740 - Port some branch modifications to trunk 2741 274228 February 2008: Matthijs 2743 - Do not answer nsec3 wildcard information when DO bit is not set 2744 274519 February 2008: Matthijs 2746 - Fixed strptime bug (for MacOS Leopard) 2747 274822 January 2008: Matthijs 2749 - Add configuration for chkconfig to control nsd service (bug 164) 2750 275115 January 2008: Matthijs 2752 - Fixed bug 157 where nsd would return FORMERR if edns query is 2753 received with version set to zero and rdlen is larger than zero. 2754 27558 January 2008: Wouter 2756 - no warning about optout records. also no warning about missing 2757 nsec3 records. 2758 - check for hash(apex)==nsec3 with SOA bit was done in duplicate. 2759 - removed old commented out code 2760 - using SOA bit in NSEC3 typemap to detect parameters 2761 - using nonhashed NSEC3 to prove qtype=NSEC3 nxdomains 2762 - prints for debugging. 2763 - nicer comment on nsec3_lookup. 2764 27657 January 2008: Wouter 2766 - Fixup nsec3 tests, they need zonesdir: "." in conf files. 2767 The tests pass. 2768 - configure default is --enable-nsec3. Disabling this will save 20% more 2769 memory (for very large zones). Moved tests to test on commit. 2770 - set RRTYPE numbers for NSEC3=50, NSEC3PARAM=51. 2771 - fixup checkconf test - updated parser lexer gives syntax error 2772 on some garbage instead of parse error. Parselexer is updated for 2773 new options (hide-version, verbosity). 2774 - removed highrange rrtype code. fixup cutest for that. 2775 - speedup of prehash code. 2776 - skip nonexistent domains (operator.example.com). 2777 - skip only-nsec3 domains (that could be 2x speedup) 2778 - skip glue nameserver domains (for TLD with 2 glue per 2779 delegation this is a 3x speedup). 2780 - skip the prehash_domain for delegation points, which saves 2781 another 2/3 hash operations, 3x speedup. 2782 - printout how long nsec3 prepare took (verbosity >= 1). 2783 27843 December 2007: Matthijs 2785 - Fixup bug where data related files are looked up in the wrong 2786 directory when chrooted with chrootdir ending with a slash. 2787 278826 November 2007: Matthijs 2789 - Fixup bug start nsd while already running: do not initialize server, 2790 since it is already running. 2791 279215 November 2007: Matthijs 2793 - Changed man pages format from mdoc to mansun, to support the Solaris OS. 2794 - Better logging for nsd-notify (show 'broken' zone) 2795 279613 November 2007: Wouter 2797 - CREDITS and RELNOTES now in utf-8. 2798 279912 November 2007: Matthijs 2800 - Changed man pages according to bug 162. 2801 280230 October 2007: Wouter 2803 - Fixup for skip after unknown deleted IXFR RR, otherwise processing 2804 would continue at the wrong spot in the packet and process the IXFR 2805 as if it were malformed. 2806 - added unit test for this in long (needs ldns-testns, updated it). 2807 - added unit test for rollback of malformed zone transfers. 2808 Fixup for it, and fixup in ldns-testns to be randomport and 2809 copy id for hex packets. 2810 281129 October 2007: Wouter 2812 - Fixup bug where malformed IXFR replies cause partial processing in 2813 reload (or nsd-patch or nsd-startup). One result is multiple SOA 2814 records in zone apex. Fixup rolls back the zone transfer, and waits 2815 for NSD to try to load again. 2816 281726 October 2008: Wouter 2818 - small fix in descriptive text in sample config for debug-mode. 2819 28209 October 2007: Mark 2821 - Change default location of: nsd.db, ixfr.db & xfrd.state to 2822 /var/db/nsd. 2823 28245 October 2007: Wouter 2825 - Fixup manual page entry for allow AXFR to anyone. 2826 28273 August 2007: Mark 2828 - Report source and zone for denied AXFR attempts. 2829 283025 July 2007: Wouter 2831 - bind2nsd to 0.5.0, fixup of includes, key{} handling. 2832 283319 July 2007: Wouter 2834 - bind2nsd to 0.4.8, fixup of include bug. 2835 283618 July 2007: Wouter 2837 - added contrib for bind2nsd, Al Stone provided an abridged version 2838 that neatly fits for contrib. 2839 284017 July 2007: Wouter 2841 - fixup commithooks. 2842 284316 July 2007: Wouter 2844 - Added reference to http://bind2nsd.sourceforge.net/ to 2845 contrib/README. 2846 28473 July 2007: Mark 2848 - Zone compiler now gives more sane error message when out of 2849 diskspace. 2850 - Fixed a call to drill in tpkg that made a test check bind instead of 2851 nsd. 2852 28532 July 2007: Mark 2854 - Remove last traces of mmap usage. 2855 - Some cleanups in tpkg. 2856 285724 April 2007: Mark 2858 - Added "hide-version" configuration setting. Enabling this feature 2859 stops NSD from answering to CHAOS class version requests. 2860 286119 April 2007: Wouter 2862 - Compiled on minix 3.1.3 and make some adjustments to ease porting. 2863 ECONNABORTED is checked for. sys/select.h included in nsd-notify. 2864 SO_REUSEADDR failure is not fatal. PF_INET compat code added. 2865 If you compile yourself; strptime and socketpair need compat code. 2866 286713 April 2007: Wouter 2868 - Minor tweak to nsec3.c, more elegant handling of malformed nsec3 2869 records from a zone transfer. 2870 287110 April 2007: Wouter 2872 - Fixup ignored return value in region-allocator. Now returns a NULL 2873 memory allocation failure and leaves region in a consistent state. 2874 287520 March 2007: Wouter 2876 - Released 3.0.5. 2877 - (for 3.0.6) -O2 test for Alpha moved to saner position. 2878 287916 March 2007: Wouter 2880 - port configure to AIX, removed warning on ALIGNMENT in region code. 2881 defined _ALL_SOURCE to get recent C definitions on AIX. 2882 - improved nsec3.h comments. 2883 288422 February 2007: Wouter 2885 - Zonesdir default is now /etc/nsd. 2886 So that the invocation directory is not used to dump files into. 2887 The user can change the zonesdir by editing the config file. 2888 The directory is created by install, if not an error is printed. 2889 - updated tpkg tests to use current dir for testing. 2890 - tcp connections that drop do not spam the log file. 2891 Unless verbosity is set high. 2892 289319 February 2007: Wouter 2894 - Fix empty line printed with warning on 'force zone transfer'. 2895 289615 February 2007: Wouter 2897 - Check for EPROTO definition to compile on FreeBSD4/Alpha. 2898 289913 February 2007: Mark 2900 - Debug flag (-d) behavior changed. Nsd now also forks children when 2901 run in debug mode. 2902 - Added verbosity mode (-V <level>) for extra operational logging. 2903 29048 January 2007: Wouter 2905 - README text on interface configuration added. 2906 29072 January 2007: Wouter 2908 - Fixup accept() that could block due to already closed connection. 2909 Made listen() nonblocking, ignores errcodes that indicate closed tcp. 2910 291129 January 2007: Mark 2912 - Handle the new CERT RDATA types defined in RFC 4398 (submitted 2913 by Mans Nilsson). 2914 - Change nsd-notify retry timer from linear into exponential backoff 2915 (submitted by Mans Nilsson). 2916 - Due to a small bug in a comparison statement, zonec would fail 2917 on the parsing of unknown CERT types. This got triggered by the 2918 first bugfix today, as that one shouldn't have been discovered in 2919 the first place. Took the opportunity to sanitize two other 2920 comparison statements related to strtol(). 2921 292224 January 2007: Wouter 2923 - Tentative change to set UDP sockets nonblocking. Perhaps it 2924 helps Howard. 2925 292619 January 2007: Wouter 2927 - NSEC3 work. prehash printed only once with time taken to prepare. 2928 - prints are now only in DEBUG mode (except errors). 2929 - rr descriptor counts for NSEC3 updated, has an extra field flags. 2930 - now NSEC3PARAMs with flags!=0 are ignored, as per draft-09. 2931 - Fixed where only first NSEC3PARAM was properly detected. 2932 - Added tpkg in manual (because you need to compile with nsec3) 2933 that performs the test queries from draft-09 and checks them. 2934 - Made tpkg to test NSEC3 parameter detection. NSD will skip any 2935 NSEC3PARAMs that don't work until the first working one is found. 2936 Also, this means unknown hash algorithms are simply ignored. 2937 A zone that uses exclusively unknown hash algorithms for NSEC3 2938 will give errors on loading (or after zone transfer) but NSD 2939 will load and serve the zone (but no NSEC3s are returned). 2940 - added tpkg in manual to test parent side DS answers. 2941 These follow a different code path than child side DS. 2942 - Will allow NSEC3s(and signatures) below a DNAME. 2943 - A query for an NSEC3 ownername will lead to DNAME redirection 2944 as if the NSEC3 did not exist. 2945 - Test package in manual that tests NSEC3 and DNAME in the apex. 2946 - Changed NSEC3 memory requirements from 5 pointers per domain name 2947 to 3 pointers and 2 bits. 2948 - Added jumpstart for nsec3 search, will greatly speed up optout 2949 zone nxdomains. At the cost of one ptr per domain name. 2950 The speedup also speeds up the nsec3 prepare stage. 2951 295218 January 2007: Wouter 2953 - Created 3.0.4 release tag. 2954 - 3.0.5 number in trunk. 2955 - add nsd.spec patch from Farkas Levente to contrib. 2956 - NSEC3 new wireformat and presentation format from draft-09. 2957 295811 January 2007: Wouter 2959 - The message 'server .. closed cmd channel' is now priority INFO. 2960 This to reduce the 'error' amount in the logs. 2961 - On error in a tcp request, set to retry next instead of waiting 2962 for the tcp timeout. 2963 29649 January 2007: Wouter 2965 - TSIG acl matching changed so that NOKEY allow-notify entries match 2966 only queries without a tsig. Otherwise NSD would crash. 2967 This only affects servers that have allow-notify: ip NOKEY and 2968 someone sends a TSIG signed notify from that ip. 2969 - test package for that. 2970 - Fix for reply to notify messages with ANCOUNT wrong. The ack 2971 to notify messages that passed the ACL, and had a SOA in the answer 2972 section of the query, included wrong RR counts in the header. 2973 - test package for notify reply wireformat. 2974 29758 January 2007: Wouter 2976 - ipc_send_blocked will not lead to busy waiting on it, but will block 2977 in select, until SOA_END comes by. 2978 - server_main sends SOA_END if reload crashes, to xfrd. So that xfrd 2979 can set ipc_blocked=0 and can_send_reload=1; and thus resume service, 2980 assuming that the crash was a temporary condition. 2981 This will lead to trying every reload-timeout seconds to reload 2982 if it is a permanent condition. Which is more obvious to the 2983 operator. 2984 - put the error "error: diff: RR ns.kiev.ua. already exists" in 2985 debug mode only. Zone transfers with this error are liberally 2986 accepted, and we should not spam the logfile. 2987 - empty zones will not be retried forever every 10 seconds, 2988 but exponential backoff to a max of every 4 hours. 2989 The exact value is randomised to spread out attempts. 2990 29915 January 2007: Wouter 2992 - Fixed --zonesdir=<path> for configure. The value did not get used 2993 as a default value. Now it is used as a default value. If a 2994 default value is set for zonesdir, you can go to a 'no value 2995 specified' by giving the empty string, zonesdir: "" in nsd.config. 2996 - Fixed checkconf.tpkg for this change. nsd-checkconf will 2997 output zonesdir: "" as this is the default for --zonesdir. 2998 29992 January 2007: Wouter 3000 - Added contrib script from Stephane Bortzmeyer to convert NSD 2 to 3001 NSD 3 config files. Converts secondary zones and TSIG keys. 3002 - Made config conversion script skip empty lines. 3003 - Made config conversion script convert primary zones (and notify). 3004 - Nsdc control script will exit with 'nsd startup failed.' if nsd 3005 fails to start (due to bad config file for example). 3006 300715 December 2006: Wouter 3008 - Removed dlopen() checks from configure.ac, NSD3 no longer has 3009 dynamic plugin support (since 3.0.0). 3010 - added .rpm spec file to contrib. 3011 - Updated README to remove reference to buildzones script. 3012 301312 December 2006: Wouter 3014 - Added missing include to ipc.c to compile on SunOS. 3015 - Cast to avoid signed/unsigned comparison in compat/inet_ntop.c. 3016 301711 December 2006: Wouter 3018 - Added test to check for CNAME and other data error by zonec. 3019 Currently NSEC, NSEC3, RRSIG, SIG, NXT are allowed next to CNAME. 3020 - Fixup unaligned memory access that could occur when reading ixfr.db 3021 with a partial transfer inside. 3022 - RR type WKS (well known service) was not printed correctly, 3023 htons() was forgotten when calling getservbyport. 3024 - NSD does not complain about not being able to read the db CRC 3025 when all that happens is the file became longer or shorter. 3026 30278 December 2006: Wouter 3028 - Moved down max XFRD UDP sockets for zone transfer queries to 100 3029 down from 300. This makes the total socket max at 200, so it fits 3030 easily under 256 ulimit (a common default). 3031 30327 December 2006: Wouter 3033 - Improved error message to help operator. 3034 - created 3.0.3 svn tag. 3035 - default of zonesdir corrected (no directory is default). 3036 30374 December 2006: Wouter 3038 - updated test packages. Moved 213_large from manual to long. 3039 size_0, source_port_0 made more working (needs root permission). 3040 30411 December 2006: Wouter 3042 - Moved xfrd ipc and reload handlers to front of event handler 3043 lists for a 10% speedup in xfrd. 3044 - Fixed so that NSD no longer interrupts zone transfers when 3045 a notify comes in for that zone. Added package to test it. 3046 - Fixed warning on Solaris 10. 3047 304830 November 2006: Wouter 3049 - Test for fallback in getaddrinfo more portable. 3050 Ported to FreeBSD 6.1 without inet6. 3051 - New quit sync had a problem with blocking in dispatch. Fixed. 3052 - reload will retry quit_sync if nothing happens. 3053 - parent tries to empty the pipes before closing them on quitsync. 3054 - xfrd does not send reload when previous reload request busy. 3055 - netio will only deliver the number of bits from select 3056 and then stop. Optimisation. 3057 305829 November 2006: Wouter 3059 - Fixed getaddrinfo error message to be more descriptive. 3060 - Fallback to ip4 also if getaddrinfo fails for ip6. 3061 - instead of EAI_ADDRFAMILY uses EAI_FAMILY which is portable 3062 to FreeBSD. 3063 - signed/unsigned warning fix for FD_SETSIZE comparison. 3064 - Lots of debug statements and new quit sync feature, where 3065 the server children are synced with. So as not to lose buffers. 3066 306728 November 2006: Wouter 3068 - Debugging 10k zones transfer, set so that zones waiting for a 3069 socket do not get timeouts. 3070 - Debug change so that an event is only returned to one handler 3071 by netio. 3072 Reversed this. Netio will not deliver events you do not listen 3073 to, and since xfrd first listens to write then read, it will 3074 not have problems with stale events (for the fd from the previous 3075 select) because these are always read, while it needs a write. 3076 Re-Reversed it: netio will deliver events only once. 3077 This is easier to understand for the poor hapless developer. 3078 - Need to set notify_current for notify on waiting list. Fixed. 3079 308027 November 2006: Wouter 3081 - Debugging 10k zones transfer, noticed that it is possible for 3082 netio to give a callback for an event that you were not listening 3083 to. Now no longer does that. 3084 308516 November 2006: Wouter 3086 - Bug #153: now checks for FD_SETSIZE when adding fd to select fdset. 3087 - Easy overview of socket allocation for xfrd in xfrd.h 3088 - Upped the default xfrd socket limits a bit. 3089 - Log message that the TCP connection limit is reach is now only 3090 in -L 2 logging. It is spammy. 3091 - updated dependencies. 3092 - Added test for notify-socketcount, and removed unused files from 3093 bug153 test package. 3094 - Notify udp sockets are also capped at a max number. The rest 3095 has to wait in a queue. 3096 309715 November 2006: Wouter 3098 - Fixed bug #152: identity keyword in nsd.conf did not work. 3099 What happened was that the hostname() from the computer 3100 was overriding the nsd.conf identity. Fixed now. 3101 If commandline is given that is used. 3102 Else nsd.conf entry is used. 3103 Else hostname() detected from computer is used. 3104 Else default string "unidentified" is used. 3105 310614 November 2006: Wouter 3107 - Fixed bug where NSD tries to create 10000 udp sockets, 3108 when starting with 10000 secondary zones. Limited to 50 3109 at a time. The XFRD_MAX_UDP constant controls this. 3110 31113 November 2006: Wouter 3112 - Created tags/NSD_3_0_2_REL. 3113 31142 November 2006: Wouter 3115 - Added pdf for differences.tex for ease of use. 3116 - Updated text in readme on memory usage. 3117 311824 October 2006: Wouter 3119 - Recycle rrset memory after doing special processing on the deleted 3120 rrset data. 3121 - log message clearer for 'duplicate xfr part' to 'discarding partial 3122 xfr part'. 3123 - if you have a server that has IXFR turned off but sends a TC flag 3124 for IXFR queries, xfrd will retry to TCP. This makes the use of 3125 'AXFR' flag in nsd.conf file not needed in certain cases. 3126 - Be thrifty and save up the memory that was lost at end of chunks 3127 in the recycle bin. Saved 1.3Mb on 170(rrs)/220(total) Mb dataset. 3128 312923 October 2006: Wouter 3130 - Added checks for out of memory in reload (diff file). And it exits 3131 if so neatly. 3132 313313 October 2006: Wouter 3134 - Bug #149: Wrong text for NOTAUTH error code. When notify is not 3135 authorised REFUSED error code returned instead. 3136 31374 October 2006: Wouter 3138 - More fixes from Koh-ichi Ito (kohi@iri.co.jp now), for bug #146, 3139 his bash does not do $(( )), so nsdc.sh has to use test of course. 3140 314129 September 2006: Wouter 3142 - recyclebin works, added a test that uses it (about 3 Mb goes 3143 through the recyclebin). This resolves bug #147. 3144 - Made -L 1 logging is little less verbose (-L 2 gets it all). 3145 - added search path for openssl on Solaris 10 (/usr/sfw). 3146 314728 September 2006: Wouter 3148 - Removed unused global variable current_region, 3149 and routines for it in region-allocator.c and .h. 3150 - Added recycle option to regions. It will keep track of small 3151 objects in a recycle bin. Large objects are deallocated. 3152 No calls to recycle yet, unit test it first. 3153 - added unit test for region recycle. 3154 315527 September 2006: Wouter 3156 - Further suggestion from Koh-ichi Ito, I've set opt->xfrdfile 3157 to XFRDFILE in options_create. So opt->xfrdfile and opt->difffile 3158 are never NULL. This simplifies code elsewhere. 3159 And also handles chroot case (+=l) for default values. 3160 - Fix for bug #145. The skip file position in the diff file was used 3161 inconsistently - one part of the code skipped to before the 'IXFR' 3162 type code and another part skipped to after that. Now all skip to 3163 before the type code. This bug only happens if your diff file 3164 is like: zone1_part1, zone2_part_1, zone1_part2, zone1_commit, 3165 zone2_part2, zone2_commit. The skip over zone1_part1 failed. 3166 - tpkg test in long dir that tests for the bugfix. Takes a long time 3167 and uses ldns-testns feature to wait partway through an AXFR. 3168 - removed debug log of strerror on diff read failure, when the errno 3169 was already output to the logfile (resulting in a nonsense error). 3170 317126 September 2006: Wouter 3172 - NSD compiles on Solaris 10 with the sun cc compiler. 3173 Added a define for _STDC_C99 for that. 3174 - Checked that the patch for solaris for bug 143 indeed fixes the bug. 3175 - Fixed bug #146 reported by Koh-ichi Ito: when chrooted nsd failed 3176 to write xfrdfile/difffile. 3177 317818 September 2006: Wouter 3179 - no queries for NSEC3, RRSIG, ANY succeed for nsec3 only domains. 3180 318115 September 2006: Wouter 3182 - Fixed LOC parsing of integer overflow causing maximum values. 3183 Added to test and backported fix to 2.3.6. 3184 - NSEC3 qtype queries get noerror/nodata or nxdomain answers. 3185 You can query for NSEC3PARAM. 3186 - warnings for printf format on maxOS (sizet needs cast to int). 3187 318813 September 2006: Wouter 3189 - added fsync to AF_UNIX sockets to write last command (QUIT) before 3190 closing them. 3191 - sent explicit QUIT command to xfrd on final shutdown of the server. 3192 319312 September 2006: Wouter 3194 - Bug #144: LOC defaults for unspecified values wrong. Error in zonec. 3195 Set defaults. Also fixed parser if LOC has no minutes or seconds. 3196 - Also fixed rounding error in seconds 0.001 decimal. 3197 - Test tpkg for bug 144. 3198 319911 September 2006: Wouter 3200 - nsdc now more portable in use of 'which'. 3201 Does not only look at exit code but also checks for '^no ' string. 3202 - nsd-patch does a chdir to zonesdir for relative difffile or dbfile 3203 path names. 3204 - nsdc handles zonesdir: for relative pidfile, dbfile, difffile 3205 pathnames. 3206 32077 September 2006: Wouter 3208 - bumped version to 3.0.2. 3209 - Nice configuration error when you had the wrong zone name in the 3210 nsd.conf file. Zonec will give an error already. 3211 - When you start a secondary zone without a zone file, you get 3212 a much nicer error message, warning you of the zone transfer. 3213 - Credits for prerelease testers; Thanks guys! 3214 32156 September 2006: Wouter 3216 - Fixed nsd-patch so that it writes the SOA at the start of the file. 3217 - test tpkg that tests for the bug, has multiple rrsets at zone apex 3218 and does nsd-patch followed by zonec. 3219 Previous tests did not catch this: they used nsd-xfer to test zone 3220 contents, or only checked the zone-file after nsd-patch. 3221 - version number bumped to 3.0.1. 3222 - svn tag 3_0_1 made. 3223 32245 September 2006: Wouter 3225 - differences file improvements. 3226 - created 3.0.0 release in svn tags. 3227 32284 September 2006: Wouter 3229 - From suggestions by Bin Zhang: 3230 - nsdc restart does not fail if nsd was not running. 3231 - fixes to man pages, wrong locations for files. 3232 - NSEC3-PARAM has no optout bit in presentation format. 3233 - NSEC3PARAM spelling. 3234 - differences in latex format (needs nlnetlabs housestyle). 3235 323631 August 2006: Wouter 3237 - Fix for tsig size still set when data is null ptr. 3238 - Fix configure for NetBSD (1.6 - 2.0) to find struct timespec. 3239 - DIFFERENCES file completion. 3240 324130 August 2006: Wouter 3242 - Print error nicely when nonblocking connect fails on systems 3243 in a portable way. 3244 - doc/UPGRADING document to assist NSD 2 to 3 upgrades. 3245 - updates of error print - ignore EINPROGRESS if we check too early. 3246 - wait for select writable before testing for connect error. 3247 - echo "" >&2 is not as portable as we would like, removed from nsdc. 3248 - fixed debug print of a null ptr. 3249 - fixed bug where query for CNAME that points to unserved zone caused 3250 nullptr exception on empty zone ptr. Now original zone is restored 3251 after CNAME-pointed data is added to the packet. 3252 Test in dname.tpkg. Reported by Kai. 3253 - fixed stack corruption when ipv6 disabled. 3254 325529 August 2006: Wouter 3256 - NSEC3 made it so it can handle the case where the NSEC3 RRSET 3257 with the SOA bit on does not have the RR with the soa bit set 3258 as the first RR. 3259 - Handle NSEC3-PARAM type. Checks to see if any of them work: 3260 zone apex hashed exists, with NSEC3 type, and RR that has 3261 the same parameters and the SOA bit set. 3262 - in presentation format of NSEC3, NSEC3-PARAM reversed hash, optout. 3263 - update to the DIFFERENCES file, bind 9.3.2 vs NSD 3 and 3264 NSD 2 and 3 comparisons are completed. 3265 326628 August 2006: Wouter 3267 - echo messages in nsdc made clearer. nsdc notify and nsdc update 3268 only send notify messages to slaves / localhost to force transfers. 3269 - initial NSEC3-PARAM type code entry. parsed, ignored. 3270 327125 August 2006: Wouter 3272 - disabled make test target as tests are not shipped. 3273 - performed prerelease static snapshot. 3274 - updates to the DIFFERENCES document. 3275 327624 August 2006: Wouter 3277 - Fix bug 141 port from 2.3.6, copies behaviour from bind 9.3.2. 3278 - Added a test for bug 141. 3279 - Bug141: save the opcode from the query. 3280 328123 August 2006: Wouter 3282 - Fixed % by 0 exception in the bugfix #139. 3283 - Fixed RFC 4035 says CD flag SHOULD be cleared on authoritative 3284 responses, now NSD clears the CD flag. This is bug #140. 3285 RFC 4035 could be confusing on this, as it states 'all servers 3286 MUST copy the CD bit' more than once, but then makes clear only 3287 recursive servers are meant with that statement. 3288 - Differences document updates for bind 9.3.2 and nsd 3. 3289 329022 August 2006: Wouter 3291 - version number to 3.0.0 in preparation for release. 3292 - Bug #139: resync stats to whole period. Fixed. 3293 329421 August 2006: Wouter 3295 - check for error in ftruncate call. 3296 - replaced fwrite call with write_data call from util that does 3297 error checking. 3298 329915 August 2006: Wouter 3300 - removed unused struct nsd.named8_stats variable. 3301 - Bug #138: nsd aborts trying to bind all interfaces if ip6 is not 3302 enabled, instead it will fallback to ip4. 3303 330414 August 2006: Wouter 3305 - Added test for rollback of an IXFR transfer by xfrd. 3306 - Added test for reload timeout in xfrd, the reload does happen after 3307 a while, but not immediately. 3308 - Test that makes xfrd connect to ip6 address. 3309 - Test that overloads the number of tcp connections in xfrd, 3310 simulating a slow master, so that zones have to queue up to get it. 3311 - code coverage is now 2514 of 10636 uncovered. Still a lot uncovered. 3312 - ixfr queries return NOT_IMPL errors. 3313 331411 August 2006: Wouter 3315 - srandom to init random() in xfrd based on PID and time. 3316 - improved usage() information to be more helpful, and with version. 3317 - in makedist.sh, flex and bison called like in Makefile. 3318 - test for tcp underrun and overrun of the buffer. 3319 332010 August 2006: Wouter 3321 - added more tests to increase code coverage of testset. 3322 - moved acl parsing code from configparser.c to options.c to help 3323 unit testing. 3324 - nsd-checkconf echod wrong difffile filename with -v. 3325 - nsd-patch can now be used with -f to force printing of all RRs. 3326 - TYPE_NULL crashed NSD when it printed it, arg was ZF_DNAME, 3327 now ZF_UNKNOWN. 3328 - unknown rr test was faulty on input, the length was in nibbles 3329 not in octets, but rfc specifies octets for unknown rrs. 3330 NSD does not look at the length, and prints the length correctly. 3331 - added type NXT to the rr-test for weird RRs. 3332 - added printing test to rr-test, ipseckey and unknown-rr tests. 3333 checks if NSD prints the same RR on output as it read in. 3334 - put -x option for nsd-patch in usage(). 3335 - test that kills an nsd child server and checks that it is 3336 restarted. 3337 33389 August 2006: Wouter 3339 - tested nsdc functionality, make install and make uninstall. 3340 - set O_NONBLOCKING on xfrd tcp sockets before the connect call, 3341 because the handshaking can take very long too. 3342 - difffile and xfrdfile set via configure, to absolute pathnames, 3343 so that chroot checks work for them. 3344 - updated tpkgs, they need to set relative paths now for difffile. 3345 - gcov says 2821 of 10617 total code lines are not covered. 3346 compiled with --coverage, not -O2, ran tpkg/* and long/testplan*. 3347 counted grep '#####:' *.gcov | wc and grep '^ *[0-9]*:' *.gcov | wc. 3348 - cleaned up the log functions, NSD no longer spams the syslog with 3349 debug messages. The standard NSD debug util is used, -F -1 -L 2 for 3350 a compile configured with --enable-checking will enable them again. 3351 Errors are logged, as is the automated reload of a new serial. 3352 - tpkgs for bug077 and bug107 were silently failing to test properly. 3353 33548 August 2006: Wouter 3355 - fixes for checkconf test, more portable. 3356 - removed items from TODO that have been tested. 3357 for multihomed servers you have to bind to each interface 3358 explicitly to get outgoing ip-address the same as query 3359 destination ip-address. 3360 Forks and if-existing are tested and ok in testplan tests. 3361 close_all_sockets is called by child, if tcponly, so leave it. 3362 - user name check is hard portably with shell scripts, and 3363 packaging could set a default user that does not exist on a machine. 3364 - empty nodes (nonterminals) give no nxdomain any more (todo item done). 3365 - removed (old) from TODO. 3366 - removed contrib/buildzones.pl, it is outdated. 3367 33687 August 2006: Wouter 3369 - Made the tests a little more portable. 3370 - fixed mempcy unable to handle unaligned memory addresses on Solaris, 3371 used memmove instead of memcpy in zonec LOC conversion code. 3372 - another unaligned memory access, when storing off_t pointer in 3373 difffile.c, used memmove. 3374 33754 August 2006: Wouter 3376 - nsd will start if diff file is corrupt, with a log message. 3377 It ignores the bad data. 3378 - tpkg files do not override PATH, svnhook sets it. So user can 3379 set path to utilities on the system to run the tests. 3380 - running testset on DecAlpha discovered uninitialised variable 3381 in NSD. Fixed. 3382 - Jakob Schlyter asked for building nsd3 in an obj dir, i.e. 3383 mkdir obj; cd obj; ../configure && make. Fixed up makefile for that. 3384 - and bug137.tpkg for separate obj dir building. 3385 33863 August 2006: Wouter 3387 - more tests in mesh test. 3388 - changed test packages to put nsd log to test result "/dev/stdout". 3389 - test packages more portable - use default 'dig' location. 3390 also, path is appended to, instead of replaced. 3391 33922 August 2006: Wouter 3393 - Region can be customised for detailed memory handling. 3394 Especially if you set large_object_size=0, chunk_size=0, 3395 the region will perform individual allocs, and 'save memory'. 3396 The region still keeps tracks of allocations so that at 3397 region_free time all memory is released. 3398 - tsig.region removed, it was not used after attaching a cleanup 3399 at creation. tsig creation uses custom region settings. 3400 - xfrd inits the tsig records with memory saving settings, 3401 so the regions alloced for tsig take up about 60 + 4*8 bytes. 3402 - new custom region for query region - to make chunksize larger 3403 there. The chunksize for the query region is important, if 3404 all allocations for a query fit in it, no mallocs are needed. 3405 - TSIG other_data field size according to RFC 2845 is 0 or 6. 3406 In tsig implementation put a maximum to the field of 16, 3407 otherwise a formerror results. 3408 - query with IXFR appended SOA not formerror. 3409 IXFR queries not reach the handler in axfr.c for IXFR queries. 3410 - removed annoying debug message of added tsig key. 3411 - added test that starts 7 servers in a mesh and lets them fight out 3412 what zones to transfer and serve. 3413 - xfrd logic bug: if notified a slave would not see the renewal 3414 of its current zone. 3415 34161 August 2006: Wouter 3417 - Test for remove domains with IXFR. 3418 - Fix for empty nonterminals and IXFR deletes. 3419 - Test for timeouts, including expiry, and expiry and zone updates. 3420 - Test for axfr refused authorisation. 3421 - Test for deadlock in ipc. 3422 342331 July 2006: Wouter 3424 - Test plan ixfr test in tpkg/long directory. 3425 - IXFR with many packets tested (one RR per packet). 3426 342728 July 2006: Wouter 3428 - tentative change, that preserves ordering of rrtypes for a domain. 3429 - fix for serial rollover (old_serial + 2**31), now works, is seen 3430 as new serial and rolled over to new. 3431 - serial numbers, and time values, printed as unsigned to logfile. 3432 - set so that if info is provided by operator, refreshing state 3433 not expired is used. 3434 - forgot to * a pointer to boolean, is_ixfr in the difffile reader. 3435 This fixes the testplan_ixfr test 1. 3436 343727 July 2006: Wouter 3438 - fixup desc of tsig xfer test, remove debug from xfr_huge. 3439 - fixed compressed dname tables cleanup, to set ptr to NULL. 3440 - initialised xfrd_listener.fd to -1. 3441 - fixed difffile handling of very short AXFRs, with no data. 3442 344326 July 2006: Wouter 3444 - Updated the requirements with comments from Olaf. 3445 - README discourages use of experimental nsec3 rr a bit more. 3446 - typo in DNAME code, used original qname instead of CNAME 3447 adapted qname variable. 3448 - added IPSECKEY RR type, RFC 4025. 3449 - tpkg test with sample ipseckey rrs. 3450 - wireformat for IPSECKEY depends on the value of a rdata atom, added 3451 WF_IPSECGATEWAY to handle that. 3452 - DHCID type, data is encoded in one binary/b64 blob. 3453 345425 July 2006: Wouter 3455 - max number of tries for nsd-notify is 15, so that the 3456 total time for sending is about 75 seconds. 3457 - forward port of fixes for bug 105 and 135 in nsdc. 3458 forward port of test for bug 105. 3459 - fixed nasty bug with configure --prefix=<...> where config.h 3460 was wrong. Now double evaluate the shell expansion on the defines. 3461 34625 July 2006: Wouter 3463 - helped in README with gnu make; need to make clean 3464 so that botched attempts by make to create the lexer files 3465 do not stay around. 3466 - removed %zd, replaced by casts to int. 3467 - updated REQUIREMENTS file, the sections on RR types, on what 3468 algorithm NSD follows and on which RFCs are supported are updated. 3469 34703 July 2006: Wouter 3471 - 'make depend' target in makefile. (updates both Makefile.in 3472 and Makefile, so it works for users and for svn). 3473 - doc minor update. 3474 34752 July 2006: Wouter 3476 - TESTPLAN, README, bugzilla-bugs docs updated. 3477 - NSD for BIND users update. 3478 347929 June 2006: Wouter 3480 - removed --zonesfile nsd.zones configure option. 3481 - doc/README updated for 3.0. 3482 - doc update. NSD_FOR_BIND_USERS document. 3483 - moved from -Ds to the config.h header, cleaner compilation output. 3484 - use autoconfs built in large file support enabler. 3485 348628 June 2006: Wouter 3487 - nsdc neater, checks for BLOCKED ips more strictly. 3488 - nsd -d also disables xfrd forking, and thus all reloads 3489 and secondary zone treatment. Stated so in manual page. 3490 - fixup, apart from ip4 need to allow ip6 in example.conf 3491 line showing how to allow access for everyone to axfr. 3492 349327 June 2006: Wouter 3494 - Fixed read in server.c to be a blocking read for sure, 3495 even if ipc is not blocking on the OS. 3496 - nsd-notify tries to send notify 5 times, then exits with error. 3497 - nsd-checkconf can lookup key secrets by name from a config file. 3498 - difffile option is always set in options struct with default 3499 or config value. 3500 - nsd-patch uses dnames to compare zone names (for trailing .). 3501 - nsdc updated to work with config file. 3502 350326 June 2006: Wouter 3504 - Nicer check in autoconf for struct timespec type. 3505 - NSEC3 next hashed ownername is a length byte followed by data. 3506 - nsd-checkconf more quiet, clearer error message. 3507 - NSEC3 does not complain about glue records without nsec3. 3508 - nsdc work (did start, stop, running, rebuild, restart, reload, stats). 3509 351021 June 2006: Wouter 3511 - nsid commandline parsed using hex_pton routine. 3512 - unit test for hex_pton. 3513 - added include stdlib, needed for free() on sunos4. 3514 - fixup of disable-ipv6 compilation. 3515 - memmove compat implementation (created fresh). 3516 - yy_set_bol() for old flex compat define. 3517 - compat implementation from openssh4.3p2 for 3518 strlcpy, inet_aton, and inet_ntop routines. 3519 - changed ctime_r usage to ctime() call, nsd is not threaded. 3520 - compiles on SunOS4/gcc-2.95. 3521 - debug statements go to the log_msg route instead of the 3522 fprintf route, so they will get to a nice logfile even if 3523 we forked away, with xfrd. logfile=/dev/stderr gives old way. 3524 - minor changes to cutest to make unit test compile 3525 on SunOS4/gcc-2.95, it checks out fine there. 3526 352720 June 2006: Wouter 3528 - updated configure to disable -O2 on platforms where gcc 3529 does not like it (such as dec-alpha). 3530 - nsd-notify used recvfrom and passed addrinfo.ai_addrlen 3531 which is a size_t, but recfrom needs a socklen_t*. On dec 3532 alpha these types differ in size (size_t is 64bit, 3533 socklen_t is 32bit). Therefore, used a wrapper variable 3534 to pass to recvfrom. 3535 - changed long int to time_t in nsd-patch.c to please compiler 3536 on dec alpha. 3537 - dec alpha complains if statements are in front of variable 3538 definitions. Fixed code for some mixups on this. 3539 - Fixup cutest for dec alpha. Code, lowercase filename, %lf->%f. 3540 - cutest fixup uses (size_t) cast and %zx to print ptrs (for debug). 3541 - for SunOS4 configure detects ssize_t and struct timespec. 3542 - removed usage of fpos_t, instead using fseeko/ftello for 64bit. 3543 - configure will define fseeko/ftello with fseek/ftell if unavailable. 3544 - added missing include from buffer.c (stdlib for free()). 3545 - defines for snprintf and vsnprintf in config.h if needed. 3546 - configlexer flex is called more cleanly with -t to write stdout. 3547 - missing include from configparser, stdlib for atoi. 3548 - config.h provide inet_pton define if it is not available. 3549 - fixup of INET6 defines, where sockaddr_storage is used 3550 outside of INET6 defines, in xfrd-tcp. 3551 - edns_init_nsid was not defined in edns.h. 3552 - added compat/fake-rfc2553.c and h from openssh 4.3p2. That has 3553 a BSD license as well. They replace getaddrinfo() (and friends) 3554 when those are missing. 3555 355619 June 2006: Wouter 3557 - updated the tpkg/manual tests for NSD 3 config files. 3558 Some need root privileges to run (using hping), they all pass. 3559 - also the tpkg/long test bug_sighup. 3560 - nsec3 code will warn at prehash time for missing exact nsec3 3561 records. So faulty signed zones are more easily spotted. 3562 - fixed NSEC3 and CNAME/DNAME chains, it will disprove the new qname. 3563 - removed for() look in CNAME processing, only first CNAME is 3564 processed now. 3565 - zonec will error on a zone with multiple CNAMEs for one name. 3566 356716 June 2006: Wouter 3568 - Swapped read and write ops in xfrd_handle_ipc, so that a read 3569 of a signal from main can stop further writes. 3570 - xfrd will complete its last message before shutting down 3571 the ipc writes and then acknowledge the reload-sync. 3572 This resolves the race where half of ipc messages caused bad 3573 modes from the main. 3574 357515 June 2006: Wouter 3576 - In preparation of notify send overhaul, moved the notify 3577 send code to xfrd-notify.c and h files. 3578 - created cleaner split of notify send and xfr code. 3579 Still in the xfr process, because it is a convenient location. 3580 - fixed bug where notify sending would read from wrong fd. 3581 - send master zone notifies. 3582 Does not skips master zone SOA INFO updates. 3583 - fixed bug where port number acls did not match. 3584 - fixed bug where tsig keys are checked for twice, but not error_code. 3585 - fixed notify send retry counting. 3586 - added test tpkg for notifies from nsd master to nsd slave. 3587 - nsd-checkconf flags if you set allow-notify without request-xfr. 3588 358914 June 2006: Wouter 3590 - fixed crash bug when dnssec/NSEC enabled and query DNAME 3591 target did not exist. 3592 359313 June 2006: Wouter 3594 - created doc subdirectory for documentation. 3595 - removed unused DIFF FILE MAGIC string. 3596 359712 June 2006: Wouter 3598 - dname_test tpkg with very extensive DNAME testing. 3599 - moved sizes of zone_name buffers to 3072 - for escaped names. 3600 - nsd-patch has a debug option to list the contents of the 3601 difffile/ixfr.db/transfer patch log in a journal fashion. You can 3602 then manually inspect the contents. 3603 36049 June 2006: Wouter 3605 - after a reload NSD will report the memory churn: number of bytes 3606 of memory wasted by the zone transfer code. 3607 36088 June 2006: Wouter 3609 - When zone is re-chosen after a CNAME/DNAME no SERVFAIL is set, 3610 noerror is returned instead. 3611 - zonec will error on multiple DNAMEs for the same name. 3612 - zonec will error on DNAME and CNAME together. 3613 - improved loop log message. 3614 36157 June 2006: Wouter 3616 - after DNAME the closest_match is set correctly for another DNAME. 3617 - in case of a loop returns gracefully instead of crash. 3618 - nsec3 checks if it is enabled for the zone for wildcards. 3619 - NSD will give referrals for zone cuts encountered after a CNAME 3620 or a DNAME. This also fixed various subtle stuff with CNAME/DNAME 3621 and TYPE_DS at zone cuts. It basically re-determines the zone 3622 to use after the CNAME/DNAME. 3623 36246 June 2066: Wouter 3625 - zonec checks for data below a DNAME, and will not create the db, 3626 as per rfc 2672. Tpkg test to make sure such a zone is not loaded. 3627 - updated rr-test tpkg so it has no data below a DNAME. 3628 - DNAME synthesis of CNAME records, including compression for cname. 3629 - included cname creation in dname test. 3630 - preallocate the extra temporary domain_type structures. 3631 - too many temp domains returns OK packet so that the resolver 3632 will recurse and ask us again with the last name in the chain. 3633 - fixed bug introduced in preallocation on temp domain numbering. 3634 36352 June 2006: Wouter 3636 - dname_replace function that does DNAME replace and unit tests. 3637 - added error codes from DNSUPD rfc2136 to constants in dns.h. 3638 - in query.c added DNAME following code. 3639 - fixed bug 134: hints[i] in nsd.c to hints[0]. 3640 - added tpkg small test for DNAME. 3641 - tpkg to test bug 134 (starts 100 processes). 3642 36431 June 2006: Wouter 3644 - tsig test with NSD master and NSD slave server. Tsig AXFR transfer. 3645 nsd-xfer used to test slave zone contents. 3646 - fixed bug where buffer_flip() is done before appending tsig rr. 3647 - version printed at start of nsd in logfile. 3648 - xfrd prints name of tsig key used during transfer in commit comments 3649 so it appears in the log file and in zonefile after nsd-patch. 3650 - prints RRs from diff file only if debug level >= 1. 3651 - scalable transfer test xfr_gig added, you can set the size to try 3652 in the .pre file. Now set very small. 3653 365431 May 2006: Wouter 3655 - xfrd check for failed updates. It compares the time it wrote the 3656 commit to disk with the time of the last reload command. 3657 Failed updates are restarted like the zone is notified of the soa. 3658 It also catches reloads that have been lost (reload cmd while reload 3659 is running, or a crashed reload process, for example). 3660 - when reload is issued, times at that second are put back one second, 3661 so that after a reload all the zones that should have been loaded 3662 have a time from before the reload. 3663 - if a reload crashes, NSD will continue with the old database, 3664 xfrd is not informed, since it cannot fix that. 3665 - nsd-checkconf strdups arg strings before writing to it. 3666 - tsig error replies contain error data, but no signature. 3667 also crashproof, badly formatted tsigs get a format error. 3668 - tsig error print knows about DNS rcodes in tsig error field. 3669 - added tpkg tests for tsig. 3670 - tpkg test for nsd-xfer with TSIG from nsd. 3671 - small stuff with makedist.sh, CREDITS, Features, make test. 3672 367330 May 2006: Wouter 3674 - tsig pre-allocs the rr_region, not at runtime, tsig_create_record(). 3675 - redid some region work for tsig. Now has another temporary region 3676 for the context data. User is only aware of the region passed at 3677 start that exists for the lifetime of the struct. 3678 During TSIG checks no more mallocs are done, only region_free_all 3679 and region allocs (of small size). 3680 - checkconf, port is stored as a string. 3681 - tsig now keeps a max_digest_size for giving reserved space. 3682 - AXFR does tsig every 96 packets (and first and last packet). 3683 - tsig signing works for all queries. SOA queries, ... 3684 If you configured the key in the config file, you can use 3685 that key for any query for any zone. 3686 Except for NOTIFY and AXFR queries; those are only allowed for 3687 the zone (and source ip address) which are configured in the config. 3688 - cleaner compile with tsig disabled. 3689 - fixed unknown key error reply in tsig. 3690 369129 May 2006: Wouter 3692 - The nonblocking write routines disable silently if they have 3693 nothing to do. 3694 - put xfrd read/write state routines (almost 500 lines of code) 3695 into xfrd-disk.c file. 3696 - little readme blurb on xfrd state file for the operator. 3697 - put ipc code in its own file for ease of reading. 3698 - removed --disable-axfr, you can control this via acls. 3699 With no provide-xfr: statements, a zone will not do axfr. 3700 370125 May 2006: Wouter 3702 - fixed reload sending; it checks for EAGAIN and EINTR. 3703 - reload sends parent quit command blocking to make sure of arrival. 3704 - send_children_quit in parent uses nonblocking writes and closes 3705 the pipe to signal the child to quit (even if the write does not 3706 come through, the closed pipe will cause the child to quit). 3707 - need_to_send_STATS flag in parent. 3708 - reload has its own ipc-listening handler in server_main. 3709 - nonblocking writes for server_main; this solved write-blocking race. 3710 - another race condition solved, if a process dies, half a read or 3711 write buffer could be left behind on another process. These are 3712 dropped. Now: 3713 * The server_main drops ipc from dead children. 3714 * The server_main drops ipc if xfrd dies. 3715 * The server_main drops xfrd(old) and all children ipc 3716 on reload. 3717 * The xfrd drops ipc to parent on a SOA_BEGIN from reload. 3718 So after reload, but parent and xfrd start with 3719 clean ipc buffers. 3720 372124 May 2006: Wouter 3722 - unit tests print progress while running to stderr. Included license 3723 of cutest with its source in svn repository. 3724 - stack type (for the IPC buffer of zone update dirty). And unit test. 3725 - only update zone-is_ok if needed to reduce memory copy on write. 3726 - split off conn_write() from xfrd tcp nonblocking write routines. 3727 - nonblocking writes for xfrd. 3728 372922 May 2006: Wouter 3730 - ported over minor nits from 2.3.5 NSD fixups. Cast to (void) 3731 unused function return values. 3732 - removed kill signal to children, superfluous due to quit cmd ipc. 3733 - moved is_ok for zones to the zone_type in namedb, not in 3734 the options, it is a runtime value not a config value. 3735 For zones that have no data, parent and children keep no state. 3736 373712 May 2006: Wouter 3738 - fixed up usage print for zonec to include -f option. 3739 - xfrd send notifies. 3740 - server no longer sends SOA INFO for master zones. 3741 - removed possible debug log print of a null string. 3742 374311 May 2006: Wouter 3744 - nsd.conf.sample shows defaults for ip4-only, ip6-only and debug-mode. 3745 - SOA_BEGIN message on start of reload sending soa info so that 3746 xfrd will not reply with expire-notifications and thus deadlock 3747 both on blocking writes (and no OS buffer on the pipes). 3748 374910 May 2006: Wouter 3750 - nsdc.sh is set +x after creation. 3751 - improved error message when zone in db has no config info. 3752 - support for broken nsec3 chains (if the one with the SOA bit 3753 is complete, it is OK for there to be other nsec3 chains 3754 with different parameters in the zone). 3755 37569 May 2006: Wouter 3757 - Fix for finding bad zone when populating SOA info on start. 3758 it would find a parent zone instead of the zone in question ( 3759 which is empty). 3760 - request-xfr: AXFR 10.0.0.153 keytouse syntax to interoperate 3761 with NSD machines. Will only send AXFR queries to the machine. 3762 - documented AXFR option in nsd.conf.5 manual page, 3763 and updated nsd-checkconf, nsd.conf.sample. 3764 - made 'skipping zone' log entry clearer (Sam Weiler asked). 3765 37668 May 2006: Wouter 3767 - updated zparser.y to handle empty nsec_seq lists. 3768 for empty nonterminals in NSEC3. 3769 - nicer without ambiguous grammar. 3770 37715 May 2006: Wouter 3772 - nsd-notify handles option -y key:secret to TSIG sign outgoing 3773 queries. 3774 - the acl checks now verify TSIG signatures on the query. 3775 - iterated_hash compiles with ssl disabled. 3776 - new ipc NSD_ZONE_STATE sent by xfrd to nsd process. notifies 3777 nsd of the state (ok or expired) of a zone. 3778 - reload process waits for the old server_main to exit to make 3779 sure there is no race condition listening to the NSD_ZONE_STATE 3780 messages generated when reload sends SOA_INFO to xfrd. 3781 - server_main and children all set zone_ok state in config options. 3782 also server_main so that newly forked children get the right state. 3783 - if a secondary zone is expired, NSD returns SERVFAIL. 3784 a transient error, so resolvers try again later. 3785 - SOA_END ipc message, sent by reload to xfrd, so it can repeat 3786 all zone states (which can have changed during reload). 3787 - zone_is_ok kept in config section so that state for zones 3788 without data is not lost. Those have no zone_type*. 3789 - secondary zones start in the expired state. 3790 - if expired zones are updated, then NSD gets the go ahead from 3791 xfrd after reload sends SOAINFO/SOAEND msg, so it is really 3792 updated in nsd memory. 3793 - fixed tpkg xfr_1 to have longer expiry times (from 0 and 3 3794 seconds to 2000 and 3000 seconds), so the zone does not expire 3795 during the test anymore. 3796 37974 May 2006: Wouter 3798 - when a new lease is acquired xfrd_packet_newlease result is used. 3799 - if a zone is lost in nsd db, xfrd will update state to match. 3800 - IXFR can use TSIG in queries and verify responses. 3801 - Fixed memory leak in xfrd tsig handling. 3802 38033 May 2006: Wouter 3804 - forward of 2.3.4 RELNOTES into trunk. 3805 - debug log statements to track xfrd request rounds. 3806 - removed memleak from handle_passed_packet in xfrd. 3807 - faster find_zone in difffile.c. 3808 - nsd-patch writes commit log entries into zone file. 3809 - took some tsig.c enhancements from 3 branch, 3810 -> if key or algo changes during connection, return bad_key, 3811 -> debug statement neater. 3812 - nsd adds tsig keys to tsig keyring at startup. 3813 38142 May 2006: Wouter 3815 - ifdef inet6 back on ss_family usage in server.c. 3816 - nsd-checkconf ip6 ifdefs improved. 3817 - xfrd tries servers 3 rounds, then waits for next retry. 3818 38191 May 2006: Wouter 3820 - off_t used for 64bit fileio. 3821 - searches for smallest unused part and sets diff_skip to that. 3822 - doc comment near the region_free_all for every query about 3823 malloc speed. 3824 - null ptr in strcmp does not work on bsd, fixed nsd-checkconf. 3825 - made nsd.conf.sample.in so the sample gets prefix-corrected. 3826 - removed nsd.zones.sample. 3827 - makedist.sh added manual pages for nsd-xfer nsd-patch. 3828 - install/uninstall nsd-patch, nsd-checkconf and manpage. 3829 small update readme. 3830 383128 Apr 2006: Wouter 3832 - ixfr >64k in xfrd. 3833 - fixed length of new commit parts. 3834 - fixed multiple ipc reads in xfrd. 3835 - fixed multiple packet ixfr read in diff file. 3836 Miek: 3837 - Forward port fixes for nsd-xfer and nsd-notify 3838 383927 Apr 2006: 3840 Wouter: 3841 - nsec3 review fixes. 3842 - diff file format expanded for >64kb transfer support. 3843 - diff reader adjusted for >64kb. 3844 Jelte: 3845 - small non-null options check in nsd.c. 3846 Miek: 3847 - updated nsd-checkconf for zone parse shell script support. 3848 384925 Apr 2006: Wouter 3850 - Tests on NSEC3 code. Fixed that the unsecure delegations also 3851 have _ds_ parent nsec3 prehashes, so that they get proper NSEC3s. 3852 NSD will serve NSEC3s to prove 'opt-out' also if the opt-out bit 3853 is (erroneously) not set. 3854 - For the 05pre2 draft section 5.4.8.1. QTYPE is NSEC3, only NSEC3 3855 RRsets at name. Fixed that RRSIGs present do not matter. 3856 And also the closest encloser proof in that case fixed. 3857 If wildcard exists below zone apex servfails (cannot disprove 3858 it and NSD cannot instantiate the wildcard at that point). 3859 386024 Apr 2006: Miek 3861 Miek: 3862 - forward port nsid (disabled by default) 3863 Wouter: 3864 - nsd-patch manual page. 3865 - minor MacOSX port fixes. 3866 - xfrd-reload-timeout: config option. 3867 - if you set the xfrd reload timeout to -1 it will not 3868 automatically reload after a transfer. User can reload. 3869 - reload timeout is a wait period after the reload is triggered. 3870 - more verbose acl logging. Validated acls are logged in detail. 3871 Invalid acls are only logged in debug mode, level >= 1. 3872 - log message when xfrd tcp connections max out. 3873 - if unknown NSEC3 hash type (not SHA-1), disable NSEC3. 3874 - xfrd randomizes the timeouts, within 10% of original, 3875 to spread out activity. Short timeouts < 10 seconds are not 3876 affected, and will give activity bursts (on startup for example). 3877 387821 Apr 2006: Wouter 3879 - put NSEC3 code in nsec3.c and nsec3.h. 3880 - iterated_hash only adds the salt if salt_len > 0. 3881 - added some assertions and cleanups to nsec3 code. 3882 - prehash also calcs the nsec3_last domain*. 3883 - dbaccess when reading in will set the rr_type.owner value. 3884 - changed namedb_find_zone to domain_find_zone, log msgs. 3885 - implemented logic from nsec draft 05-pre2 section 5.4.1 - 5.4.8. 3886 NSEC3 responses only happen for nsd compiled with --enable-nsec3 3887 and for zones where an NSEC3 with the SOA bit set exists. 3888 - added prehash pointer to ds parent side cover for opt out. 3889 - removed dynamic plugins. Dynamic plugin support is an explicit 3890 non-requirement (under creeping featurism). 3891 - in domain table create root nsec3 ptrs are NULL. 3892 389320 Apr 2006: Wouter 3894 - Unittest of base 32 encoding. 3895 - unittest start for iterated hash. 3896 - fixed for ctrlc in debug mode. 3897 - delete zparser_conv_long, not used, not needed 3898 - nsd-xfer will display NSEC3 correctly. zonec parses. 3899 - improved usage() line from zonec, about -c none, must be -C. 3900 - base32 printed in lowercase (canonical format for DNS). 3901 - NSEC3 added prehash pointers to the namedb. 3902 - NSEC3 autodetects presence of NSEC3 in zone and parameters. 3903 390419 Apr 2006: Wouter 3905 - port fix base10 in zonec conv short from 2_2 branch to trunk. 3906 and conv byte, algo, certificate, long. 3907 - configure option to enable NSEC3 (--enable-nsec3) support. 3908 - from Ben Laurie's NSEC3 patch, loaned the parse code, 3909 base32 conversion code and iterated_hash. 3910 With some small modifications. The type rrdescriptors are 3911 indexed by value below SPF, and in 3912 rdata_wireformat_to_rdata_atoms BINARYWITHLENGTH checks 3913 for end of buffer. Also parser checks for '-' salt. 3914 Some layout (spaces after ,s). And NSEC3 define is used. 3915 strtol used for iterations is base 10. 3916 - moved rrtype descriptor table sanity check to unittest. 3917 391818 Apr 2006: Wouter 3919 - Fixed check for SOA IN, bad ntohs in the check. 3920 - minimum timeout also enforced for very low expire times. 3921 - report the actual used length of the sockaddr to sento 3922 for FreeBSD. 3923 39247 Apr 2006: Wouter 3925 - modified the kill_nsd tpkg so that it waits up to 10x5 secs 3926 for nsd to make the pid file, and it wait up to 10x5 secs for 3927 nsd to exit after the kill signal is given. 3928 - xfrd checks on startup if there is trailing garbage in the 3929 diff file, left there by a previous xfrd killed in action. 3930 It then snips off any partial parts, so service can resume. 3931 Also the difffile_skip pos is set before any partial record there. 3932 - first version of nsd-patch; reads db and ixfrs and updates zones. 3933 - moved print_rdata from nsd-xfer to rdata.h to share code. 3934 - moved print_rr from nsd-xfer to util.h to share code. 3935 39366 Apr 2006: Wouter 3937 - notify handler passes acl number that matches to xfrd. 3938 - xfrd keeps a next_master for a zone, and sets it after notify. 3939 when notified nsd will try to contact the master that sent 3940 the notify, if send from an address that is both in acl 3941 allow-notify and request-xfr. 3942 - xfrd closes its tcp and udp sockets on exit. 3943 - default names for diff file and xfrd state nicer. 3944 - fixed up kill nsd grep on ps. 3945 - fixed up race conditions in test script for kill nsd 3946 wait for pid file creation by nsd, and grep -v grep in check. 3947 - in nsd signal-flags inherited from the parent are zeroed 3948 when a server_child starts. Also the server_child switches back 3949 to NSD_RUN mode when a bad mode happens. 3950 - check if ixfrs start from the version in memory. 3951 - if IXFR/AXFR ends in a serial that is newer than the serial 3952 that was sent in an notify, update the notified serial. 3953 39545 Apr 2006: Wouter 3955 - added lowerbound for retry timeout. 3956 - added extra assertions to xfrd-tcp.c, saying that the waiting line 3957 for tcp connections must be empty if the counter is below max. 3958 - setup so that the first master tried is the first in acl list. 3959 - diff file skips OPT and TSIG RRs if they are put into the answer 3960 section. 3961 - if IXFR contains an RR to delete that does not exist, nothing 3962 happens. 3963 - update zone for NS, RRSIG also if multiple RRs in the rrset. 3964 - difffile: create zone struct also if domain exists already. 3965 - difffile: destroy temp region on error. 3966 - difffile: in delete_RR, create temp region outside of the routine, 3967 so no alloc region, destroy region for every deleted RR. 3968 - difffile: for IXFR: do not delete final SOA RR. 3969 - difffile: unknown parts in file is an error. 3970 - difffile: EOF on last packet is ignored w/o giving an error. 3971 39724 Apr 2006: Wouter 3973 - Addes EACCES to the netio dispatch error bailout. 3974 - Removed EACCESS (probably due to log_msg), error on close 3975 xfrd pipe is small, main process closes its end, and hopes for 3976 the best). 3977 - review: return on error condition in xfrd_tcp_open fixed. 3978 - review: expired when time >= expire_time, so it will not wait 3979 for the retry after expire until it will detect the expiredness. 3980 - removed duplicate lines from xfrd_handle_zone_timeout. 3981 - review: copy of uint32_t using memcpy to avoid unaligned memory 3982 accesses. 3983 - review: fd=-1 removed from set_refresh_now; only does timer. 3984 - on a tcp timeout it will retry immediately (instead of waiting 3985 another retry timeout). This means if you set refresh_now, it will 3986 interrupt a tcp-timer for a fresh retry with the next master. 3987 - put null in buffer for xfrd read state. 3988 - log msg uses string that exists instead of overwritten buffer. 3989 - read entry sets refresh depending on current time, 3990 and makes sure not to check soa contents if none provided. 3991 added explanatory comments. 3992 - EACCES back in check. 3993 - server_main first checks for terminated children, then select(). 3994 So when select is interrupted, by kill or quitting children, 3995 it will first see if it has to quit itself, before restarting 3996 the children. 3997 - destroy tempregion xfrd read on error. 3998 - check for serial existence in xfrd_handle_incoming_soa. 3999 - handle_incoming_soa uses set_timer_refresh routine. 4000 and can handle expire times < refresh times. 4001 - log msg for udp socket() error. 4002 - review: xfrd_parse_soa_info email parse uses correct buffer spot. 4003 - added a lowerbound to refresh interval (=1 second now). 4004 - upon receipt of a IXFR, if the serial is older than the notified 4005 serial, the zone stays refreshing (but the ixfr is saved). 4006 40073 Apr 2006: Wouter 4008 - Added buffer length check to internal ipc. 4009 - split out packet_read_query_section from the process_query_section 4010 routine (and moved to packet.c/h). 4011 - xfrd reads passed packet via ipc. 4012 - ported over fix to 2_2 on missing rr types by removing the 4013 duplicate RRtype array, and using rrtype_to_string. 4014 - xfrd handles notifies. immediately starts updating. 4015 - xfrd state file format fix. 4016 - removed libwrap stuff - superseded by acls. 4017 use provide-xfr: statements for your zone in the config file. 4018 updated README for this. 4019 - updated tpkg tests for axfr to use provide-xfr: 127.0.0.1 NOKEY 4020 - review: move var create to start of function (xfrd_init()). 4021 402231 Mar 2006: Wouter 4023 - zone type has a pointer to zone options. 4024 - nsd options has an rbtree to find zone options in. 4025 - nsd checks acl for incoming notifies and replies 4026 error or confirmation. 4027 - nicer layout in options.c. 4028 - updated makefile dependencies. 4029 - fixed sz for SOA_INFO ipc, which was too small. 4030 - notify is sent to server_main, server_main sends it to xfrd. 4031 403230 Mar 2006: Wouter 4033 - include: documented in manual page. 4034 - MAXINCLUDES define in one place (config.h). 4035 - configure checks for strptime in include files. 4036 - use %d instead of %zd (sparc5 machine does not get zd). 4037 - use region_strdup in configlexer. 4038 - added a check for EINVAL in dispatch - will abort 4039 on the error instead of busy hang. 4040 404129 Mar 2006: Wouter 4042 - \r for config lexer. (similar changes to zonelexer). 4043 - forward port of fix to 2_2 branch: 4044 short int in var_arg is promoted to int, according to B. Laurie. 4045 The same logic for %o, %d %x would hold for %u I think. 4046 - in XFRD, soa prim_ns and email domain names are kept in a max 4047 size buffer. 4048 - split up dname_parse into parse from string to wireformat 4049 and parse from wireformat to memoryformat, so both can be called. 4050 - split up dname_make_from_packet into reading the wireformat 4051 from the packet and the dname_make, so both can be called. 4052 - xfrd reads all soa info from incoming xfr packets. 4053 - xfrd will ignore TC bit on tcp channels. 4054 - nsd sends xfrd all soa info, including ttl and dnames. 4055 - config file now has an include: filename directive. 4056 405728 Mar 2006: Miek 4058 - forward port fixes for zone compiler and \r. svn:1926-1927 4059 - add DO bit MASK and remove the !! construct 4060 406117 Mar 2006: Wouter 4062 - according to axfr-clarify, added comments that we check 4063 more leniently on further responses on a TCP stream. 4064 406516 Mar 2006: Wouter 4066 - Fixed up SOA INFO Send routines. Send from server works. 4067 - niced up xfrd state file. 4068 - Fixed up so that after a reload it will continue in diff file 4069 where it left off. 4070 - made send of SOA info use write_socket, in case of short writes. 4071 - redesigned xfrd_tcp_read to use the same code for ipc read. 4072 - no free()s before xfrd exit. 4073 - xfrd handles incoming SOA INFO ipc packets. 4074 - removed debug, updated zones get SOA INFO sent. 4075 407615 Mar 2006: Wouter 4077 - Fixed up domain table insert, it was being used in routines 4078 that originate from nsd-xfer that do not set compression numbers 4079 correctly. 4080 - memleak fix in difffile in case of error. 4081 - difffile processing works so that NSD can read an axfr saved 4082 into the nsd.diff file. (xfrd already request and save it there). 4083 - split off xfrd tcp handling into xfrd-tcp.c. 4084 - cleaned up send_udp in xfrd, and read_state. 4085 - removed xfrd tcp_send_blocking. 4086 - xfrd sets state from ok to refresh to expired based on timeout. 4087 - xfrd sets reload timeout. 4088 - Added zone updated to keep track of zones that are changed 4089 after a reload. These zones get their information notified 4090 to xfrd. 4091 - removed unused zprintrr declaration from zonec.h 4092 - nsd sends soa information to xfrd. 4093 409414 Mar 2006: Wouter 4095 - TODO updated 4096 - worked on reload ixfr. It will add/delete RRs and zones. 4097 - xfrd receive parse of xfr messages improved. writes commit. 4098 - server compressed_dname_offsets table is increased if reload 4099 creates extra names. 4100 - difffile will create zone and apex if not there (i.e. the zone 4101 is configured but no data file provided). 4102 - bit more verbose in error message for bad diff file. 4103 - Typo fix in sample config file. 4104 410513 Mar 2006: Wouter 4106 - configure sets fseek (fgetpos/fsetpos) to use 64 bit interface 4107 with _FILE_OFFSET_BITS=64. 4108 - nsd will skip loading the .db if the DB checksum is the same. 4109 - Miek added trace test and nsd kill test. 4110 - Wouter worked on diff file c. 4111 411210 Mar 2006: Wouter 4113 - Cleanup of UDP/TCP code in XFRD. 4114 - xfrd now has tcp max connections and managing. tcp read/write. 4115 - response TC on UDP ixfr, starts TCP. 4116 - sends correct ixfr and axfr queries, a bind server answers. 4117 - made packet_skip_dname() public. 4118 - sets read/write event flags for tcp fd right. 4119 41209 Mar 2006: Wouter 4121 - Removed header from DIFF file format. CRC not that important there, 4122 you have to check the packets anyway. 4123 - cutest rbtree removed unused clean_rbtree and always_fail routines. 4124 - xfrd timeout handler, more work. Checks expire. 4125 41268 Mar 2006: Wouter 4127 - xfrd sends UDP xfr request to master(s) with timeouts, and stores 4128 returned data on disk. 4129 - updated dependencies and declaration of write_soa_buffer. 4130 41317 Mar 2006: Wouter 4132 - Fixed printfs for size_t warnings on Mac OsX. 4133 41346 Mar 2006: nsd-team 4135 * Wouter: xfrd read and write work. Statefile is "nsd.xfst". 4136 * Wouter: nsd-checkconf checks dname parse of zone name:. 4137 * Wouter: updated difffile in parser.y, production in server: clause. 4138 * Wouter: zonec now takes -C for 'no config file' option. 4139 * Wouter: updated configyyrename.h for bison 1.875d on sparc. 4140 * Miek: zonec -h and nsd -h exit with exit code = 0. 4141 * Miek & Wouter: updated tpkgs to work again. 4142 * Wouter: xfrd read handle soas, handle soa_incoming part. 4143 * Wouter: moved compare_serial() from nsd-xfer to util.h. 4144 41454 Mar 2006: Wouter 4146 - xfrd zone and soa memory structure definitions. 4147 - xfrd init zones. 4148 - xfrd read and write state file code. 4149 - option for difffile: and xfrdfile: config lines. 4150 41513 Mar 2006: Wouter 4152 - Removed double kill after reload. Only socket cmd send. 4153 - Added code to handle race condition where xfrd is restarted 4154 during a successful reload. Afterwards, the new server_main 4155 only has the old xfrd pid, new xfrd is an orphan. 4156 Solution: when xfrd closes cmd channel (i.e. it quit) 4157 unexpectedly, send sighup to all processes in the group. 4158 This should quit the orphan & all children & reload the 4159 server_main, which will fork the children and xfrd again. 4160 41612 Mar 2006: Wouter 4162 - Added nsd-checkconf.8 to makedist.sh replace list. 4163 - DIFF file format updated. 4164 - removed tsigkey->server value, it was read in, but unused. 4165 - new function to add config file keys to tsig. 4166 - nsd-checkconf checks parsing of keys. 4167 - Updated sample key file with valid keys. 4168 - added first xfrd files. xfrd is started from server_main. 4169 xfrd listens to server and server to xfrd. xfrd is restarted 4170 if it dies unexpectedly. xfrd quits when server signals it. 4171 xfrd survives nsd reloads. 4172 - nsd_options no longer global variable. 4173 41741 Mar 2006: Wouter 4175 - Nicer text in nsd.8. 4176 - nsd.c prettier code in option handling. 4177 - zonec.c code prettier in option handling, also chdir bug removed. 4178 zonec uses the zone definitions in the config file. 4179 updated zonec.8 and usage(). 4180 - nsd also chdirs to the zonedir, otherwise nsd and zonec would 4181 try to read the database: file from different directories. 4182 .(it does the chdir before the chroot call.) 4183 - new calling syntax for zonec and nsd, because of new config file. 4184 - options added acl acceptance tests (no tsig yet). 4185 - added unit test for options.c - for acl tests. 4186 - zonec removed unused vars, nsd-checkconf print arguments. 4187 - nsd-checkconf.8 manual page. 4188 418928 Feb 2006: Wouter 4190 - checked in options.h and config parser code. 4191 - also nsd-checkconf that will test a config file 4192 .(and optionally show what was read). 4193 - default identity has a spelling error. 4194 - Small fix (typo in example) to config manual page. 4195 - Added ; to configparser.y to please bison 1.75 on bsd. 4196 - Will check for blocked addresses in outgoing acls. Also ranges. 4197 - Check configuration tpkg test added. Uses checkconf. 4198 - checkconf does extra semantic tests. i.e. enable absent features. 4199 - tcpcount and servercount cannot be negative. 4200 - updated nsd.conf.5 manpage for @port syntax. 4201 - changed config parser: allows empty server: part (defaults). 4202 - made nsd.conf.sample file. 4203 - put option to configure for CONFIG_FILE nsd.conf location. 4204 Note. Already nsdc.conf exists. Both exist now. 4205 - updated makefile dependencies (gcc -MM). 4206 - getopt optstring in nsd-checkconf updated ("v" only option). 4207 - Added config .o files to nsd and zonec. This compiles. 4208 - Added commandline option -c configfile to zonec and nsd. 4209 configure defaults < configfile < commandline options in importance. 4210 421124 Feb 2006: Wouter 4212 - Added compute_crc in util.h and unit tests for it. 4213 - in cutest.tpkg the number of unit tests was hardcoded 4214 in the tpkg package. Removed the dependency, cutest exit 4215 value indicates if any failures happened. 4216 - Added crc at end of NSD-database format. Unique per db. 4217 upped db version to 7 because of this. 4218 - Tested that crcs are big/little endian correct. 4219 - Added DIFF file spec 4220 - updated tpkg213 which compares md5 on a zonefile for new format. 4221 - added nsd.conf.5 manual page with a draft contents. 4222 422322 Feb 2006: nsd-team 4224 * Miek: Changed over to Cutest testing framework. 4225 * Miek: fixed typo in netio.h 4226 * Miek: fix syntax in rbtree.c put functions on multiple lines. 4227 * Miek: unit test tpkg for cutest. 4228 * Wouter: fixed ptr bug in rbtree unit test. 4229 423017 Feb 2006: Wouter 4231 - rbtree_delete is added and works. Unit tests are there too. 4232 - Changed tail recursion in rbtree_delete to while loop. 4233 - Tagged this version as NSD_3_signalsocket_solution. 4234 It is the stable 2_2 branch with cleanups, portable, and 4235 signalhandler solution by socket communication redesign. 4236 423715 Feb 2006: nsd-team 4238 * Wouter: Fixed server_child would wait for two kill signals before quit. 4239 * Miek: don't check for port==0 pkt, just try to send them. 4240 Forward Port of 2.3. 4241 * Wouter: Removed unused, not substituted, @nsdxfer@ from Makefile.in. 4242 424314 Feb 2006: Wouter 4244 - Added unit tests for rbtree. Extensive testing of all functions. 4245 - Added tpkg unit test. 4246 - configure tests for CUnit(optional lib for unit tests). Makefile 4247 cleanup so it works on non-gmake on freebsd. 4248 424913 Feb 2006: Wouter 4250 - Removed timespec_add(current_time) in server_main, the timeout was 4251 relative, not absolute. This fixes EINVAL on the timeout on freebsd. 4252 - Added check in configure for compiler flags. Used for -Wextra. 4253 - Added check in configure for va_list definition conflict between 4254 stdio and stdarg. This happens on DEC Alpha/Debian. 4255 - removed --enable-mmap configure option. There is no mmap support 4256 in the current codebase. 4257 - renamed local prev to next in domain_next() in namedb.h. 4258 - Removed heap.h. It was not used. Heap and rbtree are mingled anyway. 4259 - in netio.c, in dispatch, it would store the next pointer 'in case 4260 the handler removes itself'. But if the handler removes that next. 4261 Then it would fail. So stored the next in struct netio. 4262 This removes a potential bug. Netio_dispatch is not reentrant. 4263 Reentry would need a list of iterator* in struct netio. 4264 - Changed process_query() to server_process_query(). It is too 4265 similar to query_process(). 4266 426710 Feb 2006: nsd-team 4268 * Wouter: Improved configure.ac to detect pselect in sys/select. 4269 The check works on freebsd(yes) and fedoracore 3 and 4 (no). 4270 I hope it also works on Solaris. 4271 Also various other prototypes were implicit: chroot, strptime, ... 4272 These are also solved. 4273 * Wouter: Checked configure on sparc5(solaris). Added check for 4274 ctime_r in time.h (for tsig.c). This conf also works on freebsd/linux. 4275 * Wouter: Updated dependencies in makefile for plugin headers. 4276 These are included only when --enable-plugins is present. 4277 * Wouter: Added a send quit over socket to kill commands in server_main, 4278 These act when the fork children fails. If the kill fails, the 4279 socket command hopefully still works. 4280 * Wouter: Put reload code into a separate function. It communicates with 4281 a socket to the old parent, and sends it a quit command. This works 4282 and terminates the old nsd. Left in the kill as a double failsafe. 4283 If the reload process dies, then the parent closes the socket. 4284 * Wouter: Separated the signal mode from the socket-determined nsd->mode. 4285 Every signal function has a variable, so that multiple signals can 4286 arrive. Only the number of signals of the same type is lost, but not 4287 important for nsd. The signals are handled in turn by the run loop. 4288 This completes the coding to remove signal race conditions: 4289 - nsd uses sockets to communicate with its subprocesses(server,reload). 4290 - signal handler routine contains no lengthy system calls. 4291 - signals cannot overwrite a previous signal. 4292 * Wouter: fixed problem where nsd->mode and mode are different in 4293 server_main. Nsd would kill the children, but then restart them again. 4294 429509 Feb 2006: nsd-team 4296 * Wouter: Updated dependencies in Makefile (regenerated them with gcc -MM). 4297 * Wouter: Used splint on the source (with settings to reduce spam.) 4298 And came to the following changes: 4299 - In util.h, make it respect HAVE_CONFIG_H and HAVE_SYSLOG_H. 4300 Also it now defines fallback values for #defines in syslog h. 4301 - Added explicit cast to (unsigned int) in snprintf in dname.c, 4302 dname_to_string routine. 4303 * Wouter: Used extra warnings during gcc compile. -Wextra -Wall 4304 -pedantic -Wbad-function-cast -Wmissing-declarations 4305 -Wmissing-prototypes -Wnested-externs -Wold-style-definition 4306 -Wstrict-prototypes -Wdeclaration-after-statement. 4307 Using -Wtraditional gives too many warnings. 4308 * Wouter: Found a problem with pselect. sys/select.h does not by default 4309 provide the pselect function definition. configure script is 4310 adjusted to test for this and enable _XOPEN_SOURCE=600 to get it. 4311 Found this using the gcc warnings. 4312 * Wouter: dname and rbtree test apps were in make clean target, but 4313 do not exist anymore. Removed from make clean target. 4314 * Wouter: in util log_file() the epoch time_t is passed to printf 4315 without an int cast. Found using extra gcc warnings. 4316 * Wouter: In server.c fixed some signed-unsigned comparisons 4317 using the extra gcc warnings. 4318 - in shutdown and int was used instead of size_t. 4319 - in server_main timeout(signed) was compared with unsigned. 4320 - unused variable in new handler functions. 4321 - in handle_child_command int i instead of size_t was used. 4322 - in zonec the process_rr routine was missing (void) as paramlist. 4323 * Wouter: Added -Wall and -Wextra when --enable-checking is enabled. 4324 * Miek: Ported over the big fat enable checking configure warning. 4325 * Wouter: fixed configure check for pselect on freebsd. 4326 432708 Feb 2006: nsd-team 4328 * Wouter: In server.c also sockets from unexpectedly dead childs are closed. 4329 * Wouter: in nsd.c and server.c cleaned out the signal handler, so that 4330 it only includes two switch/if statements and alters only the mode. 4331 No more calls to alarm(), waitpid(), write(), log_msg(). 4332 Instead the work is done in the runloop in server.c and sent by socket. 4333 Also the parent now waits for children. Parent restarts them. 4334 * Wouter: Fixup, the children will quit if the parent closes the command 4335 socket. If parent is killed, they will exit too. 4336 * Wouter: The server_main now listens to children command channels. 4337 Included timeout to check for terminated processes. 4338 Test says that new signal handler works, and child->parent comm. 4339 434007 Feb 2006: nsd-team 4341 * Miek: configure.ac version to 3.0.0 4342 * Miek: looked at: buffer.{ch}, answer.{ch}, dns.{ch} 4343 those files don't have any changes, except for dns.{ch} for the 4344 explicit compression. 4345 * Miek: looked at: zlexer.lex and zparser.y; only changes there 4346 for the database changes. 4347 * Wouter: Changed buffer in write_pid from 16 bytes to 32 bytes, 4348 this makes 64 bit numbers fit in the buffer. 4349 * Wouter: Socket connection between parent and child nsds added. 4350 But sighandler now in worse shape. Need to close them. Remove kills. 4351 * Wouter: close the parent and child command channel sockets in shutdown(). 4352