Commit graph

102 commits

Author SHA1 Message Date
Pawel Pekala
a6dcae5a90 Update to version 4.1.13
SUMMARY:
Some features, such as multi master check option that does not upgrade
from the first master that answers, but picks the best one.
Additional section handling for type SRV. And bug fixes.

FEATURES:
- multi-master-check: yes can be used to check all masters for the
  last version, using the higher version from the configured masters,
  from Manabu Sonoda.
- Support RR type OPENPGPKEY from RFC 7929.
- Can config key algorithms with the digest name, eg. 'sha256'.
- configure --disable-radix-tree for about 15% lower memory usage.
- for type SRV add A/AAAA to the additional section (if possible),
  just like we already do for type MX.
- more extensible edns option handling.

BUG FIXES:
- Fix compile warnings about unused result from write and strtol.
  and signcompare in minmax retrytime.
- Fix #812: fix that make depend fails after distribution.
- Fix #817: xfrd update failed loop.
- Add robustness against unallocated data in nsec3 trees.
- Fix README spelling error of BSD license (reported by Joerg Jung).
- Fix multimaster for not tried full zone transfer for a expired zone.
- Fix #827: fix compile with openssl 1.1.0 with api=1.1.0.

PR:		213021
Submitted by:	maintainer
2016-10-01 16:37:31 +00:00
Xin LI
a08371a4c3 Update to 4.12.
Release note:
  Fix malformed edns query assertion failure, reported
  by Michal Kepien (NASK)

PR:		ports/212327
Submitted by:	maintainer (jaap NLnetLabs nl)
MFH:		2016Q3
2016-09-02 16:38:13 +00:00
Lev A. Serebryakov
b4bc63219f Add profiles to nsd init script.
PR:		211883
Submitted by:	lev
Approved by:	jaap@NLnetLabs.nl
2016-08-17 13:22:27 +00:00
Jason Unovitch
d5716373e1 dns/nsd: update 4.1.10 -> 4.1.11
- Restore configurable IPV6 option. Upstream integrated fix for issue.

- FEATURES:
* When tcp is more than half full, use short timeout for tcp session.
* Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori.
* Fix #790: size-limit-xfr can stop NSD from downloading infinite zone transfer
  data size, from Toshifumi Sakaguchi.
  Fixes CVE-2016-6173 JVN#63359718 JPCERT#91251865.
- BUGFIXES:
* Fix build without IPv6, patch from Zdenek Kaspar.
* Fix #783: Trying to run a root server without having configured it silently
  gives wrong answers.
* Fix #782: Serve DS record but parent zone has no NS record.
* Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut.

PR:		211693
Submitted by:	jaap@NLnetLabs.nl (maintainer)
Security:	CVE-2016-6173
Security:	https://vuxml.FreeBSD.org/freebsd/7d08e608-5e95-11e6-b334-002590263bf5.html
MFH:		2016Q3
2016-08-10 01:32:14 +00:00
Kubilay Kocak
0c47b7db42 dns/nsd: Remove IPv6 option, fixes build
Remove the IPv6 option that is causing builds to fail when it is
disabled. The issue does not affect package users, as it was a default
option.

The issue has been fixed upstream [1] and will be included/renabled
in the next version update.

While I'm here:

* Switch to USES=ssl
* Add --enable-ipv6 in CONNFIGURE_ARGS to ensure it's explicitly enabled

[1] https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=800

PR:		211303
Reported by:	<vfx9as gmail com>
Approved by:	maintainer <jaap NLnetLabs nl>
MFH:		2016Q3
2016-07-28 11:23:59 +00:00
Ruslan Makhmatkhanov
0f0f2b087d dns/nsd: update to 4.1.10
- turn on IPV6 option by default

