17 July 2020: Wouter 2 - Tag for 4.3.2rc1. 3 46 July 2020: Wouter 5 - Fix compile includes for xfr-inspect tool on FreeBSD. 6 - Add tpkg/run_vm.sh that runs test when in a virtual machine. 7 - Merge #112 from jaredmauch: log old and new serials when NSD 8 rejects an IXFR due to an old serial number. 9 - Fix bug034 test for vm test changes. 10 1122 June 2020: Wouter 12 - Remove errno reset behaviour from sendmmsg and recvmmsg 13 replacement functions. 14 - Fix unit test for different nsd-control-setup -h exit code. 15 1619 June 2020: Wouter 17 - Merge #108 from Nomis: Make the max-retry-time description clearer. 18 - Retry when udp send buffer is full to wait until buffer space is 19 available. 20 2118 June 2020: Wouter 22 - Do not log EAGAIN errors for sendmmsg, to stop log spam on OpenBSD. 23 2417 June 2020: Wouter 25 - Fix #107: nsd -v shows configure line, openssl version and libevent version. 26 2727 May 2020: Wouter 28 - Fix unlink of pidfile warning if not possible due to permissions, 29 nsd can display the message at high verbosity levels. 30 - Update contrib/nsd.service for chown of nsd.log and /var/log in 31 ReadWritePaths. 32 - Removed contrib/nsd.service, example is too complicated and not 33 useful. 34 3515 May 2020: Wouter 36 - Merge PR#102 from and0x000: add missing default in documentation 37 for drop-updates. 38 - Fix checkconf test for log-only-syslog option. 39 4014 May 2020: Wouter 41 - Document default value for tcp-timeout. 42 4313 May 2020: Jeroen 44 - Fix #99: Fix copying of socket properties with reuseport enabled. 45 4624 April 2020: Wouter 47 - Fix #97: EDNS unknown version: query not in response. 48 4921 April 2020: Wouter 50 - Fix #96: log-only-syslog: yes sets to only use syslog, fixes 51 that the default configuration and systemd results in duplicate 52 log messages. 53 5420 April 2020: Wouter 55 - Fix #95: Removed make test check because tpkg not included in 56 release tarballs. 57 - Fix unused parameter compile warnings. 58 5916 April 2020: Wouter 60 - Tag for 4.3.1 release and track 4.3.2 release in code repository. 61 - note sha256 digest algo use in makedist.sh. 62 - Fix for posix shell syntax for trap in nsd-control-setup. 63 - Fix to omit the listen-on lines from log at startup, unless verbose. 64 - Fix uninitialised values for bindtodevice option at startup with 65 reuseport and multiple interfaces. 66 678 April 2020: Wouter 68 - Tag for 4.3.1rc2. 69 707 April 2020: Wouter 71 - Merge PR #91 by gearnode: nsd-control-setup recreate certificates. 72 The '-r' option recreates certificates. Without it it creates them 73 if they do not exist, and does not modify them otherwise. 74 756 April 2020: Wouter 76 - Merge PR #90 by phicoh: O_CLOEXEC should be FD_CLOEXEC. 77 - Merge PR #92 by tonysgi: Fix typo. 78 792 April 2020: Wouter 80 - Tag for 4.3.1rc1. 81 821 April 2020: Wouter 83 - Fix for whitespace in minimal responses test for FreeBSD. 84 8525 March 2020: Wouter 86 - Merge PR #86 from noloader: Use precious variables for GREP, EGREP, 87 SED, AWK, LEX and YACC. 88 - For PR #86: Fix that programs loaded after CFLAGS and stuff is 89 set, specifically the compiler, so that it can work if it needs 90 special flags from that. Fix that lex only needs to support -i 91 if actually defined, otherwise the output included in the source 92 tarball can be used. 93 - Merge PR #72 from noloader: Increase Travis testing coverage 94 9523 March 2020: Wouter 96 - Fix unterminated ifdef in nsd.h. 97 - Fix unknown u_long in util.c for Issue #80 . 98 9920 March 2020: Wouter 100 - Merge PR #83 from noloader: Fix GNU HURD sched_setaffinity compile. 101 - Fix #82: print error when system does not have setaffinity. 102 - Fix #80: NetBSD and implicit declaration of reallocarray. 103 - Fix for #80: Fix reallocarray test to define before include. 104 - Fix for #80: Define alternatives for IFNAMSIZ if it does not exist. 105 10619 March 2020: Wouter 107 - Fix #76: cpuid typedef for Hurd, DragonflyBSD compile. 108 - Fix #75: configure test for sched_setaffinity, and use 109 cpuset_setaffinity otherwise. Also test for presence of sysconf. 110 - Fix #74: GNU Hurd fix cast from pointer to integer of different size. 111 - Fix for #74, #75: cpuset test for header contents and provide code. 112 - Fix #78: Fix SO_SETFIB error on FreeBSD. 113 11418 March 2020: Wouter 115 - Fix #70: error: 'fd_set' undeclared. 116 - Fix #71: error: 'for' loop initial declaration used outside C99 117 mode. 118 - Fix to move declarations out of for loops in event test too. 119 - Fix to move declarations out of for loops in popen3 test too. 120 - Another fix to move declaration out of for loop for event test. 121 - Fix to move declarations out of for loops in cutest regex display. 122 12317 March 2020: Wouter 124 - tag for 4.3.0 release and master branch has version 4.3.1. 125 12610 March 2020: Wouter 127 - repository has version number 4.3.0. Tag for 4.3.0rc1. 128 1293 March 2020: Wouter 130 - Fix that the retry wait does not exceed one day for zone transfers. 131 13227 February 2020: Wouter 133 - Fix warning on FreeBSD about pointer size cast. 134 13526 February 2020: Wouter 136 - Fixup fix of reuseport TCP for server close of sockets not used 137 by it. And the unit test skips when the necessary debug output 138 is not enabled. 139 14025 February 2020: Wouter 141 - Fix event unit test, signal has to be registered with signal_add, 142 event_add not for every backend for signals. The event_initialized 143 is not possible for every backend, so event_added variable. The 144 agent write event fires after a timeout, instead of on event write 145 so that it does not trigger a sigpipe event when the handlers stop. 146 Timeout shorted to 0.1 second. event_get_fd was not implemented, 147 so used ev_fd. Debug output printfs added to see what happens. 148 - Fix checkconf test for new drop-updates config option. 149 - Fix errors with reuseport and TCP file descriptors, it was 150 closing them for server-1 in server-2 and server-3.. 151 1527 February 2020: Jeroen 153 - Add feature to drop queries with opcode UPDATE. 154 1556 February 2020: Jeroen 156 - Support SO_BINDTODEVICE on Linux. Specify bindtodevice: yes 157 to bind sockets directly to the network interface. 158 - Support SO_SETFIB on FreeBSD. Add setfib=<FIB> after an ip-address 159 option to use the specified FIB for that socket. 160 - Require user to add servers=<range> after an ip-address option to 161 specify the servers that must listen on that socket. 162 1636 February 2020: Wouter 164 - Merge PR#60: Minor portability fixes from michaelforney, with 165 avoid pointer arithmetic on void* and avoid unnecessary VLA. 166 1674 February 2020: Wouter 168 - Merge PR#22: minimise-any: prefer polular and not large RRset, 169 from Daisuke Higashi. 170 - Fix responses for IXFR so that the authority section is not echoed 171 in the response. 172 17321 January 2020: Wouter 174 - Fix leak in server bitset setup. 175 17616 January 2020: Jeroen 177 - Add zone resource record iterator for future zone-verification port. 178 - Set FD_CLOEXEC on opened sockets. 179 - Add popen3 implementation for future zone-verification port. 180 - Add -r option to cutest so that a subset of tests can be run. 181 18215 January 2020: Jeroen 183 - Add feature to pin server proccesses to specific cpus. 184 - Add feature to pin IP addresses to selected server processes. 185 - Set process title to identify individual processes. 186 18713 January 2020: Wouter 188 - Merge pull request #59 from buddyns: add FreeBSD support 189 for conf key ip-transparent. 190 19110 January 2020: Wouter 192 - Fix unreachable code in ssl set options code. 193 - Fix bad shift in assertion code analyzer complaint. 194 1956 January 2020: Wouter 196 - Fix #56: Drop sparse TSIG signing support in NSD. 197 Sign every axfr packet with TSIG, according to the latest 198 draft-ietf-dnsop-rfc2845bis-06, Section 5.3.1. 199 20012 December 2019: Wouter 201 - Note that use-systemd is not necessary and ignored in man page. 202 20311 December 2019: Wouter 204 - Fix whitespace in nsd.conf.sample.in, patch from Paul Wouters. 205 - use-systemd is ignored in nsd.conf, when NSD is compiled with 206 libsystemd it always signals readiness, if possible. 207 2089 December 2019: Wouter 209 - Fix to define upper bounds on rr counts read from untrusted packet 210 data. 211 - Try different annotation for radix_find_prefix_node not reachable. 212 - Separate acl_addr_match_range functions for ip4 and ip6, to 213 please checkers. 214 - Avoid unused variable warning in new match_range_v4 function. 215 2166 December 2019: Wouter 217 - Fix to define max number of EDNS records we are willing to 218 spend time on. 219 - Fix size of string len and capacity type cast in udbradtree. 220 - Fix to protect rrcount in tsig_find_rr from overflow. 221 - Annotate radix_find_prefix_node not reachable trail code. 222 - Fix to protect rrcount in packet_find_notify_serial from overflow. 223 - Fix to close socket on error in create_tcp_accept_sock. 224 - Fix to log on failure to chmod for socket for remote control. 225 - Fix to remove unneeded if in open of socket for remote control. 226 - Fix to restore input parameter on call failure in create_dirs. 227 - Please checker by terminating and initialising string read 228 by remote control. 229 - Fixup of random_generate negative modulo, from previous commit, 230 and return srandom when random is used if no getrandom. 231 2325 December 2019: Wouter 233 - Fix fname null check of fname in namedb_read_zonefile. 234 - Fix implicit cast of size in udb_radnode_array_grow. 235 - Fix ignore of return value of ssl_printf in remote.c. 236 - Fix unused check of fd in parent_handle_reload_command. 237 - Fix to use getrandom() for randomness, if available. 238 - Attempt to fix signedness of nscount lookup in ixfr query_process. 239 - Fix identical branches for ssl_print of errors in remote.c. 240 - Fix type cast bounds, signedness of opt_rdlen in edns_parse_record. 241 - Fix to separate header and data lines in parse_zone_list_file. 242 2433 December 2019: Wouter 244 - Fix #52: do not log transient network full errors unless higher 245 verbosity is set. 246 - Fix checkconf test for new error output string. 247 - tag for 4.2.4rc1 release. This became the 4.2.4 release, 248 and the master branch continues with 4.2.5 in development. 249 25027 November 2017 Jeroen 251 - Fix regressions in configparser.y 252 25322 November 2019: Wouter 254 - Fix #48: Add make distclean that removes config.h made by configure. 255 And add maintainer-clean that removes bison and flex output. 256 25718 November 2019: Wouter 258 - Detect fixed time memcmp for openssl 0.9.8 compatibility. 259 - Detect EC_KEY_new_by_curve_name for openssl 0.9.8. 260 - include limits.h for UINT_MAX. 261 - If no recvmmsg, dont use msg_flags member, but errno for error, 262 where our fallback function left it, msg_flags also does not exist 263 on some systems. 264 - Remove unused variable warning for portability. 265 26614 November 2019: Wouter 267 - Fix checkconf test with filenames that sort in the same order. 268 - Tag for 4.2.3rc1. Branch master is 4.2.4 in development. 269 27011 November 2019: Wouter 271 - Fix #44: document that remote-control is a top-level nsd.conf 272 attribute. 273 - Fix compile on OSX. 274 - Fix for #44: nicer top-level clause documentation. 275 27622 October 2019: Jeroen 277 - Number of different UDP handlers has been reduced to one. recvmmsg 278 and sendmmsg implementations are now used on all platforms. 279 Compatible implementations are in place for systems that lack the 280 system calls. 281 - Socket options are now set in designated functions for easy reuse. 282 - Socket setup has been simplified for easy reuse. 283 - Configuration parser is now aware of the context in which an option 284 was specified. 285 28621 October 2019: Wouter 287 - For #21 add 288 contrib/patch_for_s6_startup_and_other_service_supervisors.diff 289 that adds support for readiness notification with READY_FD from 290 Cameron Nemo. 291 29217 October 2019: Jeroen 293 - Fix #40: Merge small fixes for confine-to-zone by Greg Bock. 294 29515 October 2019: Jeroen 296 - For #39: Merge confine-to-zone feature contributes by Greg Bock. 297 29826 September 2019: Wouter 299 - Fix #38: log address and failure reason with tls handshake errors, 300 squelches (the same as unbound) some unless high verbosity is used. 301 - Fixup clang analysis warning in xfrd_parse_received_xfr_packet 302 master dereference. 303 30425 September 2019: Wouter 305 - The nsd.conf includes are sorted ascending, for include statements 306 with a '*' from glob. 307 30816 September 2019: Wouter 309 - Fixup warnings during --disable-ipv6 compile. 310 - Fixup unit test executable to run without IPv6. 311 3124 September 2019: Wouter 313 - Fix #35: excessive logging of ixfr failures, it stops the log when 314 fallback to axfr is possible. log is enabled at high verbosity. 315 3162 September 2019: Wouter 317 - For #21: pidfile "" allows to run NSD without a pidfile, for 318 startup management tools like daemontools. 319 32028 August 2019: Wouter 321 - In tests check for tls test tool availability. 322 32319 August 2019: Wouter 324 - Tag for 4.2.2 release. Git master contains 4.2.3 in development. 325 32613 August 2019: Wouter 327 - Fix error message for out of zone data to have more information. 328 - Tag for 4.2.2rc2. 329 33012 August 2019: Wouter 331 - Fix #33: Fix segfault in service of remaining streams on exit. 332 3336 August 2019: Wouter 334 - Tag for 4.2.2rc1. 335 3365 August 2019: Wouter 337 - PR #31: nsd-control: Add missing stdio header. 338 - PR #32: tsig: Fix compilation without HAVE_SSL. 339 - Cleanup tls context on xfrd exit. 340 34131 July 2019: Wouter 342 - Fix #29: SSHFP check NULL pointer dereference. 343 - Fix #30: SSHFP check failure due to missing domain name. 344 - Fix to timeval_add in minievent for remaining second in microseconds. 345 34622 July 2019: Wouter 347 - Set timeout for refetch immediately, only spread load when there 348 are retries. 349 35019 July 2019: Wouter 351 - Set no renegotiation on the SSL context to stop client 352 session renegotiation. 353 35418 July 2019: Wouter 355 - Fix #25: NSD doesn't refresh zones after extended downtime, 356 it refreshes the old zones, with a random delay of a couple of 357 seconds to spread the load. 358 - Fix so that expired zones stay expired when server is down a 359 long time. 360 36117 July 2019: Wouter 362 - Fix that NSD warns for wrong length of the hash in SSHFP records. 363 36415 July 2019: Wouter 365 - PR #23: Fix typo in nsd.conf man-page. 366 3674 July 2019: Wouter 368 - Set version to 4.2.2 in development. 369 - clean memory on exit of nsd-checkzone for memory debug. 370 - Fix #20: CVE-2019-13207 Stack-based Buffer Overflow in the 371 dname_concatenate() function. Reported by Frederic Cambus. 372 It causes the zone parser to crash on a malformed zone file, 373 with assertions enabled, an assertion catches it. 374 - Fix #19: Out-of-bounds read caused by improper validation of 375 array index. Reported by Frederic Cambus. The zone parser 376 fails on type SIG because of mismatched definition with RRSIG. 377 3782 July 2019: Wouter 379 - Tag for 4.2.1rc1 380 38127 June 2019: Wouter 382 - Fix unit test for added options and no dot after zone updated 383 log message. 384 - Fix compile without accept4. 385 38621 June 2019: Wouter 387 - Omit remaining tcp processing if the list is empty. 388 - Fix output of nsd-checkconf -h. 389 39020 June 2019: Wouter 391 - Initialize event structures before event_set, to stop uninitialized 392 values from setting event library lists and assertions, that would 393 sometimes also show after event_del. 394 - Added num.tls and num.tls6 stat counters. 395 - PR #12: send-buffer-size, receive-buffer-size, 396 tcp-reject-overflow options for nsd.conf, from Jeroen Koekkoek. 397 - Do not use symbol from libc, instead use own replacement, if not 398 available, for accept4. 399 - Fix #14, tcp connections have 1/10 to be active and have to work 400 every second, and then they get time to complete during a reload, 401 this is a process that lingers with the old version during a version 402 update. 403 40419 June 2019: Wouter 405 - Fix tls handshake event callback function mistake, reported 406 by Mykhailo Danylenko. 407 40818 June 2019: Wouter 409 - Fix #15: crash in SSL library, initialize variables for TCP access 410 when TLS is configured. 411 41214 June 2019: Wouter 413 - Fix to init event not pointer, in reassignment. 414 41512 June 2019: Wouter 416 - Fix to init event structure for reassignment. 417 41811 June 2019: Wouter 419 - NSD 4.2.0 release. Current development is 4.2.1. 420 - Fixup of RELNOTES, corrected RFC reference for 4892. 421 - Fix #13: Stray dot at the end of some log entries, removes dot 422 after updated serial number in log entry. 423 - Fix TLS cipher selection, the previous was redundant, prefers 424 CHACHA20-POLY1305 over AESGCM and was not as readable as it could be. 425 - Consolidate server tls context create and remote control context 426 create, with hardening for the remote control tls context too. 427 4286 June 2019: Wouter 429 - NSD 4.2.0rc1 tag. 430 4314 June 2019: Wouter 432 - Fix unit test for outgoing interface to use random port numbers for 433 the outgoing interface config. 434 43529 May 2019: Wouter 436 - Fix to guard _OPENBSD_SOURCE from redefinition. 437 43828 May 2019: Wouter 439 - Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD. 440 44116 May 2019: Wouter 442 - Fix #10: Fix memory leaks caused by duplicate rr and include 443 instructions. 444 4456 May 2019: Wouter 446 - Note CII best practices badge for NSD on the README.md. 447 4482 May 2019: Wouter 449 - Fix .gitignore for unit test generated files. 450 - Fix checkconf unit test for hide-identity and tls. 451 4521 May 2019: Wouter 453 - Fix makedist.sh for use with git. 454 - Nicer output on travis for clang analysis. 455 - Add .gitignore file to exclude built files from version tracking. 456 - Add README.md file in repository with compile instructions. 457 - Fix .gitignore for dnstap files and aclocal temp. 458 - Add aclocal to README.md for pkgconfig for some configure options. 459 46025 April 2019: Wouter 461 - Add tls.tpkg unit test for DNS over TLS functionality. 462 46318 April 2019: Wouter 464 - Fix to avoid buffer alloc with global buffer in tls write handler. 465 - Fix to initialize event structure when accepting TCP connection. 466 - Use travis for build check, initial unit test and clang analysis. 467 - Disable SSLv2,3,TLSv1.0,1.1 if TLS1.2 is available in libssl. 468 - Disable weak ciphers, enable CIPHER_SERVER_PREFERENCE. 469 - further setup ssl ctx after the keys are loaded, for ECDH. 470 - TLS OCSP stapling support, enabled with tls-service-ocsp: filename, 471 patch from Andreas Schulze. 472 47317 April 2019: Wouter 474 - Fix to share openssl init code, and perform it once. 475 47616 April 2019: Andreas via Sara 477 - Patch to add support for TCP Fast Open 478 - Patch to add support for tls service on a specified tls port 479 48016 April 2019: Wouter 481 - Fix #4249: The option hide-identity: yes stops NSD from responding 482 with the hostname for chaos class queries. Implements the RFC4829 483 security considerations. 484 - Remove starttls, this signalling method was not standardized. 485 - Remove TO bit, this signalling method was not standardized. 486 - Remove unused first_query and tls_ok states. 487 - Remove sign-compare warning in tls packet send code. 488 - Fix spelling in comment and log printout. 489 - Fix potential uninitialized variable. 490 - Fix documentation for DNS over TLS, and set default port 853. 491 - Fix to add missing comment. 492 - Fix that the TLS handshake routine sets the correct event to 493 continue when done. 494 - Fix that TLS renegotiation calls the read and write routines again 495 with the same parameters when the desired event has been satisfied. 496 - Fix that TCP Fastopen has better error message and supports OSX. 497 - Fix log for fastopen with verbosity. 498 - Squelch TLS handshake failure log until verbosity 3. 499 - Add per-zone statistics for TLS queries, and dnstap for TLS queries, 500 and rcode and TCflag statistics for TCP and TLS queries. 501 50225 March 2019: Wouter 503 - Print IP address when bind socket fails with error. 504 50521 March 2019: Wouter 506 - Fix spelling error in release notes. 507 - Fix to delete unused zparser.default_apex member. 508 50919 March 2019: Wouter 510 - tag 4.1.27rc1. This became 4.1.27 on 25 March 2019 and trunk has 511 4.1.28 in development. 512 51318 March 2019: Wouter 514 - Fix unit test bug013_truncate for new truncation with EDNS size, 515 it is one RR smaller for the truncated response in the test. 516 51714 March 2019: Wouter 518 - Fixed radtree_insert memory leak. 519 - Fixed access recycled variable. 520 52111 March 2019: Wouter 522 - Fix #6: nsd-control-setup: Change validity time to a shorter 523 period (<2038). 524 - Fix unused definition in header remote.h. 525 - Fix #4236: IPV4_MINIMAL_RESPONSE_SIZE=1480 is slightly too big. 526 - Fix #4235: IP_PMTUDISC_OMIT on IPv4/UDP sockets. 527 52818 February 2019: Wouter 529 - Fix to remove unused code. 530 53115 February 2019: Wouter 532 - tentative robustness, delete stats items from list twice if needed. 533 53414 February 2019: Wouter 535 - Fix #4: setusercontext() is in libutil on NetBSD, and also 536 include login_cap.h only if it exists. 537 - Fix #4215: fixup for state update for TSIG information in server 538 processes, nicer printout for tsig_print, tsig_print without 539 arguments and no leaks. 540 - nicer logging for update_tsig. 541 5421 February 2019: Wouter 543 - Fix for tsig assoc_tsig command on acl with nokey elements. 544 54529 January 2019: Wouter 546 - Fix #4215: on-the-fly change of TSIG keys with patch from Igor, adds 547 nsd-control print_tsig, update_tsig, add_tsig, assoc_tsig 548 and del_tsig. These changes are gone after reload, edit the 549 config file (or a file included from it) to make changes that 550 last after restart. 551 - documentation for tsig nsd-control options. 552 55324 January 2019: Wouter 554 - Deny ANY with only one RR in response, by default. Patch from 555 Daisuke Higashi. The deny-any statement in nsd.conf sets ANY 556 queries over UDP to be further moved to TCP as well. 557 Also no additional section processig for type ANY, reducing 558 the response size. 559 - assertions for clang analysis. 560 56110 December 2018: Wouter 562 - Fix for FreeBSD port with dnstap enabled. 563 5646 December 2018: Wouter 565 - Fix to reduce region_log_stats if condition, this removes a 566 debug statement. 567 5685 December 2018: Wouter 569 - Fix #4213: disable-ipv6 and dnstap compile error. 570 5713 December 2018: Wouter 572 - Note that the content_list member is unused; and could be removed 573 if the database format is modified or updated. 574 - Fix that dnstap logs CQ and CR like BIND does. 575 - Revert that, it looks wrong, AQ and AR are for the authoritative. 576 57729 November 2018: Wouter 578 - Tag for 4.1.26rc1. Which became 4.1.26 on 4 dec 2018. 579 Trunk has 4.1.27 in development. 580 - Fix clang analysis warning on null in closest encloser for wildcard 581 denial nsec. 582 - Fix clang analysis warnings. 583 58427 November 2018: Wouter 585 - Fix parsezone failure in 4194 fix. 586 58726 November 2018: Wouter 588 - Fix to not set GLOB_NOSORT so the nsd.conf include: files are 589 sorted and in a predictable order. 590 - Added nsd-control changezone. nsd-control changezone name pattern 591 allows the change of a zone pattern option without downtime for 592 the zone, in one operation. 593 - Fix #3433: document that reconfig does not change per-zone stats. 594 59520 November 2018: Wouter 596 - Fix #4205: enable-recvmmsg in mixed IPv4/IPv6 environment fails. 597 This sets the msg_hdr.msg_namelen correctly after receipt. 598 59919 November 2018: Wouter 600 - Support SO_REUSEPORT_LB in FreeBSD 12 with the reuseport: yes 601 option in nsd.conf. 602 - Fix #4202: nsd-control delzone incorrect exit code on error. 603 - Tab style fix to use tab for 8 spaces, from Xiaobo Liu. 604 60525 October 2018: Wouter 606 - Adjust dnstap socket path for chroot. 607 60822 October 2018: Wouter 609 - Fix #4194: Zone file parser derailed by non-FQDN names in RHS of 610 DNSSEC RRs. 611 - Fix some more, neater code and checks for domain length limit. 612 - check that the dnstap socket file can be opened and exists, print 613 error if not. 614 6154 October 2018: Wouter 616 - dnstap work, the dnstap.proto is a copy of the file from Unbound, 617 also dnstap.m4 configure include file. 618 - dnstap collector: free eventbase and memclean nicer. 619 - dnstap collector: send data and read it in collector. 620 - dnstap/dnstap.c and .h from Unbound's contribution from 621 Farsight Security, added to then adapt it for dnstap logging in NSD. 622 - dnstap.c with auth query and auth response, and called from 623 the collector. 624 - dnstap work, config nsd.conf parse. 625 - dnstap example config. 626 62725 September 2018: Wouter 628 - NSD 4.1.25 released, trunk has 4.1.26 in development. 629 63018 September 2018: Wouter 631 - tag for NSD 4.1.25rc1. 632 63317 September 2018: Wouter 634 - Fix #4156: Fix systemd service manager state change notification 635 63614 September 2018: Wouter 637 - Remove unused if clause during server service startup. 638 63913 September 2018: Wouter 640 - Fix typo in clang analysis test. 641 - Annotate exit functions with noreturn. 642 - nsd-control prints neater errors for file failures. 643 64412 September 2018: Wouter 645 - clang analysis test. 646 64711 September 2018: Wouter 648 - Fix to combine the same error function into one, from Xiaobo Liu. 649 - Fix initialisation in remote.c. 650 - please clang analyzer and fix parse of IPSECKEY with bad gateway. 651 - Fix unit test code for clang analyzer. 652 - Fix nsd-checkconf fail on bad zone name. 653 65410 September 2018: Wouter 655 - Fix coding style in nsd.c 656 6577 September 2018: Wouter 658 - append_trailing_slash has one implementation and is not repeated 659 differently. 660 6614 September 2018: Wouter 662 - Fix codingstyle in nsd-checkconf.c in patch from Sharp Liu. 663 66415 August 2018: Wouter 665 - Fix use_systemd typo/leftover in remote.c. 666 66713 August 2018: Wouter 668 - tag for 4.1.24 release. 669 - trunk is 4.1.25 in development. 670 - Fix that nsec3 precompile deletion happens before the RRs of 671 the zone are deleted. 672 - Fix printout of accepted remote control connection for unix sockets. 673 6746 August 2018: Wouter 675 - tag for 4.1.24rc1 release. 676 67730 July 2018: Wouter 678 - Tag for NSD 4.1.23 release, trunk is 4.1.24, includes 679 fix NSD time sensitive TSIG compare vulnerability. 680 - Fix checkconf test for use-systemd option. 681 68225 July 2018: Wouter 683 - #4133: Fix that when IXFR contains a zone with broken NSEC3PARAM 684 chain, NSD leniently attempts to find a working NSEC3PARAM. 685 68623 July 2018: Wouter 687 - Remove socket activation from systemd code, it was reported as 688 not useful to enable. The readiness signalling is still there, 689 and can be enabled with use-systemd: yes. 690 - Only call sd_notify from systemd when use-systemd is yes. 691 6926 July 2018: Wouter 693 - RFC8162 support, for record type SMIMEA. 694 - Fix that type CAA (and URI) in the zone file can contain 695 dots when not in quotes. 696 69726 June 2018: Wouter 698 - configure --enable-systemd (needs pkg-config and libsystemd) can 699 be used to then use-systemd: yes in nsd.conf and use socket 700 activation and readiness signalling with systemd. 701 70219 June 2018: Wouter 703 - #4106: Fix that stats printed from nsd-control are recast from 704 unsigned long to unsigned (remote.c). 705 70614 June 2018: Wouter 707 - Fix that first control-interface determines if TLS is used. Warn 708 when IP address interfaces are used without TLS. 709 71012 June 2018: Wouter 711 - #4102: control interface via local socket. 712 configure it with control-interface: "/path/nsd.ctl" The path 713 has to start with a / to separate it from an IP address. 714 The local socket does not use SSL, but unencrypted traffic, use 715 file and containing directory permissions to restrict access. 716 7176 June 2018: Wouter 718 - Patch to fix openwrt for mac os build darwin detection in configure. 719 7204 June 2018: Wouter 721 - tag for 4.1.22rc1. Became 4.1.22 on 11 June, trunk is 4.1.23 in 722 development from this point. 723 72431 May 2018: Wouter 725 - Fix to use same condition for nsec3 hash allocation and free. 726 72723 May 2018: Wouter 728 - Use accept4 to speed up answer of TCP queries, on Linux and FreeBSD 729 and OpenBSD. 730 73122 May 2018: Wouter 732 - Fix nsec3 hash of parent and child co-hosted nsec3 enabled zones. 733 73415 May 2018: Wouter 735 - Fix memory free in unit test. 736 73714 May 2018: Wouter 738 - Tag for 4.1.21 release. 739 - trunk has 4.1.22 in development. 740 - refuse-any sends truncation (+TC) in reply to ANY queries over UDP, 741 and allows TCP queries like normal. 742 7437 May 2018: Wouter 744 - Tag for 4.1.21rc1 release. 745 7464 May 2018: Wouter 747 - Fix #4093: Release notes not using 2018. 748 7493 May 2018: Wouter 750 - Fix buffer size warnings from compiler on filename lengths. 751 75226 April 2018: Wouter 753 - lower memory usage for tcp connections, so tcp-count can be higher. 754 - Fix checkconf test for refuse-any option. 755 7563 April 2018: Wouter 757 - refuse-any nsd.conf option that refuses queries of type ANY. 758 7595 March 2018: Wouter 760 - Fix #3562: explain build error when flex missing. 761 76220 February 2018: Wouter 763 - For more clang warnings 764 - Fix spelling error in xfr-inspect. 765 76619 February 2018: Wouter 767 - Fix for clang analysis complaints. 768 76915 February 2018: Wouter 770 - --enable-memclean cleans up memory for use with memory checkers, 771 eg. valgrind. 772 - Fix unused variable warnings from clang analyzer. 773 77414 February 2018: Wouter 775 - updated RELNOTES for upcoming release. 776 - tag 4.1.20rc1, became release on 20 feb, trunk has 4.1.21 in 777 development. 778 7799 February 2018: Wouter 780 - make depend: updated the make dependencies in the Makefile. 781 7828 February 2018: Wouter 783 - Fix memory leak when rehashing nsec3 after axfr or zonefile read, 784 in the selectively allocated precompiled nsec3 hashes. 785 7866 February 2018: Wouter 787 - Fix memory leak in zone file read of unknown rr formatted RRs. 788 78911 December 2017: Wouter 790 - Add test for support of -Wno-address-of-packed-member for 791 --enable-packed. 792 - tag for release 4.1.19 793 - trunk has 4.1.20 in development. 794 7958 December 2017: Wouter 796 - tag for 4.1.19rc1 797 7987 December 2017: Wouter 799 - Fixup lexer warning for gcc 4.2. 800 8016 December 2017: Wouter 802 - Fix 3392: Fix regression in 4.1.18 for notify lists with ip4 803 and ip6 targets. 804 8055 December 2017: Wouter 806 - Fix spelling error in xfr-inspect. 807 8081 December 2017: Wouter 809 - Fix warnings emitted by clang for --enable-packed. Alignment is not 810 a problem for x86_64, don't enable packed when the platform 811 requires aligned access. 812 81330 November 2017: Wouter 814 - tag for 4.1.18 release. 815 - trunk has 4.1.19 in development. 816 - ignore fallthrough compiler warning in flex EOF rule. 817 81827 November 2017: Wouter 819 - Fix crash for DS query when parent and child zones both configured 820 in nsd.conf and parent zone has not loaded properly. 821 - tag for 4.1.18rc2. 822 82316 November 2017: Wouter 824 - tag for 4.1.18rc1. 825 82614 November 2017: Wouter 827 - Fix #2871: Increase number of sockets for xfrd transfers. 828 8296 November 2017: Wouter 830 - Set usage counts in namedb tree to uint32 to save memory. 831 - Fix up debug content from nsec3 collision printout work. 832 8332 November 2016: Wouter 834 - make ip-transparent option work on OpenBSD. 835 83611 October 2016: Wouter 837 - Fix #1567: Change crit to err log level for gettimeofday failure. 838 Add defines for compile without syslog. 839 8409 October 2016: Wouter 841 - Fix collision printout of nsec3 to print name, hash and reverse. 842 8432 October 2016: Wouter 844 - nsd-control zonestatus prints wait time between attempts, for zones 845 that are in that waiting time. 846 84719 September 2016: Wouter 848 - merges feature branch branches/alloced_prehashes into trunk. 849 85018 September 2016: Wouter 851 - Fix #1446: A corrupted zone file "propagates" to good ones. 852 85314 September 2016: Wouter 854 - Fix layout in xfrd.c. 855 8566 September 2017: Willem 857 - Save memory by selectively allocate precompiled nsec3 hashes 858 85929 August 2016: Wouter 860 - With --enable-packed save memory, at expense of unaligned reads. 861 - Fix writev compile warning on FreeBSD. 862 86325 July 2016: Wouter 864 - NSD sends up to 16 notifies simultaneously for up to 64 zones, 865 to increase rate of notification for large master configurations. 866 86724 July 2016: Wouter 868 - Fix gcc 7.1.1 warnings. 869 87017 July 2016: Wouter 871 - Trunk has 4.1.18 872 - xfr-inspect is part of source dir, but not made or installed by 873 default. 874 - retry timeout between sending notifies dropped from 15 to 3 sec. 875 87613 July 2016: Wouter 877 - tag 4.1.17rc1, and that became the 4.1.17 release on 21 July 2017. 878 87929 June 2016: Wouter 880 - make depend. 881 88226 June 2016: Wouter 883 - Fix text format of deletes for CDS and CDNSKEY, single 0 to represent 884 empty base64 or hex string. 885 88623 June 2016: Wouter 887 - Fix potential null pointer in nsec3 adjustment tree. 888 88915 June 2016: Wouter 890 - xfr-inspect debug tool prints out xfr contents of files in tmp. 891 8926 June 2016: Wouter 893 - Fix #1272: use writev to put tcp length field with data for outgoing 894 zone transfer requests. 895 89616 May 2016: Wouter 897 - zone parser parses type AVC (it has TXT format). 898 89925 April 2016: Wouter 900 - 4.1.16 release tag. 901 - trunk contains 4.1.17 in development. 902 90311 April 2016: Wouter 904 - 4.1.16 rc1 tag for release. 905 - minor manpage fix. 906 9075 April 2016: Wouter 908 - Patch for expire state in multi-master when masters includes 909 broken master. 910 91127 March 2016: Wouter 912 - Fix 1243: Option to make NSD emit really minimal responses, 913 minimal-responses: yes in nsd.conf. 914 - but they give additional information for priming queries (type NS). 915 9166 March 2016: Wouter 917 - Fix 1228: OpenSSL include is not guarded with HAVE_SSL 918 91928 February 2016: Wouter 920 - Printout serial error with hint it may be too big. 921 92220 February 2016: Wouter 923 - Fix missing _t to _type conversion for disable-radix-tree option. 924 92515 February 2016: Wouter 926 - zone parser can parse acronyms for algorithms ED25519 and ED448. 927 92813 February 2016: Wouter 929 - Calculate new udb index after growing the array, fix from 930 Chaofeng Liu. 931 9327 February 2016: Wouter 933 - tag for 4.1.15 rc1. Which became 4.1.15 on 16 Feb. Trunk 4.1.16. 934 93519 January 2016: Wouter 936 - Fix to rename _t typedefs because POSIX reserves them. 937 9383 January 2016: Wouter 939 - Fix #1195: Fix so that NSD fails on non-compliant values for Serial. 940 94114 December 2016: Wouter 942 - Squelch zone transfer error address family not supported by protocol 943 at low verbosity levels. 944 94513 December 2016: Wouter 946 - Fix nsd-control and ipv6 only. 947 9488 December 2016: Wouter 949 - tag 4.1.14 950 - trunk contains 4.1.15 in development. 951 9521 December 2016: Wouter 953 - Fix restart of zone transfers when new config becomes available. 954 - tag 4.1.14rc1 955 95625 October 2016: Wouter 957 - Fix #1132 for SERVFAIL zones perform backoff, and remembers the 958 timeout on next startup. 959 - Save backoff timeout into xfrd.state file, this file has a higher 960 version number now. Old files are skipped silently (causes 961 refresh) and created as new files upon exit. 962 - Set number of rounds to 1; NSD will try every master once, then 963 wait for timeout or notify. 964 - Fix axfr fallback for rounds to 1. 965 96620 October 2016: Wouter 967 - suppress compile warning in lex files. 968 96918 October 2016: Wouter 970 - Robust fix against missing master in tcp_open for xfrd. 971 - More in depth fix for the previous. 972 - Fix wildcards in include: config statements with chroot enabled. 973 97427 September 2016: Wouter 975 - NSD 4.1.13 tag. 976 - trunk has 4.1.14 in development. 977 - Fix null memcpy for radixtree with single link element. 978 97919 September 2016: Wouter 980 - Review comments Ralph: wrapped long lines and nicer example conf. 981 98216 September 2016: Wouter 983 - NSD 4.1.13rc1 tag. 984 98515 September 2016: Wouter 986 - Test for openssl init_crypto and init_ssl functions. 987 98814 September 2016: Ralph 989 - Fix OPENSSL_INIT_ADD_ALL_DIGESTS compatibility check 990 99113 September 2016: Wouter 992 - Fix double const in dname_const() function. 993 - Silenced flex-generated sign-unsigned warning print with gcc 994 diagnostic pragma. 995 9968 September 2016: Wouter 997 - more extensible edns option handling. 998 9992 September 2016: Wouter 1000 - Release of 4.1.12; trunk is 4.1.13 and the patch for 4.1.12 (that 1001 does not contain the other changes to the trunk) is folded into 1002 the trunk. 1003 - Fix #827: fix compile with openssl 1.1.0 with api=1.1.0. 1004 100525 August 2016: Wouter 1006 - Fix multimaster for not tried full zone transfer for a expired zone. 1007 - Explain --disable-radix tree uses some more CPU. 1008 100922 August 2016: Wouter 1010 - Fix README spelling error of BSD license (reported by Joerg Jung). 1011 101219 August 2016: Wouter 1013 - for type SRV add A/AAAA to the additional section (if possible), 1014 just like we already do for type MX. 1015 101617 August 2016: Wouter 1017 - Add robustness against unallocated data in nsec3 trees. 1018 101916 August 2016: Wouter 1020 - configure --disable-radix-tree for about 15% lower memory usage. 1021 102212 August 2016: Wouter 1023 - Fix #817: xfrd update failed loop. 1024 10259 August 2016: Wouter 1026 - Can config key algorithms with the digest name, eg. 'sha256'. 1027 - default tsig algorithm is sha256. 1028 - Fix typo in log output, 'transfered' -> 'transferred'. 1029 - Fix compile warnings about signcompare in minmax retrytime. 1030 10318 August 2016: Wouter 1032 - Support syntax of RR type OPENPGPKEY from RFC 7929. 1033 10345 August 2016: Wouter 1035 - multi-master-check: yes can be used to check all masters for the 1036 last version, using the higher version from the configured masters, 1037 from Manabu Sonoda. 1038 - small fixups on patch. And fix spacing and remove configure flag. 1039 - Fix #812: make depend fails after distribution. 1040 10412 August 2016: Wouter 1042 - Fix unused result warnings from write and strtol. 1043 10441 August 2016: Wouter 1045 - Tag 4.1.11rc1. 1046 - Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut. 1047 - Tag 4.1.11rc2. 1048 - trunk is 4.1.12 in development. 1049 10508 July 2016: Wouter 1051 - Note down tracking numbers for issue JVN#63359718 JPCERT#91251865. 1052 10535 July 2016: Wouter 1054 - Fix #790: size-limit-xfr can stop NSD from downloading infinite zone 1055 transfer data size, from Toshifumi Sakaguchi. 1056 105727 June 2016: Wouter 1058 - Set default for min-refresh-time and min-retry-time to 0. Behaves 1059 just like before, but has a configurable option in nsd.conf. 1060 - Fix #783: Trying to run a root server without having configured it 1061 silently gives wrong answers. 1062 106316 June 2016: Wouter 1064 - When tcp is more than half full, use short timeout for tcp session. 1065 - Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori. 1066 - man page entries for max-refresh-time patch. 1067 106815 June 2016: Wouter 1069 - Fix build without IPv6, patch from Zdenek Kaspar. 1070 107114 June 2016: Wouter 1072 - release 4.1.10 and tag for that. 1073 - trunk has 4.1.11 in development. 1074 10757 June 2016: Wouter 1076 - Fix NSEC3 ent fix to use closest encloser, not wildcard denial. 1077 10782 June 2016: Wouter 1079 - Fix for NSEC3 with zone signed without exact match for empty 1080 nonterminals, the answer for that domain gets wildcard denial. 1081 - #772 Document that recvmmsg has IPv6 problems on some linux kernels. 1082 - tag for 4.1.10rc1. 1083 108431 May 2016: Wouter 1085 - print notice that nsd is starting before taking off. 1086 108720 May 2016: Wouter 1088 - Updated fix for nonterminal nsec3 answers. 1089 109019 May 2016: Wouter 1091 - Fix empty nonterminal nsec3 cover answers. 1092 109312 May 2016: Wouter 1094 - NSD includes AAAA before A for queries over IPV6 (in delegations). 1095 And TC is set if no glue can be provided with a delegation because 1096 of packet size. 1097 109819 April 2016: Wouter 1099 - Fix #755: NSD spins after a zone update and a lot of TCP queries. 1100 11017 April 2016: Wouter 1102 - If set without nsd.db print "" as the default in the man pages. 1103 11044 April 2016: Wouter 1105 - Fix #751: NSD fails to occlude names below a DNAME. 1106 110724 March 2016: Wouter 1108 - Fix for openssl 1.1.0, HMAC_CTX size not exported from openssl. 1109 111021 March 2016: Wouter 1111 - Update acx_nlnetlabs.m4 to version 33 with HMAC_Update test. 1112 - acx_nlnetlabs.m4 to v34, with -ldl -pthread test for libcrypto. 1113 111415 March 2016: Wouter 1115 - ip-freebind: yesno option in nsd.conf sets IP_FREEBIND socket option 1116 for Linux, binds to interfaces and addresses that are down. 1117 - Change the nsd.db file version because of nanosecond precision fix. 1118 - 4.1.9 release with the nsd.db file version fix (but not freebind), 1119 trunk contains 4.1.10 in development. 1120 112110 March 2016: Wouter 1122 - Tag 4.1.8 1123 - Trunk contains 4.1.9 in development. 1124 11252 March 2016: Wouter 1126 - Tag 4.1.8rc1 1127 11281 March 2016: Wouter 1129 - #744: Fix that NSD replies for configured but unloaded zone 1130 with SERVFAIL, not REFUSED. 1131 113216 February 2016: Wouter 1133 - RR type CSYNC (RFC7477) syntax is supported. 1134 113529 January 2016: Wouter 1136 - #739: zonefile changes when mtime is small are detected on reload, 1137 if filesystem supports precision mtime values. 1138 113919 January 2016: Wouter 1140 - Fix #736: segfault during zone transfer. 1141 114208 January 2016: Wouter 1143 - Define _DEFAULT_SOURCE with _BSD_SOURCE for recent Linuxes. 1144 114505 January 2016: Wouter 1146 - #732: tcp-mss, outgoing-tcp-mss options for nsd.conf, patch 1147 from Daisuke Higashi. 1148 114904 January 2016: Wouter 1150 - Updated acx_nlnetlabs to version 32. 1151 115211 December 2015: Wouter 1153 - Fix flto check for OSX clang. 1154 115510 December 2015: Wouter 1156 - 4.1.7 release 1157 - trunk has 4.1.8 in development. 1158 - take advantage of arc4random_uniform if available, patch from 1159 Loganaden Velvindron. 1160 11613 December 2015: Wouter 1162 - tag for 4.1.7rc1 prerelease. 1163 11642 December 2015: Wouter 1165 - configure --enable-ratelimit-default-is-off with --enable-ratelimit 1166 to set the default ratelimit to disabled but available in nsd.conf. 1167 - Document that ratelimit qps and slip are updated in reconfig. 1168 - version: "string" option to set chaos version query reply string. 1169 - Fix up defaults in manpage. 1170 11711 December 2015: Wouter 1172 - Explain rrl-slip better in documentation. 1173 117430 November 2015: Wouter 1175 - Fix TCP responses when REUSEPORT is in use by turning it off. 1176 - reuseport: no is the default, because the feature is not troublefree. 1177 - Document default in manpage for rrl-slip, ip4 and 6 prefixlength. 1178 117924 November 2015: Wouter 1180 - Fix zonec ttl mismatch printout to include more information. 1181 118218 November 2015: Wouter 1183 - RELNOTES more descriptive. 1184 - newer acx_nlnetlabs.m4. 1185 - spelling fixes from Igor Sobrado Delgado. 1186 118717 November 2015: Wouter 1188 - Fix #721: Fix wrong error code (FORMERR) returned for unknown 1189 opcode. NOTIMP expected. 1190 119116 November 2015: Wouter 1192 - Allocate less memory for TSIG digest. 1193 11946 November 2015: Wouter 1195 - Fixup for newer acx_nlnetlabs.m4, test for openssl version after 1196 testing for libdl need. 1197 11985 November 2015: Wouter 1199 - newer acx_nlnetlabs.m4, does not needlessly link with -ldl. 1200 120130 October 2015: Wouter 1202 - Fix tpkg tests for portability. 1203 120429 October 2015: Wouter 1205 - patch from Doug Hogan for SSL_OP_NO_SSLvx options. 1206 - updated contrib/nsd.spec, from Bálint Szigeti. 1207 - support configure --with-dbfile="" for nodb mode by default, where 1208 there is no binary database, but nsd reads and writes zonefiles. 1209 121027 October 2015: Wouter 1211 - portability fixes. 1212 121326 October 2015: Wouter 1214 - Init pfd for handlers added during handler-event-walk. 1215 121623 October 2015: Wouter 1217 - Fix many interfaces and zones updates from nsd parent event loop. 1218 121922 October 2015: Wouter 1220 - 4.1.6 release tag. 1221 - trunk contain 4.1.7 in development. 1222 122320 October 2015: Wouter 1224 - 4.1.6rc2 tag created. 1225 122619 October 2015: Wouter 1227 - Fix compile of zonec error message on FreeBSD. 1228 122915 October 2015: Wouter 1230 - 4.1.6rc1 tag created. 1231 123213 October 2015: Wouter 1233 - nsd-checkconf warns for master zones with no zonefile statement. 1234 - Fix start failure when many file descriptors are in use. 1235 - The servfail rcode is not printed with a space in the middle. 1236 - fixup file descriptor fixup nicer. 1237 - print failed token for config syntax error or parse error. 1238 123912 October 2015: Wouter 1240 - Fix #711: Document that debug-mode yes is used for staying 1241 attached to the supervisor console. 1242 - Document verbosity 3 prints more information. 1243 124430 September 2015: Wouter 1245 - makedist.sh print on pgp signature creation. 1246 124728 September 2015: Wouter 1248 - Fix typo in zonec.c inside error message. 1249 125024 September 2015: Wouter 1251 - Fix #701: Fix that AD=1 set in a BADVERS response. 1252 125321 September 2015: Wouter 1254 - Fix #706: default port 53 not opened on ip4 because of getaddrinfo 1255 hints initialisation failure. 1256 - 4.1.5 release tag 1257 - trunk contains 4.1.6 in development. 1258 12599 September 2015: Wouter 1260 - 4.1.4 release tag created. 1261 - trunk contains 4.1.5 in development. 1262 126331 August 2015: Wouter 1264 - 4.1.4rc1 tag created. 1265 126628 August 2015: Wouter 1267 - Fix #698 formatting errors and typos in nsd.8.in. 1268 - Add --enable-pie and --enable-relro-now options. 1269 127018 August 2015: Wouter 1271 - Admitted axfrs are logged at verbosity 1. Refused at verbosity 2. 1272 127317 August 2015: Wouter 1274 - Fixed checkconf test for reuseport setting. 1275 127614 August 2015: Wouter 1277 - SO_REUSEPORT does not work on FreeBSD. Enabled by default on Linux, 1278 not enabled by default on other OSes. 1279 12805 August 2015: Wouter 1281 - Fix that notify from nsd-control contains soa serial. 1282 12833 August 2015: Wouter 1284 - squelch SO_REUSEPORT failure on verbosity less than 3. 1285 128631 July 2015: Wouter 1287 - removed hardcoded interface limit, --with-max-ips removed. 1288 - SO_REUSEPORT support. 1289 129016 July 2015: Wouter 1291 - Fix #618: documented need to list ip-addresses separately in 1292 nsd.conf if there are multiple, because the source address of 1293 replies can otherwise go wrong. 1294 129510 July 2015: Wouter 1296 - Fix that for expired zones NSD performs an AXFR and accepts newer 1297 and older serial numbers. 1298 - Document that minimal responses only minimizes responses to fit 1299 in one datagram. It does not minimize smaller responses. 1300 13012 July 2015: Wouter 1302 - Fix NSID response for short edns sizes. 1303 130423 June 2015: Wouter 1305 - Trunk contains 4.1.4 in development. 1306 13074 June 2015: Wouter 1308 - Tag 4.1.3rc1 1309 - improve nsd-control usage text. (23 june - added to 4.1.3) 1310 - RFC7553 RR Type URI support. 1311 13122 June 2015: Wouter 1313 - Fix redefined macro lex warning for freebsd flex. 1314 131529 May 2015: Wouter 1316 - Fix that formerrors are ratelimited. 1317 131819 May 2015: Wouter 1319 - max-interfaces raised to 32. 1320 132118 May 2015: Wouter 1322 - removed unused defines for unofficial tsig-hmac algorithm codes. 1323 The TSIG algorithm is identified by name in the config file. 1324 132514 May 2015: Wouter 1326 - hmac sha224, sha384 and sha512 support, patch from David Gwynne. 1327 132823 April 2015: Wouter 1329 - Fix crash in zone parser for relative dname after error in origin. 1330 - Test for zone parser failures 1331 133221 April 2015: Wouter 1333 - nsd-control addzones and delzones read list of zones from stdin. 1334 - Fix task and zonestat files to be stored in a subdirectory in tmp 1335 to stop privilege elevation. 1336 - printout names for successful addition and removal with bulk command. 1337 133820 April 2015: Wouter 1339 - Fix #665: when removing subdomain, nsd does not reparse parent zone. 1340 134114 April 2015: Wouter 1342 - trunk contains 4.1.3(upcoming). 1343 13447 April 2015: Wouter 1345 - Tag 4.1.2rc2. 1346 13472 April 2015: Wouter 1348 - Made log message more consistent, changed 'axfr refused' log message 1349 to be more consistent with other messages. Also notify refused. 1350 - verbosity 2 logs axfr refused and notify refused. 1351 verbosity 1 contains less log messages. 1352 135331 March 2015: Wouter 1354 - Tag 4.1.2rc1. 1355 135624 March 2015: Wouter 1357 - Fix #654: Fix contradiction in notify logging verbosity level. 1358 - Incoming notifies have serial number logged (at verbosity 1). 1359 - Fix #655: Fix contradiction in verbosity for zone transfers. 1360 136117 March 2015: Wouter 1362 - Use reallocarray for integer overflow protection, patch submitted 1363 by Loganaden Velvindron. 1364 - Fix allocation integer overflow checks. 1365 136613 March 2015: Wouter 1367 - Fix buffer overflow in config parse of domain name, 1368 reported by John Van de Meulebrouck Brendgard. 1369 137012 March 2015: Wouter 1371 - Updated default keylength in nsd-control-setup to 3k. 1372 137310 March 2015: Wouter 1374 - Fix use after free after zonefile syntax error followed by ttl 1375 or origin directive, reported by John Van de Meulebrouck Brendgard. 1376 - Fix syntax error followed by too many TXT elements parse crash 1377 reported by John Van de Meulebrouck Brendgard. 1378 13799 March 2015: Wouter 1380 - Fix origin directive from unused old value and subdomain parser 1381 failure, reported by John Van de Meulebrouck Brendgard. 1382 13832 March 2015: Wouter 1384 - Fix b64pton out of bounds error on invalid zonefile input 1385 reported by John Van de Meulebrouck Brendgard. 1386 138720 February 2015: Wouter 1388 - Fix segfault on double origin in zone reader (thanks John Van de 1389 Meulebrouck Brendgard). 1390 139119 February 2015: Wouter 1392 - Remove dead code domain_table_iterate. 1393 - Fix segfault in zone reader on invalid input 1394 reported by John Van de Meulebrouck Brendgard. 1395 13965 February 2015: Wouter 1397 - Fix #642: Change 'zone read with no errors' to '.. with success'. 1398 Patch from Benedikt Heine. 1399 14003 February 2015: Wouter 1401 - Tag 4.1.1 release 1402 - Trunk is 4.1.2 in development. 1403 - Remove some duplicate header includes (from Brad Smith). 1404 - Fix tcp waiting list for zone transfers where the bind and connect 1405 calls fail. 1406 140729 January 2015: Wouter 1408 - Fix zonesdir chroot error message. 1409 141028 January 2015: Wouter 1411 - correct some hyphen-used-as-minus-sign (from Andreas Schulze) in 1412 man pages. 1413 141427 January 2015: Wouter 1415 - Tag 4.1.1rc1 1416 141721 January 2015: Wouter 1418 - Synthesize CNAMEs with same TTL as DNAME. 1419 142012 January 2015: Wouter 1421 - Fix casts for ctype functions (from Todd Miller). 1422 - nsd-checkconf -f prints out full name of pidfile (with dir). 1423 14249 January 2015: Wouter 1425 - Fix bug#637: fix that nsd.db grows limitlessly, an off by one 1426 on one megabyte free chunks, created during AXFRs of large zones, 1427 that caused the one megabyte chunk to be leaked. 1428 - Fix udb-inspect for one megabyte chunks, counts and statistics. 1429 14306 January 2015: Wouter 1431 - Fix spinning NSD with lots of failing transfers, due to pointer 1432 comparison using void pointer subtraction (from Otto Moerbeek). 1433 14345 January 2015: Wouter 1435 - Patch nsd_munin_ from Philip Paeps to use type ABSOLUTE. 1436 14374 Nov 2014: Wouter 1438 - Document zonestat config, and nsd-checkconf access. 1439 14403 Nov 2014: Wouter 1441 - Fix that failure to add tcp to tcp base does not leak the socket. 1442 144327 Oct 2014: Wouter 1444 - Disabled use of SSLv3 in nsd-control. 1445 - zonestats are cleared (or not, with stats_noreset). 1446 144722 Oct 2014: Wouter 1448 - Test for wildcard fix (from 3.2). 1449 145016 Oct 2014: Wouter 1451 - Fixes for wildcard addition and deletion, speedup for some cases. 1452 145315 Oct 2014: Wouter 1454 - Fix that queries for noname CH TXT are REFUSED instead of nodata. 1455 145614 Oct 2014: Wouter 1457 - per zone statistics with --enable-zone-stats, configure with 1458 zonestats: "zonestatidentifier", zones with the same id are added. 1459 146010 Oct 2014: Wouter 1461 - Fix #616: retry xfer for zones with no content after command. 1462 - Fix char used as array index warnings on NetBSD. 1463 14648 Oct 2014: Wouter 1465 - Fix "xfrd_handle_ipc: bad mode" log errors when compiled 1466 with --disable-bind8-stats. 1467 146818 Sep 2014: Wouter 1469 - Fix that expired zones stay expired after a server restart. 1470 147115 Sep 2014: Wouter 1472 - RFC 7344: CDS and CDNSKEY (read in). 1473 14744 Sep 2014: Wouter 1475 - Tag 4.1.0. 1476 - trunk is 4.1.1 in development. 1477 - fix manpage for nsd-checkzone to have version and date. 1478 147929 Aug 2014: Wouter 1480 - Fix install of the nsd-checkconf man page. 1481 148228 Aug 2014: Wouter 1483 - Tag 4.1.0rc1 1484 148525 Aug 2014: Wouter 1486 - Increased default --with-max-ips from 8 to 16, this increases the 1487 number of interfaces you can specify in nsd.conf to listen to. 1488 148919 Aug 2014: Wouter 1490 - Remove .LP after .SH in man pages. 1491 14927 Aug 2014: Wouter 1493 - Fix for process swap of main and reload, reload failure from the 1494 pipe is acted on, and reload fail not cause nsd to shutdown, also 1495 ignore sigchlds from the servermain in reload, that would cause 1496 EINTR to break file reads. 1497 - trunk has version 4.1. 1498 14995 Aug 2014: Wouter 1500 - Fix #600: document that provide-xfr provides AXFR and not IXFR. 1501 - remove program group fix, because it is not needed. 1502 - Fix rising-load-average or memory-leaks in OSes (Linux since 2.6), 1503 that keep track of all past process parents, or leak memory 1504 for them. Fix makes it so there is no very deep string of 1505 process parents. 1506 The reload process is now the process parent of servermain. That 1507 makes signals for children arrive at the reload, and servermain 1508 has to use closed pipes to detect that children have exited. 1509 15101 Aug 2014: Wouter 1511 - Set program group on main process and its child processes, and 1512 kill them on a reload. 1513 151420 July 2014: Wouter 1515 - Fix endian.h include for OpenBSD. 1516 151715 July 2014: Wouter 1518 - Fix -O3 compile flag to -O2 to avoid miscompilations. 1519 - Allow user to override the -g -O2 CFLAGS in ./configure. 1520 152111 July 2014: Wouter 1522 - fix strptime implicit declaration error on OpenBSD. 1523 15249 July 2014: Wouter 1525 - removed unnecessary arc4random_uniform. 1526 15278 July 2014: Matthijs 1528 - fake-rfc2553 patch (thanks Benjamin Baier). 1529 15308 July 2014: Wouter 1531 - wait and reap processes that are not part of the process group. 1532 15337 July 2014: Wouter 1534 - Code review fixup from NSD3. 1535 153630 Jun 2014: Wouter 1537 - Fix #590: rrl log does not print wildcard as a star but escaped. 1538 - Fix #591: rrl log messages at verbosity level 1. 1539 (If that does not work for everyone, we need rrl-log: yesno option). 1540 154127 Jun 2014: Wouter 1542 - Fixup rr-test test so that it does not fail on the #553 string. 1543 154417 Jun 2014: Matthijs 1545 - Fix #587: Default value for statistics is 0. 1546 - Remove the shift-reduce conflicts from the bug#553 fix. 1547 15485 Jun 2014: Wouter 1549 - Fix roundrobin cornercase for truncated packets. 1550 - round-robin: yesno in nsd.conf enabled round robin rotation. 1551 155228 May 2014: Wouter 1553 - Fix #585: yylex_destroy missing, cannot compile on RHEL 5.x. 1554 - Fix #583: Round-robin for records in the Answer section. 1555 155622 May 2014: Wouter 1557 - Fix zonefile parse with no whitespace before semicolon comments. 1558 155916 May 2014: Wouter 1560 - xfrd reaps children on a timer as well, similar to server_parent. 1561 15628 May 2014: Wouter 1563 - Fix #564: nsd-checkzone tool to check zonefile correctness. 1564 15657 May 2014: Wouter 1566 - Fix #577: makefile incorrectly installed manpages from srcdir. 1567 156830 April 2014: Wouter 1569 - Fix that xfrd reaps all children on every eventloop, because some 1570 exited reloads may attach here and need reaping, also if the signal 1571 is lost. 1572 157323 April 2014: Wouter 1574 - Fix progress printout for very large zones (numeric overflow). 1575 157610 April 2014: Wouter 1577 - Fix write_socket return value check in server.c (Thanks Brad Smith, 1578 Mark Kettenis). 1579 15808 April 2014: Wouter 1581 - nsd-control addzone reports if zone already exists. 1582 15837 April 2014: Wouter 1584 - Fix #571: unused variable and incompatible pointer warnings when 1585 compiled on a system without INET6. 1586 158727 March 2014: Wouter 1588 - Fix delete or rename of a lot of zones and make it take a 1589 non-enormous time. Database compaction is deferred. 1590 - Speed up deletion of zone contents a lot, (56s to 1s), speeds up 1591 delete, rename and AXFR for zones. Defer emptynonterminal checks. 1592 - Better example config in nsd.conf manual page. 1593 - log-time-ascii option, default yes, with readable timestamp in log. 1594 159525 March 2014: Wouter 1596 - nsd shuts down during init process if given signal. 1597 - shorter logging for zone transfer fail rcodes. 1598 159924 March 2014: Wouter 1600 - include: "foo/nsd.d/*.conf" works, wildcard glob on includes. 1601 - Fix print filename of encompassing config file on read failure. 1602 160321 March 2014: Wouter 1604 - Fix bug in nodatabase mode with ixfrs that change nsec3param 1605 (Thanks Anand Buddhdev). 1606 - Changed maxbackoff for no-content secondary zones from 4h to 24h. 1607 - nocontent zones are checked on startup, but continue backoff 1608 from stored xfrd.state values. 1609 161019 March 2014: Wouter 1611 - made database: "" set the 3600 default for zonefileswrite only 1612 if it is also at its default, so that user settings override. 1613 - Unit test for zonefiles-write. 1614 - Write xfrd.state for nodb mode again. Disable xfrd.state with 1615 xfrdfile: "" in config. Does not check slave zone if state is 1616 same as last time on startup. 1617 - Fixed shutdown message sporadically not printed on exit. 1618 - Documented zonefile %s syntax in nsd.conf man page. 1619 - Fix manpage to put colon after zonefiles check and write. 1620 - Change from 'Zone" to "zone" with ".. serial .. is updated" log 1621 message. 1622 162318 March 2014: Wouter 1624 - unit test for nodb mode. 1625 - Speed up zone write (.nl zonefile 30% faster). 1626 The memory alloc-dealloc in print_rr has been moved to print_rrs. 1627 - (from 3.2), fix for #553 and for other TXT string syntax. 1628 - in nodb mode, xfrd.state is not written out, because the zones 1629 are refreshed upon next startup anyway, so keeping timers and state 1630 is unnecessary. 1631 - zonefiles-write option in nsd.conf, enabled when database is "". 1632 The server writes changed zonefiles to disk every hour. 1633 163417 March 2014: Wouter 1635 - Speed up zone parsing (.nl reads 40% faster). 1636 The rrtype_from_string routine is called often, optimised it. 1637 163814 March 2014: Wouter 1639 - tag 4.0.3 1640 - trunk has 4.0.4 in development. 1641 - database: "" starts without mmap of database. Less memory is used, 1642 zones are read from text zonefile. 1643 164413 March 2014: Wouter 1645 - Fix nsd.db unclean close check. Previous databases are considered 1646 unclean by the code and are created anew. 1647 - Adds nsd.db larger than 400Tb check for sanity. Also test if 1648 filesize as documented in the file is correct. 1649 - nsd waits for tasks to complete on stop, prevents nsd.db corruption. 1650 - fix to not delete tmpdir too early in shutdown process. 1651 165212 March 2014: Wouter 1653 - tag 4.0.2 1654 - trunk has 4.0.3 in development. 1655 - disabled udb checking functionality that made it very slow, 1656 this was enabled when enable-checking was turned on. 1657 165827 February 2014: Wouter 1659 - tag 4.0.2rc1 1660 166126 February 2014: Wouter 1662 - Fix that NSD will delete and recreate not-clean-closed databases. 1663 166420 February 2014: Wouter 1665 - Fix from 3.2: make SOA RDATA comparisons in XFR more lenient (only 1666 check serial). 1667 166818 February 2014: Wouter 1669 - Fix leak of zone name after zonefile read. 1670 - Fix malloc too large that would be leaked in the radix tree. 1671 167214 February 2014: Wouter 1673 - configure change for easier compile on Minix. 1674 167510 February 2014: Wouter 1676 - Fix #552: zonefile loads on nsd-control reconfig when the name 1677 of the file has changed. 1678 16797 February 2014: Wouter 1680 - Fix #551: change Regent to Copyright holder in the LICENSE, 1681 to match the definition on opensource.org for the BSD License. 1682 16833 February 2014: Wouter 1684 - Disabled recvmmsg and sendmmsg usage by default because kernel 1685 versions have implementation issues: ipv6 ignored, security issues. 1686 - Detect libevent2 install automatically by configure, and use 1687 event2 header files if necessary. 1688 - Fixup link with lib/event2 subdir. 1689 169030 January 2014: Wouter 1691 - Fix expired zones to give SERVFAIL, also when parent zone loaded. 1692 169327 January 2014: Wouter 1694 - tag 4.0.1. 1695 - trunk is 4.0.2 in development. 1696 - rcode REFUSED for queries to non-hosted zones. 1697 - documented nsd-control zonestatus output in nsd-control manpage. 1698 - remove mention of nsdc from nsd-checkconf manpage. 1699 170021 January 2014: Wouter 1701 - tag 4.0.1rc2 1702 170320 January 2014: Wouter 1704 - Fix #546: output format errors in nsd_munin_ (Thanks Tom Hendrikx). 1705 170617 January 2014: Wouter 1707 - Fix type CAA. 1708 - Fix type EUI48. 1709 - nsid can be set with "ascii_somestring" in ascii. 1710 - Fix printout of high-chars in TXT on NetBSD. 1711 171216 January 2014: Wouter 1713 - Unit test for WKS failure. 1714 171515 January 2014: Wouter 1716 - tag 4.0.1rc1 1717 171813 January 2014: Wouter 1719 - Check if configure in srcdir collides with outofdir build. 1720 172110 January 2014: Wouter 1722 - Fix that chroot is removed from zonefile names (for absolute names). 1723 17249 January 2014: Wouter 1725 - Fix that bad IXFR updates do not result in double SOA records, 1726 and that an AXFR is started (attempted) when the zone state seems 1727 to be inconsistent with the master's zone state. 1728 17298 January 2014: Matthijs 1730 - Bugfix #542: Match RRSIG TTL with SOA TTL in negative response. 1731 17327 January 2014: Wouter 1733 - Fix xfrd when zone transfer TCP contains zero length packets. 1734 - Fix for NSEC3 zones where parent zone is co-hosted, also NSEC3, 1735 because AXFRs overwrote nsec3 administration in the child zone. 1736 17372 January 2014: Wouter 1738 - Log ip address for sendto and sendmmsg failures. 1739 17404 December 2013: Matthijs 1741 - Support for CAA RRtype (RFC 6844). 1742 174326 November 2013: Wouter 1744 - Fix segfaults after read of zones with rr type WKS from zonefile. 1745 - Seed PRNG for openssl at start of daemon, fixes SSL connection issue. 1746 174725 November 2013: Wouter 1748 - (same as in 3.2.16): fix wildcard cname to nxdomain repeated rrset. 1749 175011 November 2013: Wouter 1751 - Fix bug#534: IXFR query loop over UDP for zones that are unchanged. 1752 175311 November 2013: Matthijs 1754 - EUI48 and EUI64 is now RFC 7043 1755 17565 November 2013: Wouter 1757 - Accept interface: as an alternative for ip-address: for 1758 consistency with unbound.conf syntax. 1759 176029 October 2013: Wouter 1761 - tag for 4.0.0 release. 1762 - trunk has 4.0.1 in development, for bug fixes. 1763 176424 October 2013: Wouter 1765 - Fixup zone change code. 1766 - tag 4.0.0rc3. 1767 176821 October 2013: Matthijs 1769 - Initialize xfrd zone when changing zone from master to slave 1770 and delete xfrd zone when changing zone from slave to master. 1771 177214 October 2013: Wouter 1773 - tag 4.0.0rc2. 1774 177514 October 2013: Matthijs 1776 - Additional log messages with reason why RR to be deleted cannot be 1777 found. 1778 177914 October 2013: Wouter 1780 - Fix for zone transfer that has different-cased RRSIG signer names 1781 or NSEC next-owner names. 1782 17839 October 2013: Wouter 1784 - tsig errors on incoming tsig print key name and source IP of query. 1785 17868 October 2013: Wouter 1787 - Update documentation for nsd -d option. 1788 17897 October 2013: Wouter 1790 - Fix mini_event ev_once flag to be prettier (review comments Yuri). 1791 - tag 4.0.0rc1 recreated. 1792 17934 October 2013: Wouter 1794 - Fix bug where if you do not have flex, and then install flex, it 1795 would not make without a re-untar of the source. 1796 17973 October 2013: Wouter 1798 - Review changes from Matthijs. 1799 - doc/README updated, 'nsdc' is now removed. 1800 18011 October 2013: Wouter 1802 - Review commits from Matthijs. 1803 - doc/UPGRADING updated, review Yuri. 1804 180530 September 2013: Wouter 1806 - tag 4.0.0rc1 1807 - updated doc/RELNOTES 1808 180919 September 2013: Wouter 1810 - configure --disable-recvmmsg for compat with older Linux kernels, 1811 by default it autodetects support in the kernel on the buildmachine. 1812 181320 Aug 2013: Wouter 1814 - Fix time at 2038, uint32s changed to time_t, support 64bit time_t. 1815 181619 Aug 2013: Wouter 1817 - Fix use of 32bit time, for 2038, thanks to Theo de Raadt for patch. 1818 181913 Aug 2013: Wouter 1820 - Bugfix#518 Incorrect RRL prefix length option names in nsd.conf 1821 man page from Ville Mattila. 1822 18239 Aug 2013: Wouter 1824 - Fix that xfrd, and nsd-control, does not stop responding when reload 1825 errors out. The pid is sent like it should by server_main. 1826 - Fix that EOF in quoted string error does not cause reload to exit. 1827 - Fixup errors from the stack code checker. 1828 18296 Aug 2013: Wouter 1830 - Removed use of random when arc4random is available. Thus, random 1831 and srandom are then not linked with the executable. 1832 183316 Jul 2013: Wouter 1834 - Fix segfault with no logfile and chroot (Thanks Patrik Lundin). 1835 183615 Jul 2013: Wouter 1837 - beta 5 tag. 1838 - trunk has beta6 named in configure. 1839 18409 Jul 2013: Wouter 1841 - unlink xfr file if transfer is stopped, timeouted or interrupted. 1842 And unlink xfr file in progress when the zone is deleted. 1843 18448 Jul 2013: Wouter 1845 - Increase tcpbacklog default to 256 (silently capped to 128 on BSD). 1846 For remote control keep it at 16, it has less TCP load. 1847 It does not actually increase TCP performance (some except), but 1848 reduces connection loss when there is a spike in TCP connections. 1849 18505 Jul 2013: Wouter 1851 - nsd-mem stores temp files in current dir because /tmp is too small. 1852 - printout pct parsed, read, nsec3 and written every 100.000 elements 1853 and after 5 seconds. For big zones. 1854 18553 Jul 2013: Wouter 1856 - region-allocator has list of large allocations, so delete is in O(1). 1857 - recursive readroutine for speedup of nsd.db reads (30%). 1858 - udb-inspect prints type summary of nodes in nsd.db. 1859 186028 Jun 2013: Matthijs 1861 - Update tmp serial in xfr checking. 1862 186328 Jun 2013: Wouter 1864 - nsd.db 12% smaller, no nsec3 hash storage. Also ups udb version 1865 because of the format change. printout udb write complete for 1866 debug. 1867 - Fix warning in labellength 0 code. 1868 186927 Jun 2013: Matthijs 1870 - Better XFR checking, fallback to AXFR (if allowed) if three 1871 malformed XFR packets have been seen. 1872 - zonec: Don't crash on domain names with label length 0. 1873 187425 Jun 2013: Matthijs 1875 - Rename --enable-eui-rrtypes to --enable-draft-rrtypes. 1876 187725 Jun 2013: Wouter 1878 - acx_nlnetlabs.m4 update, --disable-flto. 1879 188020 Jun 2013: Matthijs 1881 - Use IPV6 minimum MTU settings with TCP to reduce failures that 1882 are caused by delays in learning working PMTU when communicating 1883 through a tunnel. 1884 - Improved RRL logging: also print triggering query src addr and qtype 1885 (thanks Klaus Darilion). 1886 - Merge some minor stuff from NSD3.2 1887 188818 Jun 2013: Matthijs 1889 - Add rrl-slip config option (thanks Stephane Bortzmeyer). 1890 - Add rrl-ipv{4,6}-prefix-length config option. 1891 - Bug #496: Support for EUI48 and EUI64 RR types. 1892 189314 Jun 2013: Wouter 1894 - Optimizations: -O3 if possible (user can override CFLAGS), udp 1895 buffers are set to 1m by default (if socket options exist), 1896 use recvmmsg and sendmmsg, or only recvmmsg, or recvfrom. 1897 189811 Jun 2013: Wouter 1899 - Fix memory leak in zone parser for txt record (since the large 1900 number of txt subsections fix). 1901 - Fix zone parser allocations to be in db region. 1902 - nsd-mem prints advice 1903 19045 Jun 2013: Wouter 1905 - Fix segfault on repeated reconfigs, double free of zone apex name. 1906 19074 Jun 2013: Wouter 1908 - Remove duplicate zlfile variable from options structure. 1909 191030 May 2013: Wouter 1911 - Fix nsd-mem for printout of values above 4G. 1912 191316 May 2013: Wouter 1914 - Patch from Lukas Wunner that makes chroot more consistent. 1915 Make all paths absolute with the chrootdir in front, or use 1916 an absolute zonesdir with other patsh relative to that. 1917 19183 May 2013: Wouter 1919 - Fix race on exit of nsd, for restarts, so that the pidfile-pid 1920 process waits until port53 has been closed before exiting. 1921 - update acx_nlnetlabs.m4 to v23, sleep w32 fix. 1922 192329 April 2013: Wouter 1924 - Remove unused pointer and fixup chroot include for trail slash. 1925 192626 April 2013: Wouter 1927 - Patch from Lukas Wunner that makes nsd.conf include files work 1928 inside chroot/etc environments on repattern and reconfig. 1929 193025 April 2013: Matthijs 1931 - New config option "ip-transparent:", to bind to non local addresses 1932 (thanks Arjen Zonneveld). 1933 - RRtypes ASFDB, RP, RT should not compress dnames (thanks Peter 1934 van Dijk). 1935 193619 April 2013: Wouter 1937 - own snprintf, fix use of snprintf return value (in debug print). 1938 193918 April 2013: Wouter 1940 - fix bug #491: pick program name (0th argument) as syslog identity. 1941 19429 April 2013: Wouter 1943 - Bug #494: Exit with return code 1 if socket code fails. (from 3.2) 1944 - Fix B64_NTOP replacement definitions in configure.ac. 1945 194626 March 2013: Wouter 1947 - update lookup3.c with better endianness detection. 1948 194925 March 2013: Wouter 1950 - faster nsec3 updates. 1951 - Fixup contrib/bug390.patch for 4.0.0b4. 1952 - remove leak of nsec3. 1953 - allocate radixtree in region for small (5%) total savings and 1954 about 15% savings in the radixtree itself (due to many small alloc 1955 savings in region). 1956 195722 March 2013: Wouter 1958 - use less memory for non-nsec3, nsec3tree. 1959 196018 March 2013: Wouter 1961 - update nsd-mem with pretty printout and RRL count. 1962 196314 March 2013: Wouter 1964 - Fix memory statistics in nsd_munin_. 1965 19668 March 2013: Wouter 1967 - nsd-mem tool initial commit. 1968 19697 March 2013: Wouter 1970 - notify information is logged at correct verbosity level, 1. 1971 19725 March 2013: Matthijs 1973 - Add hash to rrl bucket 1974 19755 March 2013: Wouter 1976 - Fixup the growth and shrinkage of nsd.db. This should use less 1977 calls to remap and change the file and mmap size. 1978 197915 February 2013: Wouter 1980 - Fix compile on bigendian netbsd alpha. 1981 - Fixup tests for older dig (check if +noedns option is supported) 1982 198311 February 2013: Matthijs 1984 - Fix outgoing-interface: Don't fail if family is IPv6 but 1985 only IPv4 outgoing-interface is set, or vice versa. 1986 198711 February 2013: Wouter 1988 - fix tcp zonetransfer pipeline lookup function. 1989 - remove compiler warning for memset from tsig read. 1990 19917 February 2013: Wouter 1992 - detect endianness in lookup3 on BSD, patch from Brad Smith. 1993 - nsd-control verbosity prints out verbosity level without argument. 1994 - nsd-control status prints out ratelimit if ratelimit is enabled. 1995 19965 February 2013: Wouter 1997 - Fix that old zonefile does not override newer AXFR for slave zones. 1998 - Nicer printout of notify. 1999 - beta4 2000 20014 February 2013: Wouter 2002 - Fix AXFR of NSEC3 slave zone. 2003 20041 February 2013: Wouter 2005 - Less printout of 'bad transfer'. 2006 200731 January 2013: Wouter 2008 - Fix that nsec3 zones are precompiled when read from udb. This 2009 caused assertion failures. 2010 - Fix is_apex flag for zones read from udb. 2011 201229 January 2013: Matthijs 2013 - RRL documented in nsd.conf.sample 2014 201529 January 2013: Wouter 2016 - printout log less verbosely, not every axfr packet. 2017 - remove printout of "bad transfer" to the log for notimpl. 2018 - fixup tests for new netstat and new netcat. 2019 202025 January 2013: Wouter 2021 - fix gcc warning, do not use uninit value for rng init. 2022 - fix zonefiles-check: entry in nsd.conf 2023 - remove -fwhole-program gcc flag usage. We cannot reliably detect 2024 if it works without failure. 2025 202623 January 2013: Wouter 2027 - beta3 2028 202922 January 2013: Wouter 2030 - Fix time calculation of zone transfer. 2031 - log ip address with tcp failure. 2032 203321 January 2013: Wouter 2034 - Improve tabs in sample nsd.conf for different tabsizes. 2035 - Fix segv if xfrdir does not exit. 2036 - create xfrdir on make install (does not remove on make uninstall, 2037 because this could be /tmp). 2038 - do not leave task files in /tmp if nsd fails to startup because 2039 of file permissions. 2040 - do-ip4 and do-ip6 nsd.conf options just like unbound. 2041 - fixed testset for dig9 default with edns. 2042 204318 January 2013: Wouter 2044 - Fix configure for gentoo gcc and headers. 2045 - List libevent in README. 2046 - Tabs and spaces nicer in nsd.conf.sample. 2047 - Fix spurious assertion failure for some rrl blocks. 2048 204916 January 2013: Wouter 2050 - Added zonefiles-check option, default yes, check mtimes of zone files 2051 on sighup and startup (from Robin Hack). 2052 205315 January 2013: Wouter 2054 - documented that the _implicit_ pattern names are used internally. 2055 205610 January 2013: Wouter 2057 - updated RELNOTES. 2058 - applied patch from Robin Hack to remove double pid file truncation. 2059 - repattern is called reconfig (because most config options are 2060 picked up, except for superuser options (chroot, logfile, port)). 2061 - document that the zonefile attribute can be empty. 2062 20639 January 2013: Wouter 2064 - 4.0.0b2 is beta2 version tag. 2065 20668 January 2013: Matthijs 2067 - Merge changes from 3.2.15 with trunk: 2068 * Update docs: CREDITS, NEW-CFG-OPTION, REQUIREMENTS, 2069 RELNOTES, TODO 2070 * Update dname_test.tpkg test. 2071 * TSIG init only fails if no digests at all can be found. 2072 * Remove unused tsig_get_algorithm_by_id code (was used by 2073 nsd-xfer). 2074 * Fix some fd leaks. 2075 * Bug #485: Fallback to DEFAULT_TTL if MSB is set. 2076 * Fix RCODE when xNAME loop final answer not exist to NXDOMAIN. 2077 20788 January 2013: Wouter 2079 - Fix make outside of source directory. 2080 20817 January 2013: Wouter 2082 - fixed uninit variable for empty zone axfr request 2083 - fixed alloc of acl options for config zones so they can be deleted. 2084 - fixed that pattern name is copied, so that patterns stay the same. 2085 - repattern also rereads the zones in the config file and applies that 2086 to the running server. 2087 208821 December 2012: Wouter 2089 - --with-logfile sets the logfile inside the example documentation. 2090 - Fixed addzone and delzone inside chroot (thanks Will Pressly). 2091 209219 December 2012: Wouter 2093 - Fixup for libevent-2.1.2. 2094 209518 December 2012: Wouter 2096 - makedist makes sha256 for tarballs. 2097 - nsd-control start runs an absolute path to start sbin/nsd. 2098 209917 December 2012: Wouter 2100 - Fix for use with libev (no use of event.ev_flags). 2101 210212 December 2012: Wouter 2103 - 4.0.0b1 is beta1 version. 2104 210511 December 2012: Matthijs 2106 - Better ILNP RR parsing (thanks Stephane Bortzmeyer). 2107 210811 December 2012: Wouter 2109 - fix libevent=no signals on Solaris. 2110 - Fix handle of activated zones from timeout event. 2111 - contrib/nsd_munin_ updated with memory lookup for BSD. 2112 211310 December 2012: Wouter 2114 - implement --with-libevent=no. 2115 211610 December 2012: Matthijs 2117 - Bug #483: Better error messages for TSIG errors. 2118 - RFC 2845: If BADKEY or BADSIG, RCODE should be NOTAUTH. 2119 Also, continue TSIG verification if NOTAUTH. 2120 21217 December 2012: Wouter 2122 - stable pidfile, xfrd is process leader and forks server-parent. 2123 21245 December 2012: Wouter 2125 - NSD4_imp_6 tag. 2126 - trunk has imp_7 implementation. 2127 21284 December 2012: Wouter 2129 - NSD-RRL documented in manpage. 2130 21313 December 2012: Wouter 2132 - Fixup exit of server-child while notifies are incoming. 2133 213428 November 2012: Wouter 2135 - RRL implements classification type RRSIG. 2136 213726 November 2012: Wouter 2138 - Fix to make nsd.udb portable between 32bit and 64bit machines. 2139 - Fix to make udb mmap work for FreeBSD8 when it grows significantly. 2140 214123 November 2012: Wouter 2142 - Fix compiler warnings and fix blocking pipes. 2143 - default tcp-count set to 100. 2144 214521 November 2012: Wouter 2146 - Implement rrl log of unblock for collision. 2147 - imported TLSA and ILNP support from NSD3. 2148 214919 November 2012: Wouter 2150 - Fix bug 480: libevent use when tcp-count is hit caused hang (in NSD4). 2151 21529 November 2012: Wouter 2153 - Log when NSD-RRL stops a stream from being blocked. 2154 21558 November 2012: Willem 2156 - Fix AXFR. Loop through the zone to transfer only. 2157 21582 November 2012: Wouter 2159 - Fix bug 478: declaration after statement (for gcc 2.95). 2160 21611 November 2012: Wouter 2162 - Fix default settings for RRL. 2163 216430 October 2012: Wouter 2165 - review fixup of RRL SLIP response. 2166 - RRL uses dev/random at start, nonRRL does not. 2167 216826 October 2012: Wouter 2169 - nsd-control repattern also changes rrl-ratelimit and whitelist limit. 2170 217117 October 2012: Wouter 2172 - Fix alignment problem in zone transfer pipeline code. 2173 - Fix random generator generating negative. 2174 - Fix udb radtree strspace creation bug. 2175 217615 October 2012: Wouter 2177 - Fix activated zone does not interrupt transfer. 2178 - Log of connection failure for zone transfer is neater. 2179 218012 October 2012: Wouter 2181 - Fix invalid time argument in nsd control (for OpenBSD). 2182 218311 October 2012: Wouter 2184 - Fix build on OpenBSD (Thanks Oliver Peter). 2185 - tpkg for RRL. 2186 218710 October 2012: Wouter 2188 - implement nsd-checkconf option use of rrl-whitelist. 2189 21909 October 2012: Wouter 2191 - with --enable-ratelimit you enable ratelimiting, with verbosity 2 2192 it logs what is ratelimited for operational inspection. 2193 - unit test for rrl. 2194 - rrl uses mmap to save state across reloads. 2195 - rrl enum and u16 flags (dnskey type). 2196 - rrl whitelist and config. 2197 21988 October 2012: Wouter 2199 - Sync with unbound lookup3, has raninit value. 2200 22015 October 2012: Wouter 2202 - fix bug with event loop in zone transfer pipeline. 2203 - close xfrd_sock_p in server_child because otherwise due to use of 2204 kqueue, it gets a broken pipe when that process exits (on FreeBSD). 2205 22064 October 2012: Wouter 2207 - Fixup no use of internals ev_flags of libevent. 2208 22091 October 2012: Wouter 2210 - fix xfrd tcp skip. 2211 221221 September 2012: Wouter 2213 - tzset before chroot for correct timezone (from Camiel Dobbelaar). 2214 - pipeline support for AXFR and IXFR tcp queries. 2215 221611 September 2012: Wouter 2217 - writev support for TCP. 2218 221928 August 2012: Wouter 2220 - TXT records with components longer than 255 fail to parse, 2221 but without segfault, it continues processing with non NULL value. 2222 222327 August 2012: Wouter 2224 - libevent in server_child. 2225 222621 August 2012: Matthijs 2227 - Fix bug#464: Conditionally define MAXHOSTNAMELEN 2228 222920 August 2012: Wouter 2230 - Fix hang on exit in xfrd. 2231 - optimized socket counts for zone transfer speed. 2232 223313 August 2012: Wouter 2234 - Fix xfrd libevent events. 2235 223610 August 2012: Wouter 2237 - libevent in xfrd. 2238 223926 July 2012: Yuri 2240 - Prioritize notify sender for requesting XFR. 2241 (thanks Ilya Bakulin) 2242 224319 July 2012: Willem 2244 - Fix for VU#624931 CVE-2012-2978: NSD denial of service 2245 vulnerability from non-standard DNS packet from any host 2246 on the internet. 2247 http://www.nlnetlabs.nl/downloads/CVE-2012-2978.txt 2248 224918 July 2012: Wouter 2250 - Fix bug#460: man page correction - identity. 2251 22529 July 2012: Wouter 2253 - delete temporary transfer files on exit of xfrd and reload. 2254 - when tasks are applied, reload checks if it must exit between 2255 tasks, so that it can quickly exit when NSD is told to quit. 2256 - fix bug in apply_xfr that must use an udb_ptr because it shifts 2257 when new allocations are made. 2258 22596 July 2012: Wouter 2260 - add xfrdir: "/tmp" option and configure --with-xfrdir="/tmp". 2261 The nsd.task files and a subdirectory for zone transfers are 2262 created there. 2263 22642 July 2012: Wouter 2265 - fix checkconf unit test and add test for backwards compatibility 2266 for difffile: "x" statement. 2267 226829 June 2012: Wouter 2269 - Implemented /tmp/nsd.xfr.xxx/ to replace ixfr.db. So that nsdc 2270 patch is no longer needed. 2271 22728 June 2012: Wouter 2273 - Fix tpkg test cutest_qroot and rr-test for printout of algorithms 2274 as numbers, and copy of DO flag to the answer. 2275 - pick up fd fix from 3_2 branch: Some more fd >= 0 to fd != -1 fixes 2276 227731 May 2012: Matthijs 2278 - Sync with 3.2 branch 2279 228024 February 2012: Wouter 2281 - Fix for qtype ANY for a wildcard domain in NSEC signed zone. 2282 22839 February 2012: Wouter 2284 - Update acxnlnetlabs.m4 version 21, fixed MEMCMP_BROKEN #undef line. 2285 228623 January 2012: Wouter 2287 - remove clang security warning about %n in format string. 2288 228920 January 2012: Wouter 2290 - Fix bug #430: segfault when MAX_INTERFACES set to more than 65K. 2291 - Fix configure for OpenIndiana sunos 5.11, acx_nlnetlabs.m4 update. 2292 229312 January 2012: Matthijs 2294 - Fix bug #421: truncate pidfile on shutdown, before unlink. 2295 229610 January 2012: Wouter 2297 - removed unused variables. 2298 229910 November 2011: Wouter 2300 - acxnlnetlabs.m4 updated to version 16, better lto check (a.out drop). 2301 23023 November 2011: Wouter 2303 - fflush zonelistfile after zone add or delete. 2304 23051 November 2011: Wouter 2306 - Fix -flto detection for llvm compiler on Lion. 2307 230810 October 2011: Matthijs 2309 - Don't clear the AA bit if there is an authoritative CNAME in the 2310 answer section (as shown in RFC 1034, Section 6.2.7, 2nd example). 2311 231210 October 2011: Wouter 2313 - squelch EPIPE when writing AXFR, enable with verbosity 2. 2314 231526 September 2011: (Matthijs, from NSD3_2 branch) 2316 - Copy the DO bit to the response. 2317 - Don't return SERVFAIL on a domain that looks like a NSEC3 2318 domain but is actually a empty non-terminal. 2319 232019 August 2011: Wouter 2321 - Fix segfault if no logfile is used. 2322 23235 August 2011: Wouter 2324 - Fix make from repeating action already taken. 2325 - Fix compile without openssl. 2326 23273 August 2011: Wouter 2328 - silence 'Broken pipe' messages in log (visible with verbosity 2). 2329 - fix makedist.sh for removal of patch, notify, xfer. new nsd-control. 2330 - tag 4.0.0-imp-5 created. 2331 - trunk is 4.0.0-imp-6 under development. 2332 - added nsd_munin_ script for statistics monitoring to contrib. 2333 23342 August 2011: Wouter 2335 - fix compile on Ubuntu 11.04 systems, detects cc system header issue. 2336 23371 August 2011: Wouter 2338 - fix checkconf test for remote control options. 2339 - fix warning on Ubuntu 10.04, fix autoconf 2.68 warning on NetBSD. 2340 234129 July 2011: Wouter 2342 - zones with no zonefile are not written to text (assumes you can 2343 get AXFR and IXFR for the contents). They are stored in nsd.db. 2344 - test for repattern. 2345 234628 July 2011: Wouter 2347 - nsd-control repattern reads TSIG and pattern configuration. 2348 234925 July 2011: Wouter 2350 - fixed tests for removed tools from nsd, with replacements. 2351 replaced nsd-patch with nsd-control write. replaced nsd-notify with 2352 ldns-notify. replaced nsd-xfer with dig -t axfr. 2353 - fix for xfrd restart if crashed. xfrd knows if a reload is 2354 active at that time so it cannot start another one at the same 2355 time. New shortsoa track for start that does not use taskdb 2356 in use by reload. taskdb in use by crashed xfrd is recreated, 2357 in case it is corrupt. This keeps the nsd.db intact, keeps 2358 reload running with its updated and keeps service from the 2359 server processes active. 2360 236122 July 2011: Wouter 2362 - added contrib/nsd.init (nsdc.sh that only does start,stop). 2363 - removed nsdc.sh, nsd-xfer, nsd-notify, nsd-patch. 2364 for rc.d: contrib/nsd.init, or platform specific init script. 2365 nsd-xfer: see nsd-control transfer, or force_transfer. 2366 nsd-notify: see nsd-control notify. 2367 nsd-patch: see (cron job to) nsd-control write. 2368 236921 July 2011: Wouter 2370 - nsd-control notify, transfer and force_transfer. 2371 - fix for bug in write and reload zone option. 2372 - nsd-control zonestatus command. 2373 237420 July 2011: Wouter 2375 - reload can be given optional zone argument. 2376 - nsd-control reopen_logfile. 2377 - nsd-control write changed zonefiles. 2378 237918 July 2011: Wouter 2380 - Fix xfrd activation of zones to not break running zone transfers. 2381 238213 July 2011: Wouter 2383 - fix that signal causes stats to be printed to log. 2384 - fix stats without remotecontrol. 2385 - ignore notify and soainfo for deleted zone, if due to race they 2386 arrive after the deletion. 2387 - tpkg test for nsd-control, addzone and delzone 2388 23895 July 2011: Wouter 2390 - fix link to ssl with FreeBSD make. 2391 23921 July 2011: Wouter 2393 - fix optimize compile to link with ssl. 2394 239529 June 2011: Wouter 2396 - nsd-control delzone zone. Removes zone from zonelist. 2397 - stats includes number of zones. 2398 - RAXFR stat, which has not worked since NSD 1.2.4, reinstated. 2399 - print more memory statistics, for xfrd and config. 2400 240128 June 2011: Wouter 2402 - nsd-control addzone zone pattern. Adds new zone, slave or master. 2403 240427 June 2011: Wouter 2405 - nsd-control stats and stats_noreset (if enabled at compile time). 2406 nsd does not print statistics to logfile if period is 0. 2407 240823 June 2011: Wouter 2409 - -flto check supports clang compiler. 2410 241122 June 2011: Wouter 2412 - remote control, config, client, setup and status command. 2413 - reload nsd-control command. 2414 - stop nsd-control command. 2415 - verbosity nsd-control command. 2416 241714 June 2011: Wouter 2418 - Fix to have no authority NS set processing for CNAMEs. 2419 24209 June 2011: Wouter 2421 - fix bug that relptrs have to be initialized with rel_ptr_init() when 2422 created and zeroed with rptr_zero before deletion. 2423 - tag 4.0.0-imp4 created 2424 - trunk is 4.0.0-imp5 under development. 2425 24268 June 2011: Wouter 2427 - nsd reads the zonelist file on start. 2428 - updated acx_nlnetlabs.m4 to version 11. 2429 - configure checks size of off_t and increase region-allocator 2430 alignment to 8 if it is 64bit and alignment at 4. 2431 - fixed bug where not all references were removed before mmap was 2432 synced to another process. 2433 24347 June 2011: Wouter 2435 - code to add and remove zonelist entries, and unit test. 2436 24376 June 2011: Wouter 2438 - fix unit tests for mmap with TODO and removal of -f in nsd-patch. 2439 - zone expiry is communicated via the mmap, and not via the pipes, 2440 simplifying the code significantly as well as making a large number 2441 of zones more feasible. 2442 24431 June 2011: Wouter 2444 - mmap used for parent-xfrd communication of tasks and task results. 2445 SIGHUP is sent to xfrd so it can become a task in the normal 2446 workflow. This can process about 4500 zones per second (this was 2447 with lots of debug prints per zone, in debug compile). The mmaps 2448 are file-backed with /tmp/ files. They are removed on a clean exit. 2449 - nsd.db and tmp mmaps are created with mode 0600 for safety. 2450 - updated flag removed, nsd-patch always in -f force mode (-f removed) 2451 and writes all zones always. Its role is taken over by task results. 2452 245330 May 2011: Wouter 2454 - Fix Makefile for U in environment, since wrong U is more common than 2455 deansification necessity. 2456 245727 May 2011: Wouter 2458 - xfrd is forked before the database is read in, thus it does not 2459 consume the memory of the database. It can be reforked on a crash, 2460 which is like the current case. Difffile is cleaned by main process 2461 and the soa serials are all sent via pipe instead of via forkmem. 2462 246324 May 2011: Wouter 2464 - implemented patterns in the nsd.conf file. 2465 they can be instantiated with include-pattern: x. 2466 existing zone definitions keep working (backwards compatible), such 2467 zones really have an implicit pattern and cannot_delete flag set. 2468 - work on zonelist read and storage. 2469 247020 May 2011: Wouter 2471 - from NSD_3_2 branch the fix: bug if the zonefile is changed for a 2472 secondary but stored transfers are applied, and stop ixfr to empty. 2473 The zone is flagged with error, and the good zone is still in nsd.db 2474 for NSD4. 2475 247617 May 2011: Wouter 2477 - unit test for code coverage on nsec3 ixfr. 2478 - tag 4.0.0-imp3 created 2479 - trunk is 4.0.0-imp4 under development. 2480 248113 May 2011: Matthijs 2482 - Fix bug #381 - Binary escaped and transfers. 2483 248413 May 2011: Wouter 2485 - Unit test nsec3 salt change and fix for sanity check of nsec3 chain. 2486 pretty prints the nsec3 parameters if verbose. 2487 248812 May 2011: Wouter 2489 - more unit test for nsec3 precompile changes. 2490 - unit test for salt change, rehash in udb fix, remove last NSEC3 2491 from chain works, NSEC3PARAM RR fixed up if RR added or removed 2492 from NSEC3PARAM RRset, hashtrees cleared properly, precompile clear 2493 more thorough (not dependant on nsec3_conditions). 2494 249511 May 2011: Wouter 2496 - fixes for nsec3 precompile code: precompile for empty nonterminals 2497 created when an RR is added. If SOA removed, precompile stays 2498 coherent even though domain_find_zone no longer returns correct zone. 2499 250021 April 2011: Wouter 2501 - unit test and fixes in nsec3 precompile code. 2502 250320 April 2011: Wouter 2504 - incremental NSEC3 precompile. 2505 250614 April 2011: Wouter 2507 - remove chnum. Added numlist sorted by domain.number. 2508 domains that are not used are removed. 2509 251013 April 2011: Wouter 2511 - Fix is_existing flag for ENT when domain that has a shared ENT 2512 is deleted by IXFR. 2513 - zonec can parse strings with RR in it. 2514 - unit test for namedb. 2515 25168 April 2011: Wouter 2517 - porting complete. 2518 - tag 4.0.0-imp2 created 2519 - trunk is version 4.0.0-imp3. 2520 25217 April 2011: Wouter 2522 - ported to sunos 4.1.4, the unit test works (udb, radtree in mmap). 2523 25246 April 2011: Wouter 2525 - UDB_CHECK is enabled if --enable-checking is used. 2526 Because it checks the pointer-administration lists it slows down. 2527 - udb-inspect has feature -l that lists zones (and RRs) in nsd.db. 2528 - fix memory leak by zonec; the region_cleanup triggers too late. 2529 - set listen TCP_BACKLOG to 16 by default, it avoids connect reset 2530 by peer in 1000-zones transfer on an ultra10, thus for many-zones. 2531 - default xfrd-reload-timeout to 1 second. 2532 25335 April 2011: Wouter 2534 - Fix uninitialised value in xfrd nsd_soa, the rdata_count. 2535 - Unit test for update of the nsd.db with new contents. 2536 - Fix array bounds check in radtree-search function. 2537 25384 April 2011: Wouter 2539 - removed zonec from tests. fix unknown_rr test, enable ipseckey test. 2540 increased timeouts on tests that are hard on the filesystem. 2541 - Fixed IPSECKEY printout by nsd-patch. 2542 254330 March 2011: Wouter 2544 - nsd edits nsd.db for IXFR and AXFR messages. since xfrd already 2545 checks zone transfers completely for syntax those errors cannot 2546 happen, if they do (memory, disk error) the file is left dirty, 2547 to be recreated on the next start (and the process dies). 2548 254929 March 2011: Wouter 2550 - nsd recreates nsd.db if it has not been closed properly or is 2551 corrupted (bad header or wrong file format). 2552 255328 March 2011: Wouter 2554 - NSD without zonec. NSD loads zonefiles on start. 2555 NSD stores NSEC3hashes on disk. 2556 255725 March 2011: Wouter 2558 - Fix bug #365, you can set NSDC_ZONEC_VERBOSE and NSDC_PATCH_STYLE 2559 in the environment where nsdc runs. 2560 - Fix bug #375, typos in nsd.conf.5. 2561 - First step of bug #369: RRSIG DNSKEY sets zone to be treated DNSSEC. 2562 - Fix bug #302, nsd accepts XFR but refuses to re-read the slave zone. 2563 - NSD4 work: removed zonec, nsdc patch does not write text files 2564 for slave zones (as if option is always to binary, this capability 2565 returns later), nsdc patch deletes the ixfr.db. 2566 kill-HUP rereads zone files that have changed. 2567 256824 March 2011: Wouter 2569 - compile fixes for BSD. preserve RRset order. 2570 257123 March 2011: Wouter 2572 - udbzone, store and read zone data in the random-access udb format. 2573 257421 March 2011: Wouter 2575 - udbradtree works. udb-inspect tool can print radtree details. 2576 257716 March 2011: Matthijs 2578 - undo fix bug#325: messes up dname compression 2579 258014 March 2011: Wouter 2581 - udb code added. uses lookup3 from unbound (public domain). 2582 - unit test for radix tree in cutest. 2583 - unit test for udb in cutest. 2584 - udb-inspect tool to printout internals of udb files. 2585 for debug, not installed or built by default. 2586 - removed --disable-radixtree option. 2587 258811 March 2011: Wouter 2589 - Removed precompile features, speed gain took too much memory. 2590 - domain number to size_t. 2591 25929 March 2011: Wouter 2593 - DNAME synthesis of CNAME. Uses TTL of the DNAME record. 2594 - nsec3 and wildcard code. No additional section for wildcards. 2595 Also CNAME and DNAME replies contain only that record (and synth 2596 CNAME), the chain is not followed. 2597 25988 March 2011: Wouter 2599 - precompile work: 2600 class ANY gets AA flag, SOA and type-NS processing, just 2601 like BIND (9.6) and it simplifies processing for NSD. 2602 other than compression difference (precompile compresses smaller), 2603 there are no differences in a 49000 query testset against the root, 2604 without EDNS. 2605 26067 March 2011: Wouter 2607 - check chown value and report high verbosity its error. 2608 26093 March 2011: Matthijs 2610 - fix #bug352: fix hardcoded paths in manpages. 2611 26122 March 2011: Matthijs 2613 - fix #bug354: make realclean cleans too much 2614 - added make devclean for cleaning up autoconf and automake stuff 2615 - Fix hardcoded paths in nsd.conf.sample and nsd.conf.5 2616 261724 February 2011: Matthijs 2618 - fix #bug350: refused notifies should log client ip. 2619 26202 March 2011: Wouter 2621 - Fix AXFR service with radix tree. 2622 - cutest for speed of answer encoding, and format of answers for root. 2623 26241 March 2011: Wouter 2625 - after merge, remove double -I. from makefile. 2626 - radixtree is default. Nicer makefile and no warnings from unused 2627 flex functions. 2628 26291 March 2011: Wouter 2630 - merge with trunk r3181: 2631 24 February 2011: Matthijs 2632 - fix #bug350: refused notifies should log client ip. 2633 24 February 2011: Wouter 2634 - fix bug#362: outgoing-interface and v4 vs. v6 leads to spurious 2635 warning messages. 2636 - fix bug#363: nsd-checkconf -v does not print outgoing-interface ok. 2637 - fix that nsd-checkconf -o outgoing-interface omits NOKEY. 2638 23 February 2011: Wouter 2639 - fix for bug#357, make xfrd quit with many zones. 2640 264123 February 2011: Wouter 2642 - Merge trunk r3151. 2643 22 February 2011: Matthijs 2644 - Patch Jakob Schlyter (setusercontext before chroot). 2645 18 February 2011: Wouter 2646 - overhaul of testset, with port uniqueness and fast start and stop. 2647 11 February 2011: Wouter 2648 - added test case to do with bug357. 2649 24 January 2011: Matthijs 2650 - Patch Tom Hendrikx (only errors to stderr when doing nsdc patch). 2651 265217 February 2011: Wouter 2653 - Fix leak of compressiontable when the domain table increases in size. 2654 - added test case to do with bug357. 2655 265610 February 2011: Wouter 2657 - Merged with trunk r3115 changes: 2658 20 January 2011: Wouter 2659 - Fix on shutdown, then getaddrinfo acquired data uses freeaddrinfo. 2660 19 January 2011: Wouter 2661 - Bug #348: no -I/usr and -L/usr for libcrypto in /usr. 2662 5 January 2011: Matthijs 2663 - Fix nsdc update and nsdc notify 2664 - Force outgoing interface to be a single range acl 2665 - Update documentation about acl options 2666 - Code review 2667 - Fix nsdc so it can use hmac-sha* tsigs 2668 - Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch 2669 4 January 2011: Yuri 2670 - Doc spelling error, bug#345 2671 15 December 2010: Wouter 2672 - fix race condition when nsd is stopped while a reload is in 2673 progress, often when rc.d does nsdc patch; nsdc stop in sequence. 2674 reload is now signalled to stop too. 2675 10 December 2010: Matthijs 2676 - fix bug#306: applied documentation patch 2677 - fix bug#253: now also for QTYPE=DS. 2678 12 October 2010: Wouter 2679 - Fix compilation on SunOS4. 2680 24 September 2010: Matthijs 2681 - Bug #328: nsd-checkconf overrun 2682 1 September 2010: Yuri 2683 - Support for huge TXT records. 2684 23 Aug 2010: Wouter 2685 - fix bug#325: remove stale files from cvs from repo. 2686 16 Aug 2010: Yuri 2687 - zonec, MAXRDATALEN check was off by one. 2688 9 Aug 2010: Matthijs 2689 - nsdc return 1 outside function, should be exit 1 2690 - Bug #320: arc4random 2691 2 Aug 2010: Matthijs 2692 - Bump to 3.2.7. 2693 21 July 2010: Wouter 2694 - NUM_RECV_PER_SELECT 100 implemented, configure check if kernel 2695 supports this. 2696 269717 January 2011: Matthijs 2698 - Bump to 3.2.8. 2699 27005 January 2011: Matthijs 2701 - Fix nsdc update and nsdc notify 2702 - Force outgoing interface to be a single range acl 2703 - Update documentation about acl options 2704 - Code review 2705 - Fix nsdc so it can use hmac-sha* tsigs 2706 - Bug #347: NSEC3 nodata QTYPE=DS not at delegation mismatch 2707 270820 July 2010: Wouter 2709 - Branched from trunk. Added radix tree. 2710 - use -fwhole-program if gcc supports it. 2711 271219 July 2010: Matthijs 2713 - fix bug#314, NSEC next field now correctly escapes spaces. 2714 Also fixes label overflow issue. 2715 - Put back HAVE_SSL. 2716 - Code reviews. 2717 - Add donor text. 2718 27196 July 2010: Wouter 2720 - Compiles on Minix 3.1.7; checks ss_family, suseconds_t, some 2721 warning fixes. Needs socketpair to work, e.g. 2722 http://wiki.minix3.org/en/SummerOfCode2010/UnixDomainSockets. 2723 27242 July 2010: Wouter 2725 - Put back CHECK_SSL in configure (removed with disable-tsig). 2726 272717 June 2010: Matthijs 2728 - Expand command line option '-a' and config option 'ip-address:' 2729 with port number. 2730 - Removed --disable-nsid, --disable-dnssec, --disable-tsig 2731 273214 April 2010: Matthijs 2733 - Bump to 3.2.6. 2734 273514 April 2010: Matthijs 2736 - uintptr_t fallback value to void* 2737 - Backwards compatibility for MAP_ANONYMOUS 2738 - Tag 3.2.5. 2739 274031 March 2010: Matthijs 2741 - Commit b64_pton optimalized compat code (Martin Svec). 2742 - Commit (experimental) mmap-alloc-namedb patch (Martin Svec). 2743 - Commit parse-token-leaks patch (Martin Svec). 2744 274527 March 2010: Wouter 2746 - fix bug#303: misspelled error message. 2747 274819 March 2010: Wouter 2749 - documented nsid: "hex string" setting in nsd.conf.sample. 2750 275124 February 2010: Matthijs 2752 - nsid: option 2753 - Enable NSID support by default 2754 - --with-chroot configure option 2755 - Less stupid chroot error handling 2756 275715 February 2010: Matthijs 2758 - Skip memory cleanup to speed up reload (Martin Svec) 2759 27601 February 2010: Wouter 2761 - compat code for memcmp unsigned comparisons. 2762 276321 January 2010: Wouter 2764 - fixup debug sprintf to snprintf. 2765 276621 January 2010: Matthijs 2767 - Secure string functions, including compat code for strlcat. 2768 - Randomness utility function 2769 - Prepare for default chroot 2770 27716 January 2010: Wouter 2772 - check write errors when marking commit failed when difffile is broken. 2773 27746 January 2010: Matthijs 2775 - Move to 3.2.5 2776 277723 December 2009: Matthijs 2778 - Store new options in nsd structure. 2779 278022 December 2009: Matthijs 2781 - New options 'ipv4-edns-size:' and 'ipv6-edns-size'. 2782 - Bug 276 2783 - Bug 286 2784 - Bug 288 2785 278621 December 2009: Matthijs 2787 - New option 'tcp-query-count:'. 2788 - New option 'tcp-timeout:' and configure option '--with-tcp-timeout'. 2789 - New zone option 'notify-retry:'. 2790 279111 December 2009: Wouter 2792 - Disable UDP IPv4 DF flag on Linux/FreeBSD/AIX with socket option. 2793 279420 November 2009: Matthijs 2795 - NSID bugfix: NSD did not recognize NSID in the query. 2796 27979 September 2009: Matthijs 2798 - DLV support 2799 280018 August 2009: Matthijs 2801 - Bug 269. 2802 - Typo: logincap.h -> login_cap.h 2803 280412 August 2009: Matthijs 2805 - Maintainers feedback 2806 280710 August 2009: Matthijs 2808 - Code review. 2809 - Also send errors to /dev/null in controlled_stop. 2810 - chown nsd.db 2811 28127 August 2009: Matthijs 2813 - Bug 266: don't have strptime build error 2814 281528 July 2009: Matthijs 2816 - Bug 263: make TSIG algorithms comparison case insensitive. 2817 281823 July 2009: Matthijs 2819 - Patch Paul Wouters for NSD using hardcoded name. 2820 282113 July 2009: Matthijs 2822 - Bug 236: allow RRs before the SOA RR. 2823 - Bug 253: No need for NS RRset in authority section, when returning 2824 final answer for QTYPE=DNSKEY. 2825 282629 June 2009: Wouter 2827 - patch for use of Linux IPV6_MTU option, so that on linux the default 2828 EDNS UDP size advertised becomes 4096 over IPv6. It fragments the 2829 packets using the IPv6 minimum MTU. 2830 283119 May 2009: Matthijs 2832 - Clean up configure script (install hickup) 2833 - Bug 249: Remove unnecessary LLONG_MIN and LLONG_MAX code. 2834 - Replace strtoll code with own strtoserial function. 2835 - Move up to 3.2.3. 2836 283711 May 2009: Matthijs 2838 - Add Off-by-one test 2839 28406 May 2009: Matthijs 2841 - Small fix in SO_REUSEADDR warning log message. 2842 - Off-by-one bugfix (thanks Ilja van Sprundel, IOActive) 2843 284429 April 2009: Matthijs 2845 - A more ensured do_stop (useful fo nsdc restart). 2846 28472 February 2009: Matthijs 2848 - Bugfix #234. 2849 - Bugfix #235. 2850 - Reset 'error occurred' after notifying an error occurred at the $TTL or 2851 $ORIGIN directive (Otherwise, the whole zone is skipped because the 2852 error is reset after reading the SOA). 2853 28542 February 2009: Matthijs 2855 - Bugfix: return BADVERS when EDNS version > 0, instead of 0x1<FORMERR>. 2856 285719 January 2009: Matthijs 2858 - Bug 230: nsd-*: use stdout for non-error output (instead of stderr). 2859 - Don't do strptime test when cross compiling. 2860 286117 January 2009: Jelte 2862 - Fix file rotation when no logfile but chroot. 2863 28648 January 2009: Matthijs 2865 - New nsd-patch option -o dbfile (set output.db) 2866 - update nsdc to deal with the new nsd-patch options 2867 - strptime compat fix 2868 28696 January 2009: Matthijs 2870 - New nsd-patch option -s (skip writing zonefiles) 2871 - Removed some region_create memchecks (not needed) 2872 28735 January 2009: Matthijs 2874 - Bug 218 2875 - Bug 222 2876 - Replace SHA256_DIGEST_LENGTH with nicer HAVE_EVP_SHA256 2877 287810 December 2008: Matthijs 2879 - Bugfix: better error message when ixfr.db cannot be read 2880 288118 November 2008: Matthijs 2882 - chown logfile, don't do file rotation if logfile is outside absolute 2883 and outside chroot. 2884 288517 November 2008: Matthijs 2886 - File rotation for nsd.log when owned by nsd (+ tpkg test). 2887 - Only AXFR fallback if master responded NOTIMPL or FORMATERR on IXFR 2888 request. 2889 - allow-axfr-fallback option. 2890 28917 November 2008: Matthijs 2892 - Bugfix: don't fclose if logfile == NULL. 2893 289430 October 2008: Matthijs 2895 - Allow escape characters in literal dnames 2896 - Fix typo in zonec manpage 2897 - Some fixes from code review 2898 289920 October 2008: Matthijs 2900 - Redo bugfix literal domain names in rdata (code adjustment) 2901 - Added tests for case sensitive dns names and "Bug #162" 2902 - Adjust nsd-patch to new ixfr.db format 2903 290414 October 2008: Matthijs 2905 - Only SO_LINGER when outgoing port is set 2906 - Reset diff_skip when a new difffile is created (parts in the difffile 2907 now have a timestamp). 2908 - Undo bugfix literal domain names in rdata (code adjustment) 2909 - Split up dname_parse to parse literal dnames and normalized dnames. 2910 29113 October 2008: Matthijs 2912 - setsockopt SO_LINGER, for portability outgoing-interface (BSD/Solaris) 2913 29141 October 2008: Matthijs 2915 - Configure the source ip-address for notifies by the master and zone 2916 transfer requests by the slave in nsd.conf. 2917 - Previously added source hostname/ip and port configuration for 2918 nsd-notify and nsd-xfer 2919 - Finetuned nsdc for nsdc notify and nsdc update 2920 292129 September 2008: Matthijs 2922 - Bugfix: only normalize domain names in rdatas when rrtype is listed in 2923 RFC 4034, section 6.2: Canonical RR Form. 2924 - Update TODO list 2925 292625 September 2008: Matthijs 2927 - Fix bug where hmac-sha256 was in algorithm table, but could not be 2928 retrieved by name or id. 2929 - Additional arguments for nsd-notify and nsd-xfer: set outgoing 2930 hostname/ip-address and source port. 2931 - Additional TODO entry: optimize code in nsd-* programs. 2932 29338 September 2008: Matthijs 2934 - RFC 4635, bugfix #130: support for hmac-sha1 and hmac-sha256 tsig 2935 algorithms. 2936 - modify and add tpkg tests for hmac-sha1 algorithms. 2937 29382 September 2008: Matthijs 2939 - AXFR fallback when IXFR/UDP failed on all masters 2940 - Bugfix: strip off chroot value in corner cases 2941 - Additional debug and verbose log messages 2942 294329 August 2008: Matthijs 2944 - IXFR allow UDP option 2945 294626 August 2008: Matthijs 2947 - Code layout, additional comments and documentation typo fixes 2948 - IXFR over TCP, no longer UDP 2949 295017 July 2008: Matthijs 2951 - Make the maximum number of interfaces configurable. 2952 - Write pidfile *after* successful server initialization, 2953 instead of writing, and unlink if fail. 2954 295516 July 2008: Matthijs 2956 - Set upcoming release to 3.1.1 2957 - Wouter: fixed memory leaks that happened on error, mostly on 2958 zone transfer errors. 2959 296011 July 2008: Matthijs 2961 - Avoid race condition in nsdc: let nsd server update pidfile before 2962 closing old parent process. 2963 29648 July 2008: Jelte 2965 - Fixed NSEC3 memory leak in the case NSEC3 is not needed. 2966 29677 July 2008: Matthijs 2968 - Bugfix #191 2969 29709 June 2008: Matthijs 2971 - When comparing RRs, do not compare TTL values (since the same record 2972 with different TTL values are considered equal). 2973 - Fixup some more unaligned memory access that could occur when 2974 reading ixfr.db. 2975 297619 May 2008: Matthijs 2977 - Do not always log tcp read errors, only when real error or high verbosity 2978 297928 April 2008: Matthijs 2980 - Bugfix #172 (misleading error from zonec) 2981 298227 March 2008: Matthijs 2983 - Port some branch modifications to trunk 2984 298528 February 2008: Matthijs 2986 - Do not answer nsec3 wildcard information when DO bit is not set 2987 298819 February 2008: Matthijs 2989 - Fixed strptime bug (for MacOS Leopard) 2990 299122 January 2008: Matthijs 2992 - Add configuration for chkconfig to control nsd service (bug 164) 2993 299415 January 2008: Matthijs 2995 - Fixed bug 157 where nsd would return FORMERR if edns query is 2996 received with version set to zero and rdlen is larger than zero. 2997 29988 January 2008: Wouter 2999 - no warning about optout records. also no warning about missing 3000 nsec3 records. 3001 - check for hash(apex)==nsec3 with SOA bit was done in duplicate. 3002 - removed old commented out code 3003 - using SOA bit in NSEC3 typemap to detect parameters 3004 - using nonhashed NSEC3 to prove qtype=NSEC3 nxdomains 3005 - prints for debugging. 3006 - nicer comment on nsec3_lookup. 3007 30087 January 2008: Wouter 3009 - Fixup nsec3 tests, they need zonesdir: "." in conf files. 3010 The tests pass. 3011 - configure default is --enable-nsec3. Disabling this will save 20% more 3012 memory (for very large zones). Moved tests to test on commit. 3013 - set RRTYPE numbers for NSEC3=50, NSEC3PARAM=51. 3014 - fixup checkconf test - updated parser lexer gives syntax error 3015 on some garbage instead of parse error. Parselexer is updated for 3016 new options (hide-version, verbosity). 3017 - removed highrange rrtype code. fixup cutest for that. 3018 - speedup of prehash code. 3019 - skip nonexistent domains (operator.example.com). 3020 - skip only-nsec3 domains (that could be 2x speedup) 3021 - skip glue nameserver domains (for TLD with 2 glue per 3022 delegation this is a 3x speedup). 3023 - skip the prehash_domain for delegation points, which saves 3024 another 2/3 hash operations, 3x speedup. 3025 - printout how long nsec3 prepare took (verbosity >= 1). 3026 30273 December 2007: Matthijs 3028 - Fixup bug where data related files are looked up in the wrong 3029 directory when chrooted with chrootdir ending with a slash. 3030 303126 November 2007: Matthijs 3032 - Fixup bug start nsd while already running: do not initialize server, 3033 since it is already running. 3034 303515 November 2007: Matthijs 3036 - Changed man pages format from mdoc to mansun, to support the Solaris OS. 3037 - Better logging for nsd-notify (show 'broken' zone) 3038 303913 November 2007: Wouter 3040 - CREDITS and RELNOTES now in utf-8. 3041 304212 November 2007: Matthijs 3043 - Changed man pages according to bug 162. 3044 304530 October 2007: Wouter 3046 - Fixup for skip after unknown deleted IXFR RR, otherwise processing 3047 would continue at the wrong spot in the packet and process the IXFR 3048 as if it were malformed. 3049 - added unit test for this in long (needs ldns-testns, updated it). 3050 - added unit test for rollback of malformed zone transfers. 3051 Fixup for it, and fixup in ldns-testns to be randomport and 3052 copy id for hex packets. 3053 305429 October 2007: Wouter 3055 - Fixup bug where malformed IXFR replies cause partial processing in 3056 reload (or nsd-patch or nsd-startup). One result is multiple SOA 3057 records in zone apex. Fixup rolls back the zone transfer, and waits 3058 for NSD to try to load again. 3059 306026 October 2008: Wouter 3061 - small fix in descriptive text in sample config for debug-mode. 3062 30639 October 2007: Mark 3064 - Change default location of: nsd.db, ixfr.db & xfrd.state to 3065 /var/db/nsd. 3066 30675 October 2007: Wouter 3068 - Fixup manual page entry for allow AXFR to anyone. 3069 30703 August 2007: Mark 3071 - Report source and zone for denied AXFR attempts. 3072 307325 July 2007: Wouter 3074 - bind2nsd to 0.5.0, fixup of includes, key{} handling. 3075 307619 July 2007: Wouter 3077 - bind2nsd to 0.4.8, fixup of include bug. 3078 307918 July 2007: Wouter 3080 - added contrib for bind2nsd, Al Stone provided an abridged version 3081 that neatly fits for contrib. 3082 308317 July 2007: Wouter 3084 - fixup commithooks. 3085 308616 July 2007: Wouter 3087 - Added reference to http://bind2nsd.sourceforge.net/ to 3088 contrib/README. 3089 30903 July 2007: Mark 3091 - Zone compiler now gives more sane error message when out of 3092 diskspace. 3093 - Fixed a call to drill in tpkg that made a test check bind instead of 3094 nsd. 3095 30962 July 2007: Mark 3097 - Remove last traces of mmap usage. 3098 - Some cleanups in tpkg. 3099 310024 April 2007: Mark 3101 - Added "hide-version" configuration setting. Enabling this feature 3102 stops NSD from answering to CHAOS class version requests. 3103 310419 April 2007: Wouter 3105 - Compiled on minix 3.1.3 and make some adjustments to ease porting. 3106 ECONNABORTED is checked for. sys/select.h included in nsd-notify. 3107 SO_REUSEADDR failure is not fatal. PF_INET compat code added. 3108 If you compile yourself; strptime and socketpair need compat code. 3109 311013 April 2007: Wouter 3111 - Minor tweak to nsec3.c, more elegant handling of malformed nsec3 3112 records from a zone transfer. 3113 311410 April 2007: Wouter 3115 - Fixup ignored return value in region-allocator. Now returns a NULL 3116 memory allocation failure and leaves region in a consistent state. 3117 311820 March 2007: Wouter 3119 - Released 3.0.5. 3120 - (for 3.0.6) -O2 test for Alpha moved to saner position. 3121 312216 March 2007: Wouter 3123 - port configure to AIX, removed warning on ALIGNMENT in region code. 3124 defined _ALL_SOURCE to get recent C definitions on AIX. 3125 - improved nsec3.h comments. 3126 312722 February 2007: Wouter 3128 - Zonesdir default is now /etc/nsd. 3129 So that the invocation directory is not used to dump files into. 3130 The user can change the zonesdir by editing the config file. 3131 The directory is created by install, if not an error is printed. 3132 - updated tpkg tests to use current dir for testing. 3133 - tcp connections that drop do not spam the log file. 3134 Unless verbosity is set high. 3135 313619 February 2007: Wouter 3137 - Fix empty line printed with warning on 'force zone transfer'. 3138 313915 February 2007: Wouter 3140 - Check for EPROTO definition to compile on FreeBSD4/Alpha. 3141 314213 February 2007: Mark 3143 - Debug flag (-d) behavior changed. Nsd now also forks children when 3144 run in debug mode. 3145 - Added verbosity mode (-V <level>) for extra operational logging. 3146 31478 January 2007: Wouter 3148 - README text on interface configuration added. 3149 31502 January 2007: Wouter 3151 - Fixup accept() that could block due to already closed connection. 3152 Made listen() nonblocking, ignores errcodes that indicate closed tcp. 3153 315429 January 2007: Mark 3155 - Handle the new CERT RDATA types defined in RFC 4398 (submitted 3156 by Mans Nilsson). 3157 - Change nsd-notify retry timer from linear into exponential backoff 3158 (submitted by Mans Nilsson). 3159 - Due to a small bug in a comparison statement, zonec would fail 3160 on the parsing of unknown CERT types. This got triggered by the 3161 first bugfix today, as that one shouldn't have been discovered in 3162 the first place. Took the opportunity to sanitize two other 3163 comparison statements related to strtol(). 3164 316524 January 2007: Wouter 3166 - Tentative change to set UDP sockets nonblocking. Perhaps it 3167 helps Howard. 3168 316919 January 2007: Wouter 3170 - NSEC3 work. prehash printed only once with time taken to prepare. 3171 - prints are now only in DEBUG mode (except errors). 3172 - rr descriptor counts for NSEC3 updated, has an extra field flags. 3173 - now NSEC3PARAMs with flags!=0 are ignored, as per draft-09. 3174 - Fixed where only first NSEC3PARAM was properly detected. 3175 - Added tpkg in manual (because you need to compile with nsec3) 3176 that performs the test queries from draft-09 and checks them. 3177 - Made tpkg to test NSEC3 parameter detection. NSD will skip any 3178 NSEC3PARAMs that don't work until the first working one is found. 3179 Also, this means unknown hash algorithms are simply ignored. 3180 A zone that uses exclusively unknown hash algorithms for NSEC3 3181 will give errors on loading (or after zone transfer) but NSD 3182 will load and serve the zone (but no NSEC3s are returned). 3183 - added tpkg in manual to test parent side DS answers. 3184 These follow a different code path than child side DS. 3185 - Will allow NSEC3s(and signatures) below a DNAME. 3186 - A query for an NSEC3 ownername will lead to DNAME redirection 3187 as if the NSEC3 did not exist. 3188 - Test package in manual that tests NSEC3 and DNAME in the apex. 3189 - Changed NSEC3 memory requirements from 5 pointers per domain name 3190 to 3 pointers and 2 bits. 3191 - Added jumpstart for nsec3 search, will greatly speed up optout 3192 zone nxdomains. At the cost of one ptr per domain name. 3193 The speedup also speeds up the nsec3 prepare stage. 3194 319518 January 2007: Wouter 3196 - Created 3.0.4 release tag. 3197 - 3.0.5 number in trunk. 3198 - add nsd.spec patch from Farkas Levente to contrib. 3199 - NSEC3 new wireformat and presentation format from draft-09. 3200 320111 January 2007: Wouter 3202 - The message 'server .. closed cmd channel' is now priority INFO. 3203 This to reduce the 'error' amount in the logs. 3204 - On error in a tcp request, set to retry next instead of waiting 3205 for the tcp timeout. 3206 32079 January 2007: Wouter 3208 - TSIG acl matching changed so that NOKEY allow-notify entries match 3209 only queries without a tsig. Otherwise NSD would crash. 3210 This only affects servers that have allow-notify: ip NOKEY and 3211 someone sends a TSIG signed notify from that ip. 3212 - test package for that. 3213 - Fix for reply to notify messages with ANCOUNT wrong. The ack 3214 to notify messages that passed the ACL, and had a SOA in the answer 3215 section of the query, included wrong RR counts in the header. 3216 - test package for notify reply wireformat. 3217 32188 January 2007: Wouter 3219 - ipc_send_blocked will not lead to busy waiting on it, but will block 3220 in select, until SOA_END comes by. 3221 - server_main sends SOA_END if reload crashes, to xfrd. So that xfrd 3222 can set ipc_blocked=0 and can_send_reload=1; and thus resume service, 3223 assuming that the crash was a temporary condition. 3224 This will lead to trying every reload-timeout seconds to reload 3225 if it is a permanent condition. Which is more obvious to the 3226 operator. 3227 - put the error "error: diff: RR ns.kiev.ua. already exists" in 3228 debug mode only. Zone transfers with this error are liberally 3229 accepted, and we should not spam the logfile. 3230 - empty zones will not be retried forever every 10 seconds, 3231 but exponential backoff to a max of every 4 hours. 3232 The exact value is randomised to spread out attempts. 3233 32345 January 2007: Wouter 3235 - Fixed --zonesdir=<path> for configure. The value did not get used 3236 as a default value. Now it is used as a default value. If a 3237 default value is set for zonesdir, you can go to a 'no value 3238 specified' by giving the empty string, zonesdir: "" in nsd.config. 3239 - Fixed checkconf.tpkg for this change. nsd-checkconf will 3240 output zonesdir: "" as this is the default for --zonesdir. 3241 32422 January 2007: Wouter 3243 - Added contrib script from Stephane Bortzmeyer to convert NSD 2 to 3244 NSD 3 config files. Converts secondary zones and TSIG keys. 3245 - Made config conversion script skip empty lines. 3246 - Made config conversion script convert primary zones (and notify). 3247 - Nsdc control script will exit with 'nsd startup failed.' if nsd 3248 fails to start (due to bad config file for example). 3249 325015 December 2006: Wouter 3251 - Removed dlopen() checks from configure.ac, NSD3 no longer has 3252 dynamic plugin support (since 3.0.0). 3253 - added .rpm spec file to contrib. 3254 - Updated README to remove reference to buildzones script. 3255 325612 December 2006: Wouter 3257 - Added missing include to ipc.c to compile on SunOS. 3258 - Cast to avoid signed/unsigned comparison in compat/inet_ntop.c. 3259 326011 December 2006: Wouter 3261 - Added test to check for CNAME and other data error by zonec. 3262 Currently NSEC, NSEC3, RRSIG, SIG, NXT are allowed next to CNAME. 3263 - Fixup unaligned memory access that could occur when reading ixfr.db 3264 with a partial transfer inside. 3265 - RR type WKS (well known service) was not printed correctly, 3266 htons() was forgotten when calling getservbyport. 3267 - NSD does not complain about not being able to read the db CRC 3268 when all that happens is the file became longer or shorter. 3269 32708 December 2006: Wouter 3271 - Moved down max XFRD UDP sockets for zone transfer queries to 100 3272 down from 300. This makes the total socket max at 200, so it fits 3273 easily under 256 ulimit (a common default). 3274 32757 December 2006: Wouter 3276 - Improved error message to help operator. 3277 - created 3.0.3 svn tag. 3278 - default of zonesdir corrected (no directory is default). 3279 32804 December 2006: Wouter 3281 - updated test packages. Moved 213_large from manual to long. 3282 size_0, source_port_0 made more working (needs root permission). 3283 32841 December 2006: Wouter 3285 - Moved xfrd ipc and reload handlers to front of event handler 3286 lists for a 10% speedup in xfrd. 3287 - Fixed so that NSD no longer interrupts zone transfers when 3288 a notify comes in for that zone. Added package to test it. 3289 - Fixed warning on Solaris 10. 3290 329130 November 2006: Wouter 3292 - Test for fallback in getaddrinfo more portable. 3293 Ported to FreeBSD 6.1 without inet6. 3294 - New quit sync had a problem with blocking in dispatch. Fixed. 3295 - reload will retry quit_sync if nothing happens. 3296 - parent tries to empty the pipes before closing them on quitsync. 3297 - xfrd does not send reload when previous reload request busy. 3298 - netio will only deliver the number of bits from select 3299 and then stop. Optimisation. 3300 330129 November 2006: Wouter 3302 - Fixed getaddrinfo error message to be more descriptive. 3303 - Fallback to ip4 also if getaddrinfo fails for ip6. 3304 - instead of EAI_ADDRFAMILY uses EAI_FAMILY which is portable 3305 to FreeBSD. 3306 - signed/unsigned warning fix for FD_SETSIZE comparison. 3307 - Lots of debug statements and new quit sync feature, where 3308 the server children are synced with. So as not to lose buffers. 3309 331028 November 2006: Wouter 3311 - Debugging 10k zones transfer, set so that zones waiting for a 3312 socket do not get timeouts. 3313 - Debug change so that an event is only returned to one handler 3314 by netio. 3315 Reversed this. Netio will not deliver events you do not listen 3316 to, and since xfrd first listens to write then read, it will 3317 not have problems with stale events (for the fd from the previous 3318 select) because these are always read, while it needs a write. 3319 Re-Reversed it: netio will deliver events only once. 3320 This is easier to understand for the poor hapless developer. 3321 - Need to set notify_current for notify on waiting list. Fixed. 3322 332327 November 2006: Wouter 3324 - Debugging 10k zones transfer, noticed that it is possible for 3325 netio to give a callback for an event that you were not listening 3326 to. Now no longer does that. 3327 332816 November 2006: Wouter 3329 - Bug #153: now checks for FD_SETSIZE when adding fd to select fdset. 3330 - Easy overview of socket allocation for xfrd in xfrd.h 3331 - Upped the default xfrd socket limits a bit. 3332 - Log message that the TCP connection limit is reach is now only 3333 in -L 2 logging. It is spammy. 3334 - updated dependencies. 3335 - Added test for notify-socketcount, and removed unused files from 3336 bug153 test package. 3337 - Notify udp sockets are also capped at a max number. The rest 3338 has to wait in a queue. 3339 334015 November 2006: Wouter 3341 - Fixed bug #152: identity keyword in nsd.conf did not work. 3342 What happened was that the hostname() from the computer 3343 was overriding the nsd.conf identity. Fixed now. 3344 If commandline is given that is used. 3345 Else nsd.conf entry is used. 3346 Else hostname() detected from computer is used. 3347 Else default string "unidentified" is used. 3348 334914 November 2006: Wouter 3350 - Fixed bug where NSD tries to create 10000 udp sockets, 3351 when starting with 10000 secondary zones. Limited to 50 3352 at a time. The XFRD_MAX_UDP constant controls this. 3353 33543 November 2006: Wouter 3355 - Created tags/NSD_3_0_2_REL. 3356 33572 November 2006: Wouter 3358 - Added pdf for differences.tex for ease of use. 3359 - Updated text in readme on memory usage. 3360 336124 October 2006: Wouter 3362 - Recycle rrset memory after doing special processing on the deleted 3363 rrset data. 3364 - log message clearer for 'duplicate xfr part' to 'discarding partial 3365 xfr part'. 3366 - if you have a server that has IXFR turned off but sends a TC flag 3367 for IXFR queries, xfrd will retry to TCP. This makes the use of 3368 'AXFR' flag in nsd.conf file not needed in certain cases. 3369 - Be thrifty and save up the memory that was lost at end of chunks 3370 in the recycle bin. Saved 1.3Mb on 170(rrs)/220(total) Mb dataset. 3371 337223 October 2006: Wouter 3373 - Added checks for out of memory in reload (diff file). And it exits 3374 if so neatly. 3375 337613 October 2006: Wouter 3377 - Bug #149: Wrong text for NOTAUTH error code. When notify is not 3378 authorised REFUSED error code returned instead. 3379 33804 October 2006: Wouter 3381 - More fixes from Koh-ichi Ito (kohi@iri.co.jp now), for bug #146, 3382 his bash does not do $(( )), so nsdc.sh has to use test of course. 3383 338429 September 2006: Wouter 3385 - recyclebin works, added a test that uses it (about 3 Mb goes 3386 through the recyclebin). This resolves bug #147. 3387 - Made -L 1 logging is little less verbose (-L 2 gets it all). 3388 - added search path for openssl on Solaris 10 (/usr/sfw). 3389 339028 September 2006: Wouter 3391 - Removed unused global variable current_region, 3392 and routines for it in region-allocator.c and .h. 3393 - Added recycle option to regions. It will keep track of small 3394 objects in a recycle bin. Large objects are deallocated. 3395 No calls to recycle yet, unit test it first. 3396 - added unit test for region recycle. 3397 339827 September 2006: Wouter 3399 - Further suggestion from Koh-ichi Ito, I've set opt->xfrdfile 3400 to XFRDFILE in options_create. So opt->xfrdfile and opt->difffile 3401 are never NULL. This simplifies code elsewhere. 3402 And also handles chroot case (+=l) for default values. 3403 - Fix for bug #145. The skip file position in the diff file was used 3404 inconsistently - one part of the code skipped to before the 'IXFR' 3405 type code and another part skipped to after that. Now all skip to 3406 before the type code. This bug only happens if your diff file 3407 is like: zone1_part1, zone2_part_1, zone1_part2, zone1_commit, 3408 zone2_part2, zone2_commit. The skip over zone1_part1 failed. 3409 - tpkg test in long dir that tests for the bugfix. Takes a long time 3410 and uses ldns-testns feature to wait partway through an AXFR. 3411 - removed debug log of strerror on diff read failure, when the errno 3412 was already output to the logfile (resulting in a nonsense error). 3413 341426 September 2006: Wouter 3415 - NSD compiles on Solaris 10 with the sun cc compiler. 3416 Added a define for _STDC_C99 for that. 3417 - Checked that the patch for solaris for bug 143 indeed fixes the bug. 3418 - Fixed bug #146 reported by Koh-ichi Ito: when chrooted nsd failed 3419 to write xfrdfile/difffile. 3420 342118 September 2006: Wouter 3422 - no queries for NSEC3, RRSIG, ANY succeed for nsec3 only domains. 3423 342415 September 2006: Wouter 3425 - Fixed LOC parsing of integer overflow causing maximum values. 3426 Added to test and backported fix to 2.3.6. 3427 - NSEC3 qtype queries get noerror/nodata or nxdomain answers. 3428 You can query for NSEC3PARAM. 3429 - warnings for printf format on maxOS (sizet needs cast to int). 3430 343113 September 2006: Wouter 3432 - added fsync to AF_UNIX sockets to write last command (QUIT) before 3433 closing them. 3434 - sent explicit QUIT command to xfrd on final shutdown of the server. 3435 343612 September 2006: Wouter 3437 - Bug #144: LOC defaults for unspecified values wrong. Error in zonec. 3438 Set defaults. Also fixed parser if LOC has no minutes or seconds. 3439 - Also fixed rounding error in seconds 0.001 decimal. 3440 - Test tpkg for bug 144. 3441 344211 September 2006: Wouter 3443 - nsdc now more portable in use of 'which'. 3444 Does not only look at exit code but also checks for '^no ' string. 3445 - nsd-patch does a chdir to zonesdir for relative difffile or dbfile 3446 path names. 3447 - nsdc handles zonesdir: for relative pidfile, dbfile, difffile 3448 pathnames. 3449 34507 September 2006: Wouter 3451 - bumped version to 3.0.2. 3452 - Nice configuration error when you had the wrong zone name in the 3453 nsd.conf file. Zonec will give an error already. 3454 - When you start a secondary zone without a zone file, you get 3455 a much nicer error message, warning you of the zone transfer. 3456 - Credits for prerelease testers; Thanks guys! 3457 34586 September 2006: Wouter 3459 - Fixed nsd-patch so that it writes the SOA at the start of the file. 3460 - test tpkg that tests for the bug, has multiple rrsets at zone apex 3461 and does nsd-patch followed by zonec. 3462 Previous tests did not catch this: they used nsd-xfer to test zone 3463 contents, or only checked the zone-file after nsd-patch. 3464 - version number bumped to 3.0.1. 3465 - svn tag 3_0_1 made. 3466 34675 September 2006: Wouter 3468 - differences file improvements. 3469 - created 3.0.0 release in svn tags. 3470 34714 September 2006: Wouter 3472 - From suggestions by Bin Zhang: 3473 - nsdc restart does not fail if nsd was not running. 3474 - fixes to man pages, wrong locations for files. 3475 - NSEC3-PARAM has no optout bit in presentation format. 3476 - NSEC3PARAM spelling. 3477 - differences in latex format (needs nlnetlabs housestyle). 3478 347931 August 2006: Wouter 3480 - Fix for tsig size still set when data is null ptr. 3481 - Fix configure for NetBSD (1.6 - 2.0) to find struct timespec. 3482 - DIFFERENCES file completion. 3483 348430 August 2006: Wouter 3485 - Print error nicely when nonblocking connect fails on systems 3486 in a portable way. 3487 - doc/UPGRADING document to assist NSD 2 to 3 upgrades. 3488 - updates of error print - ignore EINPROGRESS if we check too early. 3489 - wait for select writable before testing for connect error. 3490 - echo "" >&2 is not as portable as we would like, removed from nsdc. 3491 - fixed debug print of a null ptr. 3492 - fixed bug where query for CNAME that points to unserved zone caused 3493 nullptr exception on empty zone ptr. Now original zone is restored 3494 after CNAME-pointed data is added to the packet. 3495 Test in dname.tpkg. Reported by Kai. 3496 - fixed stack corruption when ipv6 disabled. 3497 349829 August 2006: Wouter 3499 - NSEC3 made it so it can handle the case where the NSEC3 RRSET 3500 with the SOA bit on does not have the RR with the soa bit set 3501 as the first RR. 3502 - Handle NSEC3-PARAM type. Checks to see if any of them work: 3503 zone apex hashed exists, with NSEC3 type, and RR that has 3504 the same parameters and the SOA bit set. 3505 - in presentation format of NSEC3, NSEC3-PARAM reversed hash, optout. 3506 - update to the DIFFERENCES file, bind 9.3.2 vs NSD 3 and 3507 NSD 2 and 3 comparisons are completed. 3508 350928 August 2006: Wouter 3510 - echo messages in nsdc made clearer. nsdc notify and nsdc update 3511 only send notify messages to slaves / localhost to force transfers. 3512 - initial NSEC3-PARAM type code entry. parsed, ignored. 3513 351425 August 2006: Wouter 3515 - disabled make test target as tests are not shipped. 3516 - performed prerelease static snapshot. 3517 - updates to the DIFFERENCES document. 3518 351924 August 2006: Wouter 3520 - Fix bug 141 port from 2.3.6, copies behaviour from bind 9.3.2. 3521 - Added a test for bug 141. 3522 - Bug141: save the opcode from the query. 3523 352423 August 2006: Wouter 3525 - Fixed % by 0 exception in the bugfix #139. 3526 - Fixed RFC 4035 says CD flag SHOULD be cleared on authoritative 3527 responses, now NSD clears the CD flag. This is bug #140. 3528 RFC 4035 could be confusing on this, as it states 'all servers 3529 MUST copy the CD bit' more than once, but then makes clear only 3530 recursive servers are meant with that statement. 3531 - Differences document updates for bind 9.3.2 and nsd 3. 3532 353322 August 2006: Wouter 3534 - version number to 3.0.0 in preparation for release. 3535 - Bug #139: resync stats to whole period. Fixed. 3536 353721 August 2006: Wouter 3538 - check for error in ftruncate call. 3539 - replaced fwrite call with write_data call from util that does 3540 error checking. 3541 354215 August 2006: Wouter 3543 - removed unused struct nsd.named8_stats variable. 3544 - Bug #138: nsd aborts trying to bind all interfaces if ip6 is not 3545 enabled, instead it will fallback to ip4. 3546 354714 August 2006: Wouter 3548 - Added test for rollback of an IXFR transfer by xfrd. 3549 - Added test for reload timeout in xfrd, the reload does happen after 3550 a while, but not immediately. 3551 - Test that makes xfrd connect to ip6 address. 3552 - Test that overloads the number of tcp connections in xfrd, 3553 simulating a slow master, so that zones have to queue up to get it. 3554 - code coverage is now 2514 of 10636 uncovered. Still a lot uncovered. 3555 - ixfr queries return NOT_IMPL errors. 3556 355711 August 2006: Wouter 3558 - srandom to init random() in xfrd based on PID and time. 3559 - improved usage() information to be more helpful, and with version. 3560 - in makedist.sh, flex and bison called like in Makefile. 3561 - test for tcp underrun and overrun of the buffer. 3562 356310 August 2006: Wouter 3564 - added more tests to increase code coverage of testset. 3565 - moved acl parsing code from configparser.c to options.c to help 3566 unit testing. 3567 - nsd-checkconf echod wrong difffile filename with -v. 3568 - nsd-patch can now be used with -f to force printing of all RRs. 3569 - TYPE_NULL crashed NSD when it printed it, arg was ZF_DNAME, 3570 now ZF_UNKNOWN. 3571 - unknown rr test was faulty on input, the length was in nibbles 3572 not in octets, but rfc specifies octets for unknown rrs. 3573 NSD does not look at the length, and prints the length correctly. 3574 - added type NXT to the rr-test for weird RRs. 3575 - added printing test to rr-test, ipseckey and unknown-rr tests. 3576 checks if NSD prints the same RR on output as it read in. 3577 - put -x option for nsd-patch in usage(). 3578 - test that kills an nsd child server and checks that it is 3579 restarted. 3580 35819 August 2006: Wouter 3582 - tested nsdc functionality, make install and make uninstall. 3583 - set O_NONBLOCKING on xfrd tcp sockets before the connect call, 3584 because the handshaking can take very long too. 3585 - difffile and xfrdfile set via configure, to absolute pathnames, 3586 so that chroot checks work for them. 3587 - updated tpkgs, they need to set relative paths now for difffile. 3588 - gcov says 2821 of 10617 total code lines are not covered. 3589 compiled with --coverage, not -O2, ran tpkg/* and long/testplan*. 3590 counted grep '#####:' *.gcov | wc and grep '^ *[0-9]*:' *.gcov | wc. 3591 - cleaned up the log functions, NSD no longer spams the syslog with 3592 debug messages. The standard NSD debug util is used, -F -1 -L 2 for 3593 a compile configured with --enable-checking will enable them again. 3594 Errors are logged, as is the automated reload of a new serial. 3595 - tpkgs for bug077 and bug107 were silently failing to test properly. 3596 35978 August 2006: Wouter 3598 - fixes for checkconf test, more portable. 3599 - removed items from TODO that have been tested. 3600 for multihomed servers you have to bind to each interface 3601 explicitly to get outgoing ip-address the same as query 3602 destination ip-address. 3603 Forks and if-existing are tested and ok in testplan tests. 3604 close_all_sockets is called by child, if tcponly, so leave it. 3605 - user name check is hard portably with shell scripts, and 3606 packaging could set a default user that does not exist on a machine. 3607 - empty nodes (nonterminals) give no nxdomain any more (todo item done). 3608 - removed (old) from TODO. 3609 - removed contrib/buildzones.pl, it is outdated. 3610 36117 August 2006: Wouter 3612 - Made the tests a little more portable. 3613 - fixed mempcy unable to handle unaligned memory addresses on Solaris, 3614 used memmove instead of memcpy in zonec LOC conversion code. 3615 - another unaligned memory access, when storing off_t pointer in 3616 difffile.c, used memmove. 3617 36184 August 2006: Wouter 3619 - nsd will start if diff file is corrupt, with a log message. 3620 It ignores the bad data. 3621 - tpkg files do not override PATH, svnhook sets it. So user can 3622 set path to utilities on the system to run the tests. 3623 - running testset on DecAlpha discovered uninitialised variable 3624 in NSD. Fixed. 3625 - Jakob Schlyter asked for building nsd3 in an obj dir, i.e. 3626 mkdir obj; cd obj; ../configure && make. Fixed up makefile for that. 3627 - and bug137.tpkg for separate obj dir building. 3628 36293 August 2006: Wouter 3630 - more tests in mesh test. 3631 - changed test packages to put nsd log to test result "/dev/stdout". 3632 - test packages more portable - use default 'dig' location. 3633 also, path is appended to, instead of replaced. 3634 36352 August 2006: Wouter 3636 - Region can be customised for detailed memory handling. 3637 Especially if you set large_object_size=0, chunk_size=0, 3638 the region will perform individual allocs, and 'save memory'. 3639 The region still keeps tracks of allocations so that at 3640 region_free time all memory is released. 3641 - tsig.region removed, it was not used after attaching a cleanup 3642 at creation. tsig creation uses custom region settings. 3643 - xfrd inits the tsig records with memory saving settings, 3644 so the regions alloced for tsig take up about 60 + 4*8 bytes. 3645 - new custom region for query region - to make chunksize larger 3646 there. The chunksize for the query region is important, if 3647 all allocations for a query fit in it, no mallocs are needed. 3648 - TSIG other_data field size according to RFC 2845 is 0 or 6. 3649 In tsig implementation put a maximum to the field of 16, 3650 otherwise a formerror results. 3651 - query with IXFR appended SOA not formerror. 3652 IXFR queries not reach the handler in axfr.c for IXFR queries. 3653 - removed annoying debug message of added tsig key. 3654 - added test that starts 7 servers in a mesh and lets them fight out 3655 what zones to transfer and serve. 3656 - xfrd logic bug: if notified a slave would not see the renewal 3657 of its current zone. 3658 36591 August 2006: Wouter 3660 - Test for remove domains with IXFR. 3661 - Fix for empty nonterminals and IXFR deletes. 3662 - Test for timeouts, including expiry, and expiry and zone updates. 3663 - Test for axfr refused authorisation. 3664 - Test for deadlock in ipc. 3665 366631 July 2006: Wouter 3667 - Test plan ixfr test in tpkg/long directory. 3668 - IXFR with many packets tested (one RR per packet). 3669 367028 July 2006: Wouter 3671 - tentative change, that preserves ordering of rrtypes for a domain. 3672 - fix for serial rollover (old_serial + 2**31), now works, is seen 3673 as new serial and rolled over to new. 3674 - serial numbers, and time values, printed as unsigned to logfile. 3675 - set so that if info is provided by operator, refreshing state 3676 not expired is used. 3677 - forgot to * a pointer to boolean, is_ixfr in the difffile reader. 3678 This fixes the testplan_ixfr test 1. 3679 368027 July 2006: Wouter 3681 - fixup desc of tsig xfer test, remove debug from xfr_huge. 3682 - fixed compressed dname tables cleanup, to set ptr to NULL. 3683 - initialised xfrd_listener.fd to -1. 3684 - fixed difffile handling of very short AXFRs, with no data. 3685 368626 July 2006: Wouter 3687 - Updated the requirements with comments from Olaf. 3688 - README discourages use of experimental nsec3 rr a bit more. 3689 - typo in DNAME code, used original qname instead of CNAME 3690 adapted qname variable. 3691 - added IPSECKEY RR type, RFC 4025. 3692 - tpkg test with sample ipseckey rrs. 3693 - wireformat for IPSECKEY depends on the value of a rdata atom, added 3694 WF_IPSECGATEWAY to handle that. 3695 - DHCID type, data is encoded in one binary/b64 blob. 3696 369725 July 2006: Wouter 3698 - max number of tries for nsd-notify is 15, so that the 3699 total time for sending is about 75 seconds. 3700 - forward port of fixes for bug 105 and 135 in nsdc. 3701 forward port of test for bug 105. 3702 - fixed nasty bug with configure --prefix=<...> where config.h 3703 was wrong. Now double evaluate the shell expansion on the defines. 3704 37055 July 2006: Wouter 3706 - helped in README with gnu make; need to make clean 3707 so that botched attempts by make to create the lexer files 3708 do not stay around. 3709 - removed %zd, replaced by casts to int. 3710 - updated REQUIREMENTS file, the sections on RR types, on what 3711 algorithm NSD follows and on which RFCs are supported are updated. 3712 37133 July 2006: Wouter 3714 - 'make depend' target in makefile. (updates both Makefile.in 3715 and Makefile, so it works for users and for svn). 3716 - doc minor update. 3717 37182 July 2006: Wouter 3719 - TESTPLAN, README, bugzilla-bugs docs updated. 3720 - NSD for BIND users update. 3721 372229 June 2006: Wouter 3723 - removed --zonesfile nsd.zones configure option. 3724 - doc/README updated for 3.0. 3725 - doc update. NSD_FOR_BIND_USERS document. 3726 - moved from -Ds to the config.h header, cleaner compilation output. 3727 - use autoconfs built in large file support enabler. 3728 372928 June 2006: Wouter 3730 - nsdc neater, checks for BLOCKED ips more strictly. 3731 - nsd -d also disables xfrd forking, and thus all reloads 3732 and secondary zone treatment. Stated so in manual page. 3733 - fixup, apart from ip4 need to allow ip6 in example.conf 3734 line showing how to allow access for everyone to axfr. 3735 373627 June 2006: Wouter 3737 - Fixed read in server.c to be a blocking read for sure, 3738 even if ipc is not blocking on the OS. 3739 - nsd-notify tries to send notify 5 times, then exits with error. 3740 - nsd-checkconf can lookup key secrets by name from a config file. 3741 - difffile option is always set in options struct with default 3742 or config value. 3743 - nsd-patch uses dnames to compare zone names (for trailing .). 3744 - nsdc updated to work with config file. 3745 374626 June 2006: Wouter 3747 - Nicer check in autoconf for struct timespec type. 3748 - NSEC3 next hashed ownername is a length byte followed by data. 3749 - nsd-checkconf more quiet, clearer error message. 3750 - NSEC3 does not complain about glue records without nsec3. 3751 - nsdc work (did start, stop, running, rebuild, restart, reload, stats). 3752 375321 June 2006: Wouter 3754 - nsid commandline parsed using hex_pton routine. 3755 - unit test for hex_pton. 3756 - added include stdlib, needed for free() on sunos4. 3757 - fixup of disable-ipv6 compilation. 3758 - memmove compat implementation (created fresh). 3759 - yy_set_bol() for old flex compat define. 3760 - compat implementation from openssh4.3p2 for 3761 strlcpy, inet_aton, and inet_ntop routines. 3762 - changed ctime_r usage to ctime() call, nsd is not threaded. 3763 - compiles on SunOS4/gcc-2.95. 3764 - debug statements go to the log_msg route instead of the 3765 fprintf route, so they will get to a nice logfile even if 3766 we forked away, with xfrd. logfile=/dev/stderr gives old way. 3767 - minor changes to cutest to make unit test compile 3768 on SunOS4/gcc-2.95, it checks out fine there. 3769 377020 June 2006: Wouter 3771 - updated configure to disable -O2 on platforms where gcc 3772 does not like it (such as dec-alpha). 3773 - nsd-notify used recvfrom and passed addrinfo.ai_addrlen 3774 which is a size_t, but recfrom needs a socklen_t*. On dec 3775 alpha these types differ in size (size_t is 64bit, 3776 socklen_t is 32bit). Therefore, used a wrapper variable 3777 to pass to recvfrom. 3778 - changed long int to time_t in nsd-patch.c to please compiler 3779 on dec alpha. 3780 - dec alpha complains if statements are in front of variable 3781 definitions. Fixed code for some mixups on this. 3782 - Fixup cutest for dec alpha. Code, lowercase filename, %lf->%f. 3783 - cutest fixup uses (size_t) cast and %zx to print ptrs (for debug). 3784 - for SunOS4 configure detects ssize_t and struct timespec. 3785 - removed usage of fpos_t, instead using fseeko/ftello for 64bit. 3786 - configure will define fseeko/ftello with fseek/ftell if unavailable. 3787 - added missing include from buffer.c (stdlib for free()). 3788 - defines for snprintf and vsnprintf in config.h if needed. 3789 - configlexer flex is called more cleanly with -t to write stdout. 3790 - missing include from configparser, stdlib for atoi. 3791 - config.h provide inet_pton define if it is not available. 3792 - fixup of INET6 defines, where sockaddr_storage is used 3793 outside of INET6 defines, in xfrd-tcp. 3794 - edns_init_nsid was not defined in edns.h. 3795 - added compat/fake-rfc2553.c and h from openssh 4.3p2. That has 3796 a BSD license as well. They replace getaddrinfo() (and friends) 3797 when those are missing. 3798 379919 June 2006: Wouter 3800 - updated the tpkg/manual tests for NSD 3 config files. 3801 Some need root privileges to run (using hping), they all pass. 3802 - also the tpkg/long test bug_sighup. 3803 - nsec3 code will warn at prehash time for missing exact nsec3 3804 records. So faulty signed zones are more easily spotted. 3805 - fixed NSEC3 and CNAME/DNAME chains, it will disprove the new qname. 3806 - removed for() look in CNAME processing, only first CNAME is 3807 processed now. 3808 - zonec will error on a zone with multiple CNAMEs for one name. 3809 381016 June 2006: Wouter 3811 - Swapped read and write ops in xfrd_handle_ipc, so that a read 3812 of a signal from main can stop further writes. 3813 - xfrd will complete its last message before shutting down 3814 the ipc writes and then acknowledge the reload-sync. 3815 This resolves the race where half of ipc messages caused bad 3816 modes from the main. 3817 381815 June 2006: Wouter 3819 - In preparation of notify send overhaul, moved the notify 3820 send code to xfrd-notify.c and h files. 3821 - created cleaner split of notify send and xfr code. 3822 Still in the xfr process, because it is a convenient location. 3823 - fixed bug where notify sending would read from wrong fd. 3824 - send master zone notifies. 3825 Does not skips master zone SOA INFO updates. 3826 - fixed bug where port number acls did not match. 3827 - fixed bug where tsig keys are checked for twice, but not error_code. 3828 - fixed notify send retry counting. 3829 - added test tpkg for notifies from nsd master to nsd slave. 3830 - nsd-checkconf flags if you set allow-notify without request-xfr. 3831 383214 June 2006: Wouter 3833 - fixed crash bug when dnssec/NSEC enabled and query DNAME 3834 target did not exist. 3835 383613 June 2006: Wouter 3837 - created doc subdirectory for documentation. 3838 - removed unused DIFF FILE MAGIC string. 3839 384012 June 2006: Wouter 3841 - dname_test tpkg with very extensive DNAME testing. 3842 - moved sizes of zone_name buffers to 3072 - for escaped names. 3843 - nsd-patch has a debug option to list the contents of the 3844 difffile/ixfr.db/transfer patch log in a journal fashion. You can 3845 then manually inspect the contents. 3846 38479 June 2006: Wouter 3848 - after a reload NSD will report the memory churn: number of bytes 3849 of memory wasted by the zone transfer code. 3850 38518 June 2006: Wouter 3852 - When zone is re-chosen after a CNAME/DNAME no SERVFAIL is set, 3853 noerror is returned instead. 3854 - zonec will error on multiple DNAMEs for the same name. 3855 - zonec will error on DNAME and CNAME together. 3856 - improved loop log message. 3857 38587 June 2006: Wouter 3859 - after DNAME the closest_match is set correctly for another DNAME. 3860 - in case of a loop returns gracefully instead of crash. 3861 - nsec3 checks if it is enabled for the zone for wildcards. 3862 - NSD will give referrals for zone cuts encountered after a CNAME 3863 or a DNAME. This also fixed various subtle stuff with CNAME/DNAME 3864 and TYPE_DS at zone cuts. It basically re-determines the zone 3865 to use after the CNAME/DNAME. 3866 38676 June 2066: Wouter 3868 - zonec checks for data below a DNAME, and will not create the db, 3869 as per rfc 2672. Tpkg test to make sure such a zone is not loaded. 3870 - updated rr-test tpkg so it has no data below a DNAME. 3871 - DNAME synthesis of CNAME records, including compression for cname. 3872 - included cname creation in dname test. 3873 - preallocate the extra temporary domain_type structures. 3874 - too many temp domains returns OK packet so that the resolver 3875 will recurse and ask us again with the last name in the chain. 3876 - fixed bug introduced in preallocation on temp domain numbering. 3877 38782 June 2006: Wouter 3879 - dname_replace function that does DNAME replace and unit tests. 3880 - added error codes from DNSUPD rfc2136 to constants in dns.h. 3881 - in query.c added DNAME following code. 3882 - fixed bug 134: hints[i] in nsd.c to hints[0]. 3883 - added tpkg small test for DNAME. 3884 - tpkg to test bug 134 (starts 100 processes). 3885 38861 June 2006: Wouter 3887 - tsig test with NSD master and NSD slave server. Tsig AXFR transfer. 3888 nsd-xfer used to test slave zone contents. 3889 - fixed bug where buffer_flip() is done before appending tsig rr. 3890 - version printed at start of nsd in logfile. 3891 - xfrd prints name of tsig key used during transfer in commit comments 3892 so it appears in the log file and in zonefile after nsd-patch. 3893 - prints RRs from diff file only if debug level >= 1. 3894 - scalable transfer test xfr_gig added, you can set the size to try 3895 in the .pre file. Now set very small. 3896 389731 May 2006: Wouter 3898 - xfrd check for failed updates. It compares the time it wrote the 3899 commit to disk with the time of the last reload command. 3900 Failed updates are restarted like the zone is notified of the soa. 3901 It also catches reloads that have been lost (reload cmd while reload 3902 is running, or a crashed reload process, for example). 3903 - when reload is issued, times at that second are put back one second, 3904 so that after a reload all the zones that should have been loaded 3905 have a time from before the reload. 3906 - if a reload crashes, NSD will continue with the old database, 3907 xfrd is not informed, since it cannot fix that. 3908 - nsd-checkconf strdups arg strings before writing to it. 3909 - tsig error replies contain error data, but no signature. 3910 also crashproof, badly formatted tsigs get a format error. 3911 - tsig error print knows about DNS rcodes in tsig error field. 3912 - added tpkg tests for tsig. 3913 - tpkg test for nsd-xfer with TSIG from nsd. 3914 - small stuff with makedist.sh, CREDITS, Features, make test. 3915 391630 May 2006: Wouter 3917 - tsig pre-allocs the rr_region, not at runtime, tsig_create_record(). 3918 - redid some region work for tsig. Now has another temporary region 3919 for the context data. User is only aware of the region passed at 3920 start that exists for the lifetime of the struct. 3921 During TSIG checks no more mallocs are done, only region_free_all 3922 and region allocs (of small size). 3923 - checkconf, port is stored as a string. 3924 - tsig now keeps a max_digest_size for giving reserved space. 3925 - AXFR does tsig every 96 packets (and first and last packet). 3926 - tsig signing works for all queries. SOA queries, ... 3927 If you configured the key in the config file, you can use 3928 that key for any query for any zone. 3929 Except for NOTIFY and AXFR queries; those are only allowed for 3930 the zone (and source ip address) which are configured in the config. 3931 - cleaner compile with tsig disabled. 3932 - fixed unknown key error reply in tsig. 3933 393429 May 2006: Wouter 3935 - The nonblocking write routines disable silently if they have 3936 nothing to do. 3937 - put xfrd read/write state routines (almost 500 lines of code) 3938 into xfrd-disk.c file. 3939 - little readme blurb on xfrd state file for the operator. 3940 - put ipc code in its own file for ease of reading. 3941 - removed --disable-axfr, you can control this via acls. 3942 With no provide-xfr: statements, a zone will not do axfr. 3943 394425 May 2006: Wouter 3945 - fixed reload sending; it checks for EAGAIN and EINTR. 3946 - reload sends parent quit command blocking to make sure of arrival. 3947 - send_children_quit in parent uses nonblocking writes and closes 3948 the pipe to signal the child to quit (even if the write does not 3949 come through, the closed pipe will cause the child to quit). 3950 - need_to_send_STATS flag in parent. 3951 - reload has its own ipc-listening handler in server_main. 3952 - nonblocking writes for server_main; this solved write-blocking race. 3953 - another race condition solved, if a process dies, half a read or 3954 write buffer could be left behind on another process. These are 3955 dropped. Now: 3956 * The server_main drops ipc from dead children. 3957 * The server_main drops ipc if xfrd dies. 3958 * The server_main drops xfrd(old) and all children ipc 3959 on reload. 3960 * The xfrd drops ipc to parent on a SOA_BEGIN from reload. 3961 So after reload, but parent and xfrd start with 3962 clean ipc buffers. 3963 396424 May 2006: Wouter 3965 - unit tests print progress while running to stderr. Included license 3966 of cutest with its source in svn repository. 3967 - stack type (for the IPC buffer of zone update dirty). And unit test. 3968 - only update zone-is_ok if needed to reduce memory copy on write. 3969 - split off conn_write() from xfrd tcp nonblocking write routines. 3970 - nonblocking writes for xfrd. 3971 397222 May 2006: Wouter 3973 - ported over minor nits from 2.3.5 NSD fixups. Cast to (void) 3974 unused function return values. 3975 - removed kill signal to children, superfluous due to quit cmd ipc. 3976 - moved is_ok for zones to the zone_type in namedb, not in 3977 the options, it is a runtime value not a config value. 3978 For zones that have no data, parent and children keep no state. 3979 398012 May 2006: Wouter 3981 - fixed up usage print for zonec to include -f option. 3982 - xfrd send notifies. 3983 - server no longer sends SOA INFO for master zones. 3984 - removed possible debug log print of a null string. 3985 398611 May 2006: Wouter 3987 - nsd.conf.sample shows defaults for ip4-only, ip6-only and debug-mode. 3988 - SOA_BEGIN message on start of reload sending soa info so that 3989 xfrd will not reply with expire-notifications and thus deadlock 3990 both on blocking writes (and no OS buffer on the pipes). 3991 399210 May 2006: Wouter 3993 - nsdc.sh is set +x after creation. 3994 - improved error message when zone in db has no config info. 3995 - support for broken nsec3 chains (if the one with the SOA bit 3996 is complete, it is OK for there to be other nsec3 chains 3997 with different parameters in the zone). 3998 39999 May 2006: Wouter 4000 - Fix for finding bad zone when populating SOA info on start. 4001 it would find a parent zone instead of the zone in question ( 4002 which is empty). 4003 - request-xfr: AXFR 10.0.0.153 keytouse syntax to interoperate 4004 with NSD machines. Will only send AXFR queries to the machine. 4005 - documented AXFR option in nsd.conf.5 manual page, 4006 and updated nsd-checkconf, nsd.conf.sample. 4007 - made 'skipping zone' log entry clearer (Sam Weiler asked). 4008 40098 May 2006: Wouter 4010 - updated zparser.y to handle empty nsec_seq lists. 4011 for empty nonterminals in NSEC3. 4012 - nicer without ambiguous grammar. 4013 40145 May 2006: Wouter 4015 - nsd-notify handles option -y key:secret to TSIG sign outgoing 4016 queries. 4017 - the acl checks now verify TSIG signatures on the query. 4018 - iterated_hash compiles with ssl disabled. 4019 - new ipc NSD_ZONE_STATE sent by xfrd to nsd process. notifies 4020 nsd of the state (ok or expired) of a zone. 4021 - reload process waits for the old server_main to exit to make 4022 sure there is no race condition listening to the NSD_ZONE_STATE 4023 messages generated when reload sends SOA_INFO to xfrd. 4024 - server_main and children all set zone_ok state in config options. 4025 also server_main so that newly forked children get the right state. 4026 - if a secondary zone is expired, NSD returns SERVFAIL. 4027 a transient error, so resolvers try again later. 4028 - SOA_END ipc message, sent by reload to xfrd, so it can repeat 4029 all zone states (which can have changed during reload). 4030 - zone_is_ok kept in config section so that state for zones 4031 without data is not lost. Those have no zone_type*. 4032 - secondary zones start in the expired state. 4033 - if expired zones are updated, then NSD gets the go ahead from 4034 xfrd after reload sends SOAINFO/SOAEND msg, so it is really 4035 updated in nsd memory. 4036 - fixed tpkg xfr_1 to have longer expiry times (from 0 and 3 4037 seconds to 2000 and 3000 seconds), so the zone does not expire 4038 during the test anymore. 4039 40404 May 2006: Wouter 4041 - when a new lease is acquired xfrd_packet_newlease result is used. 4042 - if a zone is lost in nsd db, xfrd will update state to match. 4043 - IXFR can use TSIG in queries and verify responses. 4044 - Fixed memory leak in xfrd tsig handling. 4045 40463 May 2006: Wouter 4047 - forward of 2.3.4 RELNOTES into trunk. 4048 - debug log statements to track xfrd request rounds. 4049 - removed memleak from handle_passed_packet in xfrd. 4050 - faster find_zone in difffile.c. 4051 - nsd-patch writes commit log entries into zone file. 4052 - took some tsig.c enhancements from 3 branch, 4053 -> if key or algo changes during connection, return bad_key, 4054 -> debug statement neater. 4055 - nsd adds tsig keys to tsig keyring at startup. 4056 40572 May 2006: Wouter 4058 - ifdef inet6 back on ss_family usage in server.c. 4059 - nsd-checkconf ip6 ifdefs improved. 4060 - xfrd tries servers 3 rounds, then waits for next retry. 4061 40621 May 2006: Wouter 4063 - off_t used for 64bit fileio. 4064 - searches for smallest unused part and sets diff_skip to that. 4065 - doc comment near the region_free_all for every query about 4066 malloc speed. 4067 - null ptr in strcmp does not work on bsd, fixed nsd-checkconf. 4068 - made nsd.conf.sample.in so the sample gets prefix-corrected. 4069 - removed nsd.zones.sample. 4070 - makedist.sh added manual pages for nsd-xfer nsd-patch. 4071 - install/uninstall nsd-patch, nsd-checkconf and manpage. 4072 small update readme. 4073 407428 Apr 2006: Wouter 4075 - ixfr >64k in xfrd. 4076 - fixed length of new commit parts. 4077 - fixed multiple ipc reads in xfrd. 4078 - fixed multiple packet ixfr read in diff file. 4079 Miek: 4080 - Forward port fixes for nsd-xfer and nsd-notify 4081 408227 Apr 2006: 4083 Wouter: 4084 - nsec3 review fixes. 4085 - diff file format expanded for >64kb transfer support. 4086 - diff reader adjusted for >64kb. 4087 Jelte: 4088 - small non-null options check in nsd.c. 4089 Miek: 4090 - updated nsd-checkconf for zone parse shell script support. 4091 409225 Apr 2006: Wouter 4093 - Tests on NSEC3 code. Fixed that the unsecure delegations also 4094 have _ds_ parent nsec3 prehashes, so that they get proper NSEC3s. 4095 NSD will serve NSEC3s to prove 'opt-out' also if the opt-out bit 4096 is (erroneously) not set. 4097 - For the 05pre2 draft section 5.4.8.1. QTYPE is NSEC3, only NSEC3 4098 RRsets at name. Fixed that RRSIGs present do not matter. 4099 And also the closest encloser proof in that case fixed. 4100 If wildcard exists below zone apex servfails (cannot disprove 4101 it and NSD cannot instantiate the wildcard at that point). 4102 410324 Apr 2006: Miek 4104 Miek: 4105 - forward port nsid (disabled by default) 4106 Wouter: 4107 - nsd-patch manual page. 4108 - minor MacOSX port fixes. 4109 - xfrd-reload-timeout: config option. 4110 - if you set the xfrd reload timeout to -1 it will not 4111 automatically reload after a transfer. User can reload. 4112 - reload timeout is a wait period after the reload is triggered. 4113 - more verbose acl logging. Validated acls are logged in detail. 4114 Invalid acls are only logged in debug mode, level >= 1. 4115 - log message when xfrd tcp connections max out. 4116 - if unknown NSEC3 hash type (not SHA-1), disable NSEC3. 4117 - xfrd randomizes the timeouts, within 10% of original, 4118 to spread out activity. Short timeouts < 10 seconds are not 4119 affected, and will give activity bursts (on startup for example). 4120 412121 Apr 2006: Wouter 4122 - put NSEC3 code in nsec3.c and nsec3.h. 4123 - iterated_hash only adds the salt if salt_len > 0. 4124 - added some assertions and cleanups to nsec3 code. 4125 - prehash also calcs the nsec3_last domain*. 4126 - dbaccess when reading in will set the rr_type.owner value. 4127 - changed namedb_find_zone to domain_find_zone, log msgs. 4128 - implemented logic from nsec draft 05-pre2 section 5.4.1 - 5.4.8. 4129 NSEC3 responses only happen for nsd compiled with --enable-nsec3 4130 and for zones where an NSEC3 with the SOA bit set exists. 4131 - added prehash pointer to ds parent side cover for opt out. 4132 - removed dynamic plugins. Dynamic plugin support is an explicit 4133 non-requirement (under creeping featurism). 4134 - in domain table create root nsec3 ptrs are NULL. 4135 413620 Apr 2006: Wouter 4137 - Unittest of base 32 encoding. 4138 - unittest start for iterated hash. 4139 - fixed for ctrlc in debug mode. 4140 - delete zparser_conv_long, not used, not needed 4141 - nsd-xfer will display NSEC3 correctly. zonec parses. 4142 - improved usage() line from zonec, about -c none, must be -C. 4143 - base32 printed in lowercase (canonical format for DNS). 4144 - NSEC3 added prehash pointers to the namedb. 4145 - NSEC3 autodetects presence of NSEC3 in zone and parameters. 4146 414719 Apr 2006: Wouter 4148 - port fix base10 in zonec conv short from 2_2 branch to trunk. 4149 and conv byte, algo, certificate, long. 4150 - configure option to enable NSEC3 (--enable-nsec3) support. 4151 - from Ben Laurie's NSEC3 patch, loaned the parse code, 4152 base32 conversion code and iterated_hash. 4153 With some small modifications. The type rrdescriptors are 4154 indexed by value below SPF, and in 4155 rdata_wireformat_to_rdata_atoms BINARYWITHLENGTH checks 4156 for end of buffer. Also parser checks for '-' salt. 4157 Some layout (spaces after ,s). And NSEC3 define is used. 4158 strtol used for iterations is base 10. 4159 - moved rrtype descriptor table sanity check to unittest. 4160 416118 Apr 2006: Wouter 4162 - Fixed check for SOA IN, bad ntohs in the check. 4163 - minimum timeout also enforced for very low expire times. 4164 - report the actual used length of the sockaddr to sento 4165 for FreeBSD. 4166 41677 Apr 2006: Wouter 4168 - modified the kill_nsd tpkg so that it waits up to 10x5 secs 4169 for nsd to make the pid file, and it wait up to 10x5 secs for 4170 nsd to exit after the kill signal is given. 4171 - xfrd checks on startup if there is trailing garbage in the 4172 diff file, left there by a previous xfrd killed in action. 4173 It then snips off any partial parts, so service can resume. 4174 Also the difffile_skip pos is set before any partial record there. 4175 - first version of nsd-patch; reads db and ixfrs and updates zones. 4176 - moved print_rdata from nsd-xfer to rdata.h to share code. 4177 - moved print_rr from nsd-xfer to util.h to share code. 4178 41796 Apr 2006: Wouter 4180 - notify handler passes acl number that matches to xfrd. 4181 - xfrd keeps a next_master for a zone, and sets it after notify. 4182 when notified nsd will try to contact the master that sent 4183 the notify, if send from an address that is both in acl 4184 allow-notify and request-xfr. 4185 - xfrd closes its tcp and udp sockets on exit. 4186 - default names for diff file and xfrd state nicer. 4187 - fixed up kill nsd grep on ps. 4188 - fixed up race conditions in test script for kill nsd 4189 wait for pid file creation by nsd, and grep -v grep in check. 4190 - in nsd signal-flags inherited from the parent are zeroed 4191 when a server_child starts. Also the server_child switches back 4192 to NSD_RUN mode when a bad mode happens. 4193 - check if ixfrs start from the version in memory. 4194 - if IXFR/AXFR ends in a serial that is newer than the serial 4195 that was sent in an notify, update the notified serial. 4196 41975 Apr 2006: Wouter 4198 - added lowerbound for retry timeout. 4199 - added extra assertions to xfrd-tcp.c, saying that the waiting line 4200 for tcp connections must be empty if the counter is below max. 4201 - setup so that the first master tried is the first in acl list. 4202 - diff file skips OPT and TSIG RRs if they are put into the answer 4203 section. 4204 - if IXFR contains an RR to delete that does not exist, nothing 4205 happens. 4206 - update zone for NS, RRSIG also if multiple RRs in the rrset. 4207 - difffile: create zone struct also if domain exists already. 4208 - difffile: destroy temp region on error. 4209 - difffile: in delete_RR, create temp region outside of the routine, 4210 so no alloc region, destroy region for every deleted RR. 4211 - difffile: for IXFR: do not delete final SOA RR. 4212 - difffile: unknown parts in file is an error. 4213 - difffile: EOF on last packet is ignored w/o giving an error. 4214 42154 Apr 2006: Wouter 4216 - Addes EACCES to the netio dispatch error bailout. 4217 - Removed EACCESS (probably due to log_msg), error on close 4218 xfrd pipe is small, main process closes its end, and hopes for 4219 the best). 4220 - review: return on error condition in xfrd_tcp_open fixed. 4221 - review: expired when time >= expire_time, so it will not wait 4222 for the retry after expire until it will detect the expiredness. 4223 - removed duplicate lines from xfrd_handle_zone_timeout. 4224 - review: copy of uint32_t using memcpy to avoid unaligned memory 4225 accesses. 4226 - review: fd=-1 removed from set_refresh_now; only does timer. 4227 - on a tcp timeout it will retry immediately (instead of waiting 4228 another retry timeout). This means if you set refresh_now, it will 4229 interrupt a tcp-timer for a fresh retry with the next master. 4230 - put null in buffer for xfrd read state. 4231 - log msg uses string that exists instead of overwritten buffer. 4232 - read entry sets refresh depending on current time, 4233 and makes sure not to check soa contents if none provided. 4234 added explanatory comments. 4235 - EACCES back in check. 4236 - server_main first checks for terminated children, then select(). 4237 So when select is interrupted, by kill or quitting children, 4238 it will first see if it has to quit itself, before restarting 4239 the children. 4240 - destroy tempregion xfrd read on error. 4241 - check for serial existence in xfrd_handle_incoming_soa. 4242 - handle_incoming_soa uses set_timer_refresh routine. 4243 and can handle expire times < refresh times. 4244 - log msg for udp socket() error. 4245 - review: xfrd_parse_soa_info email parse uses correct buffer spot. 4246 - added a lowerbound to refresh interval (=1 second now). 4247 - upon receipt of a IXFR, if the serial is older than the notified 4248 serial, the zone stays refreshing (but the ixfr is saved). 4249 42503 Apr 2006: Wouter 4251 - Added buffer length check to internal ipc. 4252 - split out packet_read_query_section from the process_query_section 4253 routine (and moved to packet.c/h). 4254 - xfrd reads passed packet via ipc. 4255 - ported over fix to 2_2 on missing rr types by removing the 4256 duplicate RRtype array, and using rrtype_to_string. 4257 - xfrd handles notifies. immediately starts updating. 4258 - xfrd state file format fix. 4259 - removed libwrap stuff - superseded by acls. 4260 use provide-xfr: statements for your zone in the config file. 4261 updated README for this. 4262 - updated tpkg tests for axfr to use provide-xfr: 127.0.0.1 NOKEY 4263 - review: move var create to start of function (xfrd_init()). 4264 426531 Mar 2006: Wouter 4266 - zone type has a pointer to zone options. 4267 - nsd options has an rbtree to find zone options in. 4268 - nsd checks acl for incoming notifies and replies 4269 error or confirmation. 4270 - nicer layout in options.c. 4271 - updated makefile dependencies. 4272 - fixed sz for SOA_INFO ipc, which was too small. 4273 - notify is sent to server_main, server_main sends it to xfrd. 4274 427530 Mar 2006: Wouter 4276 - include: documented in manual page. 4277 - MAXINCLUDES define in one place (config.h). 4278 - configure checks for strptime in include files. 4279 - use %d instead of %zd (sparc5 machine does not get zd). 4280 - use region_strdup in configlexer. 4281 - added a check for EINVAL in dispatch - will abort 4282 on the error instead of busy hang. 4283 428429 Mar 2006: Wouter 4285 - \r for config lexer. (similar changes to zonelexer). 4286 - forward port of fix to 2_2 branch: 4287 short int in var_arg is promoted to int, according to B. Laurie. 4288 The same logic for %o, %d %x would hold for %u I think. 4289 - in XFRD, soa prim_ns and email domain names are kept in a max 4290 size buffer. 4291 - split up dname_parse into parse from string to wireformat 4292 and parse from wireformat to memoryformat, so both can be called. 4293 - split up dname_make_from_packet into reading the wireformat 4294 from the packet and the dname_make, so both can be called. 4295 - xfrd reads all soa info from incoming xfr packets. 4296 - xfrd will ignore TC bit on tcp channels. 4297 - nsd sends xfrd all soa info, including ttl and dnames. 4298 - config file now has an include: filename directive. 4299 430028 Mar 2006: Miek 4301 - forward port fixes for zone compiler and \r. svn:1926-1927 4302 - add DO bit MASK and remove the !! construct 4303 430417 Mar 2006: Wouter 4305 - according to axfr-clarify, added comments that we check 4306 more leniently on further responses on a TCP stream. 4307 430816 Mar 2006: Wouter 4309 - Fixed up SOA INFO Send routines. Send from server works. 4310 - niced up xfrd state file. 4311 - Fixed up so that after a reload it will continue in diff file 4312 where it left off. 4313 - made send of SOA info use write_socket, in case of short writes. 4314 - redesigned xfrd_tcp_read to use the same code for ipc read. 4315 - no free()s before xfrd exit. 4316 - xfrd handles incoming SOA INFO ipc packets. 4317 - removed debug, updated zones get SOA INFO sent. 4318 431915 Mar 2006: Wouter 4320 - Fixed up domain table insert, it was being used in routines 4321 that originate from nsd-xfer that do not set compression numbers 4322 correctly. 4323 - memleak fix in difffile in case of error. 4324 - difffile processing works so that NSD can read an axfr saved 4325 into the nsd.diff file. (xfrd already request and save it there). 4326 - split off xfrd tcp handling into xfrd-tcp.c. 4327 - cleaned up send_udp in xfrd, and read_state. 4328 - removed xfrd tcp_send_blocking. 4329 - xfrd sets state from ok to refresh to expired based on timeout. 4330 - xfrd sets reload timeout. 4331 - Added zone updated to keep track of zones that are changed 4332 after a reload. These zones get their information notified 4333 to xfrd. 4334 - removed unused zprintrr declaration from zonec.h 4335 - nsd sends soa information to xfrd. 4336 433714 Mar 2006: Wouter 4338 - TODO updated 4339 - worked on reload ixfr. It will add/delete RRs and zones. 4340 - xfrd receive parse of xfr messages improved. writes commit. 4341 - server compressed_dname_offsets table is increased if reload 4342 creates extra names. 4343 - difffile will create zone and apex if not there (i.e. the zone 4344 is configured but no data file provided). 4345 - bit more verbose in error message for bad diff file. 4346 - Typo fix in sample config file. 4347 434813 Mar 2006: Wouter 4349 - configure sets fseek (fgetpos/fsetpos) to use 64 bit interface 4350 with _FILE_OFFSET_BITS=64. 4351 - nsd will skip loading the .db if the DB checksum is the same. 4352 - Miek added trace test and nsd kill test. 4353 - Wouter worked on diff file c. 4354 435510 Mar 2006: Wouter 4356 - Cleanup of UDP/TCP code in XFRD. 4357 - xfrd now has tcp max connections and managing. tcp read/write. 4358 - response TC on UDP ixfr, starts TCP. 4359 - sends correct ixfr and axfr queries, a bind server answers. 4360 - made packet_skip_dname() public. 4361 - sets read/write event flags for tcp fd right. 4362 43639 Mar 2006: Wouter 4364 - Removed header from DIFF file format. CRC not that important there, 4365 you have to check the packets anyway. 4366 - cutest rbtree removed unused clean_rbtree and always_fail routines. 4367 - xfrd timeout handler, more work. Checks expire. 4368 43698 Mar 2006: Wouter 4370 - xfrd sends UDP xfr request to master(s) with timeouts, and stores 4371 returned data on disk. 4372 - updated dependencies and declaration of write_soa_buffer. 4373 43747 Mar 2006: Wouter 4375 - Fixed printfs for size_t warnings on Mac OsX. 4376 43776 Mar 2006: nsd-team 4378 * Wouter: xfrd read and write work. Statefile is "nsd.xfst". 4379 * Wouter: nsd-checkconf checks dname parse of zone name:. 4380 * Wouter: updated difffile in parser.y, production in server: clause. 4381 * Wouter: zonec now takes -C for 'no config file' option. 4382 * Wouter: updated configyyrename.h for bison 1.875d on sparc. 4383 * Miek: zonec -h and nsd -h exit with exit code = 0. 4384 * Miek & Wouter: updated tpkgs to work again. 4385 * Wouter: xfrd read handle soas, handle soa_incoming part. 4386 * Wouter: moved compare_serial() from nsd-xfer to util.h. 4387 43884 Mar 2006: Wouter 4389 - xfrd zone and soa memory structure definitions. 4390 - xfrd init zones. 4391 - xfrd read and write state file code. 4392 - option for difffile: and xfrdfile: config lines. 4393 43943 Mar 2006: Wouter 4395 - Removed double kill after reload. Only socket cmd send. 4396 - Added code to handle race condition where xfrd is restarted 4397 during a successful reload. Afterwards, the new server_main 4398 only has the old xfrd pid, new xfrd is an orphan. 4399 Solution: when xfrd closes cmd channel (i.e. it quit) 4400 unexpectedly, send sighup to all processes in the group. 4401 This should quit the orphan & all children & reload the 4402 server_main, which will fork the children and xfrd again. 4403 44042 Mar 2006: Wouter 4405 - Added nsd-checkconf.8 to makedist.sh replace list. 4406 - DIFF file format updated. 4407 - removed tsigkey->server value, it was read in, but unused. 4408 - new function to add config file keys to tsig. 4409 - nsd-checkconf checks parsing of keys. 4410 - Updated sample key file with valid keys. 4411 - added first xfrd files. xfrd is started from server_main. 4412 xfrd listens to server and server to xfrd. xfrd is restarted 4413 if it dies unexpectedly. xfrd quits when server signals it. 4414 xfrd survives nsd reloads. 4415 - nsd_options no longer global variable. 4416 44171 Mar 2006: Wouter 4418 - Nicer text in nsd.8. 4419 - nsd.c prettier code in option handling. 4420 - zonec.c code prettier in option handling, also chdir bug removed. 4421 zonec uses the zone definitions in the config file. 4422 updated zonec.8 and usage(). 4423 - nsd also chdirs to the zonedir, otherwise nsd and zonec would 4424 try to read the database: file from different directories. 4425 .(it does the chdir before the chroot call.) 4426 - new calling syntax for zonec and nsd, because of new config file. 4427 - options added acl acceptance tests (no tsig yet). 4428 - added unit test for options.c - for acl tests. 4429 - zonec removed unused vars, nsd-checkconf print arguments. 4430 - nsd-checkconf.8 manual page. 4431 443228 Feb 2006: Wouter 4433 - checked in options.h and config parser code. 4434 - also nsd-checkconf that will test a config file 4435 .(and optionally show what was read). 4436 - default identity has a spelling error. 4437 - Small fix (typo in example) to config manual page. 4438 - Added ; to configparser.y to please bison 1.75 on bsd. 4439 - Will check for blocked addresses in outgoing acls. Also ranges. 4440 - Check configuration tpkg test added. Uses checkconf. 4441 - checkconf does extra semantic tests. i.e. enable absent features. 4442 - tcpcount and servercount cannot be negative. 4443 - updated nsd.conf.5 manpage for @port syntax. 4444 - changed config parser: allows empty server: part (defaults). 4445 - made nsd.conf.sample file. 4446 - put option to configure for CONFIG_FILE nsd.conf location. 4447 Note. Already nsdc.conf exists. Both exist now. 4448 - updated makefile dependencies (gcc -MM). 4449 - getopt optstring in nsd-checkconf updated ("v" only option). 4450 - Added config .o files to nsd and zonec. This compiles. 4451 - Added commandline option -c configfile to zonec and nsd. 4452 configure defaults < configfile < commandline options in importance. 4453 445424 Feb 2006: Wouter 4455 - Added compute_crc in util.h and unit tests for it. 4456 - in cutest.tpkg the number of unit tests was hardcoded 4457 in the tpkg package. Removed the dependency, cutest exit 4458 value indicates if any failures happened. 4459 - Added crc at end of NSD-database format. Unique per db. 4460 upped db version to 7 because of this. 4461 - Tested that crcs are big/little endian correct. 4462 - Added DIFF file spec 4463 - updated tpkg213 which compares md5 on a zonefile for new format. 4464 - added nsd.conf.5 manual page with a draft contents. 4465 446622 Feb 2006: nsd-team 4467 * Miek: Changed over to Cutest testing framework. 4468 * Miek: fixed typo in netio.h 4469 * Miek: fix syntax in rbtree.c put functions on multiple lines. 4470 * Miek: unit test tpkg for cutest. 4471 * Wouter: fixed ptr bug in rbtree unit test. 4472 447317 Feb 2006: Wouter 4474 - rbtree_delete is added and works. Unit tests are there too. 4475 - Changed tail recursion in rbtree_delete to while loop. 4476 - Tagged this version as NSD_3_signalsocket_solution. 4477 It is the stable 2_2 branch with cleanups, portable, and 4478 signalhandler solution by socket communication redesign. 4479 448015 Feb 2006: nsd-team 4481 * Wouter: Fixed server_child would wait for two kill signals before quit. 4482 * Miek: don't check for port==0 pkt, just try to send them. 4483 Forward Port of 2.3. 4484 * Wouter: Removed unused, not substituted, @nsdxfer@ from Makefile.in. 4485 448614 Feb 2006: Wouter 4487 - Added unit tests for rbtree. Extensive testing of all functions. 4488 - Added tpkg unit test. 4489 - configure tests for CUnit(optional lib for unit tests). Makefile 4490 cleanup so it works on non-gmake on freebsd. 4491 449213 Feb 2006: Wouter 4493 - Removed timespec_add(current_time) in server_main, the timeout was 4494 relative, not absolute. This fixes EINVAL on the timeout on freebsd. 4495 - Added check in configure for compiler flags. Used for -Wextra. 4496 - Added check in configure for va_list definition conflict between 4497 stdio and stdarg. This happens on DEC Alpha/Debian. 4498 - removed --enable-mmap configure option. There is no mmap support 4499 in the current codebase. 4500 - renamed local prev to next in domain_next() in namedb.h. 4501 - Removed heap.h. It was not used. Heap and rbtree are mingled anyway. 4502 - in netio.c, in dispatch, it would store the next pointer 'in case 4503 the handler removes itself'. But if the handler removes that next. 4504 Then it would fail. So stored the next in struct netio. 4505 This removes a potential bug. Netio_dispatch is not reentrant. 4506 Reentry would need a list of iterator* in struct netio. 4507 - Changed process_query() to server_process_query(). It is too 4508 similar to query_process(). 4509 451010 Feb 2006: nsd-team 4511 * Wouter: Improved configure.ac to detect pselect in sys/select. 4512 The check works on freebsd(yes) and fedoracore 3 and 4 (no). 4513 I hope it also works on Solaris. 4514 Also various other prototypes were implicit: chroot, strptime, ... 4515 These are also solved. 4516 * Wouter: Checked configure on sparc5(solaris). Added check for 4517 ctime_r in time.h (for tsig.c). This conf also works on freebsd/linux. 4518 * Wouter: Updated dependencies in makefile for plugin headers. 4519 These are included only when --enable-plugins is present. 4520 * Wouter: Added a send quit over socket to kill commands in server_main, 4521 These act when the fork children fails. If the kill fails, the 4522 socket command hopefully still works. 4523 * Wouter: Put reload code into a separate function. It communicates with 4524 a socket to the old parent, and sends it a quit command. This works 4525 and terminates the old nsd. Left in the kill as a double failsafe. 4526 If the reload process dies, then the parent closes the socket. 4527 * Wouter: Separated the signal mode from the socket-determined nsd->mode. 4528 Every signal function has a variable, so that multiple signals can 4529 arrive. Only the number of signals of the same type is lost, but not 4530 important for nsd. The signals are handled in turn by the run loop. 4531 This completes the coding to remove signal race conditions: 4532 - nsd uses sockets to communicate with its subprocesses(server,reload). 4533 - signal handler routine contains no lengthy system calls. 4534 - signals cannot overwrite a previous signal. 4535 * Wouter: fixed problem where nsd->mode and mode are different in 4536 server_main. Nsd would kill the children, but then restart them again. 4537 453809 Feb 2006: nsd-team 4539 * Wouter: Updated dependencies in Makefile (regenerated them with gcc -MM). 4540 * Wouter: Used splint on the source (with settings to reduce spam.) 4541 And came to the following changes: 4542 - In util.h, make it respect HAVE_CONFIG_H and HAVE_SYSLOG_H. 4543 Also it now defines fallback values for #defines in syslog h. 4544 - Added explicit cast to (unsigned int) in snprintf in dname.c, 4545 dname_to_string routine. 4546 * Wouter: Used extra warnings during gcc compile. -Wextra -Wall 4547 -pedantic -Wbad-function-cast -Wmissing-declarations 4548 -Wmissing-prototypes -Wnested-externs -Wold-style-definition 4549 -Wstrict-prototypes -Wdeclaration-after-statement. 4550 Using -Wtraditional gives too many warnings. 4551 * Wouter: Found a problem with pselect. sys/select.h does not by default 4552 provide the pselect function definition. configure script is 4553 adjusted to test for this and enable _XOPEN_SOURCE=600 to get it. 4554 Found this using the gcc warnings. 4555 * Wouter: dname and rbtree test apps were in make clean target, but 4556 do not exist anymore. Removed from make clean target. 4557 * Wouter: in util log_file() the epoch time_t is passed to printf 4558 without an int cast. Found using extra gcc warnings. 4559 * Wouter: In server.c fixed some signed-unsigned comparisons 4560 using the extra gcc warnings. 4561 - in shutdown and int was used instead of size_t. 4562 - in server_main timeout(signed) was compared with unsigned. 4563 - unused variable in new handler functions. 4564 - in handle_child_command int i instead of size_t was used. 4565 - in zonec the process_rr routine was missing (void) as paramlist. 4566 * Wouter: Added -Wall and -Wextra when --enable-checking is enabled. 4567 * Miek: Ported over the big fat enable checking configure warning. 4568 * Wouter: fixed configure check for pselect on freebsd. 4569 457008 Feb 2006: nsd-team 4571 * Wouter: In server.c also sockets from unexpectedly dead childs are closed. 4572 * Wouter: in nsd.c and server.c cleaned out the signal handler, so that 4573 it only includes two switch/if statements and alters only the mode. 4574 No more calls to alarm(), waitpid(), write(), log_msg(). 4575 Instead the work is done in the runloop in server.c and sent by socket. 4576 Also the parent now waits for children. Parent restarts them. 4577 * Wouter: Fixup, the children will quit if the parent closes the command 4578 socket. If parent is killed, they will exit too. 4579 * Wouter: The server_main now listens to children command channels. 4580 Included timeout to check for terminated processes. 4581 Test says that new signal handler works, and child->parent comm. 4582 458307 Feb 2006: nsd-team 4584 * Miek: configure.ac version to 3.0.0 4585 * Miek: looked at: buffer.{ch}, answer.{ch}, dns.{ch} 4586 those files don't have any changes, except for dns.{ch} for the 4587 explicit compression. 4588 * Miek: looked at: zlexer.lex and zparser.y; only changes there 4589 for the database changes. 4590 * Wouter: Changed buffer in write_pid from 16 bytes to 32 bytes, 4591 this makes 64 bit numbers fit in the buffer. 4592 * Wouter: Socket connection between parent and child nsds added. 4593 But sighandler now in worse shape. Need to close them. Remove kills. 4594 * Wouter: close the parent and child command channel sockets in shutdown(). 4595