PR:		210276
Submitted by:	jaap@NLnetLabs.nl (maintainer)
2016-06-18 21:45:42 +00:00
Dmitry Marakasov
c86e9d9724 Remove NLS, DOCS, EXAMPLES and IPV6 from OPTIONS_DEFAULT, they are enabled by default anyway and don't need to be listed
Approved by:	portmgr blanket
2016-05-23 20:35:01 +00:00
Dmitry Marakasov
e87a8bd319 - Fix trailing whitespace in pkg-messages
Approved by:	portmgr blanket
2016-05-19 11:09:14 +00:00
Mathieu Arnold
4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00
Olli Hauer
a681562c84 - update to 4.1.9
BUG FIXES:
- Change the nsd.db file version because of nanosecond precision fix.

Approved by:    jaap@NLnetLabs.nl (maintainer)
PR:             208043
MFH:            2016Q1
2016-03-15 19:56:28 +00:00
Olli Hauer
68a2249e71 - update to 4.1.8
- add ability to build agains openssl or libressl from ports
- add MUNIN_PLUGIN_IMPLIES= BIND8_STATS
- use @sample macro in pkg-plist for nsd.conf
- s/exec/postexec/ pkg-plist

FEATURES:
- #732: tcp-mss, outgoing-tcp-mss options for nsd.conf, patch
  from Daisuke Higashi.
- #739: zonefile changes when mtime is small are detected on reload,
  if filesystem supports precision mtime values.
- RR type CSYNC (RFC7477) syntax is supported.

BUG FIXES:
- take advantage of arc4random_uniform if available, patch from
  Loganaden Velvindron.
- Fix flto check for OSX clang.
- Define _DEFAULT_SOURCE with _BSD_SOURCE for glibc 2.20 on Linux.
- Fix #736: segfault during zone transfer.
- Fix #744: Fix that NSD replies for configured but unloaded zone
  with SERVFAIL, not REFUSED.

PR:		207951
Submitted by:	jaap@NLnetLabs.nl (maintainer)
MFH:		2016Q1
2016-03-14 06:59:14 +00:00
Martin Wilke
db0a5d49d9 - Fix a typo
PR:		205373
Submitted by:	TEUBEL György
Approved by:	mat (mentor), maintainer
Differential Revision:	D4604
2015-12-18 05:45:00 +00:00
Martin Wilke
31689742d2 - Update to 4.1.7
- Switch to options helper

PR:		205292
Submitted by:	maintainer
Approved by:	mat (mentor)
Differential Revision:	D4579
2015-12-16 05:09:16 +00:00
Erwin Lansing
7a63ee5883 Update to 4.1.6
Major Bug Bug Fixes:
- This release fixes segfault after start when many interfaces are in use.
- This version returns the EDNS bad version response with the AD flag
  unset for improved conformance.

Minor Buf Fixes:
- Fix #701: Fix that AD=1 set in a BADVERS response.
- Fix typo in zonec.c inside error message.
- Fix #711: Document that debug-mode yes is used for staying
  attached to the supervisor console.
- Document verbosity 3 prints more information.
- nsd-checkconf warns for master zones with no zonefile statement.
- Fix start failure when many file descriptors are in use.
- The servfail rcode is not printed with a space in the middle.
- print failed token for config syntax error or parse error.

PR:		204533
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Sponsored by:	DK Hostmaster A/S
2015-11-13 22:22:39 +00:00
Erwin Lansing
2aec7160bb Upgrade from 4.1.3 to version to 4.1.5 (includes up 4.1.4)
FEATURES:
- RFC7553 RR Type URI support.
- removed hardcoded interface limit, --with-max-ips removed.
- Admitted axfrs are logged at verbosity 1. Refused at verbosity 2.

Major BUG FIXES:
- Fix NSID response for short edns sizes.
- Fix that for expired zones NSD performs an AXFR and accepts newer
  and older serial numbers.

PR:		203231
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Sponsored by:	DK Hostmaster A/S
2015-09-21 16:03:54 +00:00
Erwin Lansing
d506538d21 Update to 4.1.3
PR:		201261
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Sponsored by:	DK Hostmaster A/S
2015-07-02 07:49:57 +00:00
Dmitry Marakasov
4ae2b42965 - Add option to install Munun plugin
PR:		199798
Submitted by:	tgyurci@gmail.com
Approved by:	maintainer timeout
2015-05-18 17:44:32 +00:00
Dmitry Marakasov
22a9b9a462 - Add CPE info
Approved by:	portmgr blanket
2015-05-10 05:09:34 +00:00
Erwin Lansing
a03b9498f4 Update to 4.1.2
- Logging improvements
- Zone parser bug fixes
- Integer overflow bug fixes

PR:		199462
Submitted by:	Jaap Akkerhuis <jaap@nlnetlabs.nl> (maintainer)
2015-04-16 11:04:36 +00:00
Erwin Lansing
3fd141a34b update to 4.1.1
Major Features:

- RFC 7344: CDS and CDNSKEY (read record types).
- per zone statistics with --enable-zone-stats
- Disabled use of SSLv3 in nsd-control.
- Synthesize CNAMEs with same TTL as DNAME.
- nsd-checkconf -f prints out full name of pidfile (with dir). [1]

PR:		197291,
		196449 [1]
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl>,
		Adam Zaleski <adam@zaleski.org> [1]
2015-02-08 02:42:51 +00:00
Olli Hauer
8e0a792881 - use new @dir macros to create empty folders 2014-12-01 23:25:50 +00:00
Baptiste Daroussin
530a33f611 Cleanup plist 2014-10-27 12:13:22 +00:00
Bryan Drewery
e282aa059a Chase r369850 for updated nsd user information 2014-10-02 19:12:17 +00:00
Erwin Lansing
1a1d82f1eb - Update to 4.1.0
- Use nsd instead of bind user

This release has new features and bugfixes.  In nsd.conf you can
configure database: "" this makes NSD not use the large mmapped nsd.db
file, but instead read and write the zonefiles in text format, which
saves about 50% of the memory usage.  Also zonefile reading and
writing has been optimised to be faster, as well as processing time
for zone transfers.  NSD writes the (changed) zonefiles every hour.

The new nsd-checkzone tool reports if a zonefile parses so you can check
it before reading it into the daemon.

A bug is fixed where NSD 4 causes rising load average and memory
consumption on Linux systems, which is caused by a bug in Linux that
slowly deteriorates system performance by repeated recursive forks.

Full release notes: http://open.nlnetlabs.nl/pipermail/nsd-users/2014-September/002007.html

PR:		193332
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Sponsored by:	DK Hostmaster A/S
2014-09-05 11:20:42 +00:00
Baptiste Daroussin
b564653452 Only use libevent2
Remove libevent as libevent2 is providing a good compatibility interface as well
as providing better performances.
Remove custom patches from libevent2 and install libevent2 the regular way
Mark ports abusing private fields of the libevent1 API as broken
Import a patch from fedora to have honeyd working with libevent2
Remove most of the patches necessary to find the custom installation we used to
have for libevent2

With hat:	portmgr
2014-07-24 13:32:58 +00:00
Guido Falsi
22fe874022 - Update to 4.0.3
PR:		ports/187596
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2014-03-24 12:55:26 +00:00
Olli Hauer
6a316de552 - remove pre-patch delay
- remove PKG-INSTALL from post-install (not used with staging)
- move pkg-install and pkg-deinstall into pkg-plist

Approved by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer, per PM)
2014-02-23 23:31:43 +00:00
Pawel Pekala
0f9de52d03 Prefer CONFIGURE_ENABLE over CONFIGURE_ON/OFF
Suggested by:	mat@
2014-02-22 13:14:55 +00:00
Pawel Pekala
117125bd1d - Fix man installation after port was stagified [1]
- Convert LIB_DEPENDS to new format [1]
- Remove leading article from COMMENT
- Switch to options helpers
- Conditional installation of docs is not needed with stage
- Don't show pkg-message twice

PR:		ports/186693 [1]
Submitted by:	Denis Generalov <gd.workbox@gmail.com>
Approved by:	maintainer
2014-02-22 12:47:25 +00:00
Erwin Lansing
4850dccd63 There was a wrong rc script in the port preventing the daemon to run.
Added STAGING support

Added LICENSE (NSD3CLAUSE) statement

Other small changes to make portlint more happy

PR:		186631
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2014-02-12 10:46:24 +00:00
Bernhard Froehlich
13c57fa0a8 - Update to 4.0.1
- Cleanup rc script

FEATURES:
- recognizes ip-address and interface as synonyms for convenience.
- Support for EUI48 and EUI64 RR types enabled by default (RFC 7043).
- Support for CAA RRtype (RFC 6844).
- NSID can be set with "ascii_somestring" in ascii.

BUG FIXES:
- Fix xfrd when zone transfer TCP contains zero length packets.
- Fix for NSEC3 zones where parent zone is co-hosted, also NSEC3,
because AXFRs overwrote nsec3 administration in the child zone.
- Fix that bad IXFR updates do not result in double SOA records,
and that an AXFR is started (attempted) when the zone state seems
to be inconsistent with the master's zone state.
- Log ip address for sendto and sendmmsg failures.
- Fix segfaults after read of zones with rr type WKS from zonefile.
- Seed PRNG for openssl at start of daemon, fixes SSL connection issue.
- Bugfix #534: IXFR query loop over UDP for zones that are unchanged.
- (same as in 3.2.16): fix wildcard cname to nxdomain repeated rrset.
- (same as in 3.2.16): Bugfix #542: Match RRSIG TTL with SOA TTL in
negative response.
- Check if configure in srcdir collides with outofdir build.
- Fix #546: output format errors in nsd_munin_ (Thanks Tom Hendrikx).
- Fix printout of high-chars in TXT on NetBSD.

PR:		ports/186308
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2014-02-07 14:44:23 +00:00
Erwin Lansing
17867420bb Please welcome NSD 4.0.0
For all new features, see
http://www.nlnetlabs.nl/svn/nsd/tags/NSD_4_0_0_REL/doc/NSD-4-features

This version replaces the nsdc control program with nsd-control.
This requires some manual setup with nsd-control-setup and editing
of the config files. nsd-control is incompatible with nsdc so when
that is used in scripts, these should be adapted.

NSD 3 is still supported as dns/nsd3.

PR:		183888
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl>
2013-11-12 13:24:45 +00:00
Baptiste Daroussin
24a1652ff4 Add NO_STAGE all over the place in preparation for the staging support (cat: dns) 2013-09-20 16:31:57 +00:00
Pawel Pekala
01edb2cc99 - Update to version 3.2.16
- Add EUI_RRTYPES option

While here:
- Remove leading article from COMMENT
- Convert tab to space in WWW: line

PR:		ports/180741
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2013-07-23 15:32:49 +00:00
Beech Rintoul
ddc6276244 - Add multi-instance support
PR:		ports/176156
Submitted by:	Darren Pilgrim <darren.pilgrim@gmail.com>
Approved by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2013-02-25 21:59:11 +00:00
Erwin Lansing
fa37780fed - Update to 3.2.15
Features
* Support for ILNP RR types: NID, L32, L64, LP (RFC6742).
* RRL, --enable-ratelimit at configure time and config options.
* TSIG initialization only fails when there is no digest found at all.
Bugfixes
* Bugfix #478: Declaration after statement (for gcc 2.95).
* Bugfix #483: Better error message in case of TSIG error.
* Bugfix #485: TTL should not be greater than 2^31 - 1.
* Fix RCODE when CNAME loop final answer does not exist,
should return NXDOMAIN as stated by RFC 6604.
* Fix --disable-full-prehash bug, where after multiple incoming IXFRs,
NSEC3 can be removed unjustified.

PR:		175837
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2013-02-05 09:42:31 +00:00
Bryan Drewery
a97b0b8e46 - Update to 3.2.14
- Trim header

Changes:
  * Bugfixes
  * New Feature: Use of writev, to improve TCP response time

PR:		ports/173261
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Feature safe:	yes
2012-11-01 18:41:15 +00:00
Tom Judge
0318e17c25 Fix typo in options handling.
PR:		ports/170794
Submitted by:	Artis Caune <Artis.Caune@gmail.com>
Approved by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Approved by:	eadler (mentor)
2012-08-23 12:27:28 +00:00
Ryan Steinmetz
c90f865d10 - Update to 3.2.13
- Cleanup whitespace
- Document vulnerability in dns/nsd (CVE-2012-29789)

PR:		ports/170208
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Security:	17f369dc-d7e7-11e1-90a2-000c299b62e1
2012-07-27 12:39:06 +00:00
Chris Rees
afd23bb21a Update to 3.2.12
BUG FIXES:
- Fix for VU#624931 CVE-2012-2978: NSD denial of service
vulnerability from non-standard DNS packet from any host
on the internet.

PR:		ports/170001
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Security:	CVE-2012-2978
2012-07-20 15:09:18 +00:00
Jase Thew
6c3f98ad34 - Fix LARGEFILE option typo that resulted in largefile support being
constantly disabled.

PR:		ports/169952
Spotted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Approved by:	flo (mentor)
2012-07-17 23:49:20 +00:00
Jase Thew
9a62263693 - Update to 3.2.11 [1]
- Convert to optionsNG, add DOCS option
- Replace bsd.port.{pre,post}.mk includes
- Remove non-existent DNSSEC, TSIG, NSID options
- Fix typo in NSEC3PREHASH option CONFIGURE_ARGS
- Replace hardcoded ETCDIR in pkg-plist

PR:		ports/169731 [1]
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Approved by:	flo (mentor)
2012-07-17 10:36:25 +00:00
Frederic Culot
551d6df7e9 - Update to 3.2.10
PR:		ports/165185
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
2012-02-16 17:04:08 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Ryan Steinmetz
b1a382328d - Remove post-install check to conditionally run 'nsdc patch'
Submitted by:	me
Approved by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Feature safe:	yes
2011-11-30 22:56:10 +00:00
Martin Wilke
2b119fdfb6 - Update to 3.2.9
PR:		162782
Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Feature safe:	yes
2011-11-28 11:36:53 +00:00
Olli Hauer
b12306e4bc - update to version 3.2.8
Bugfixes:
    Do setusercontext before chroot, otherwise login.conf etc. are required inside chroot.
    Bugfix #216: Fix leak of compressiontable when the domain table increases in size.
    Bugfix #348: Don't include header/library path if OpenSSL is in /usr.
    Bugfix #350: Refused notifies should log client ip.
    Bugfix #352: Fix hard coded paths in man pages.
    Bugfix #354: The realclean target deletes a bit too much.
    Bugfix #357, make xfrd quit with many zones.
    Bugfix #362: outgoing-interface and v4 vs. v6 leads to spurious warning messages.
    Bugfix #363: nsd-checkconf -v does not print outgoing-interface ok.
    Bugfix: nsd-checkconf -o outgoing-interface omits NOKEY.
    Undo Bugfix #235: Don't skip dname compression, messes up packets that do need compression.

PR:		ports/155785
Submitted by:	Jaap Akkerhuis <jaap _at_ nlnetlabs.nl> (maintainer)
2011-03-30 13:48:13 +00:00
Pav Lucistnik
99c5cae31f - Update to 3.2.7
PR:		ports/154264
Submitted by:	Jaap Akkerhuis <jaap@nlnetlabs.nl> (maintainer)
Feature safe:	yes
2011-01-26 11:32:51 +00:00
Baptiste Daroussin
02e52a4d95 - fix status command in rc file
- while here remove MD5 entry
bump port revision

PR:		ports/152565
Submitted by:	eli <elij.mx _at_ gmail.com>
Approved by:	Jaap Akkerhuis <jaap _at_ nlnetlabs.nl>
2010-11-25 16:04:00 +00:00
Baptiste Daroussin
ada37ff89a improvements on rc script:
- support reload command
 - use nsdc cli has command and let it perform the actual start,stop,... of the daemon
 - at start check if the database exists if not built it (this prevent the daemon to fail at starting)
 - remove the now userless sleep in stop command

bump portrevision

PR:             ports/152331
Submitted by:   Philippe Pepiot <phil _at_ philpep.org>
Approved by:    Jaap Akkerhuis <jaap _at_ NLnetLabs.nl> (maintainer)
2010-11-24 15:44:15 +00:00