Commit Graph

159 Commits

Author SHA1 Message Date
itojun 8912e04d45 sync w/ 8.3.5 2003-06-03 07:33:24 +00:00
itojun 261b3b5bbe ISC BIND 8.3.5
Highlights vs. 8.3.4
        Maintenance release.

        --- 8.3.5-REL released --- (Mon Jun  2 03:15:53 PDT 2003)
1540.	[bug]		remove potential memory leak from net_data_create().
1537.	[bug]		dig buffer overrun with large command lines.
1535.	[bug]		winnt: large zone transfers failed.
1536.	[cleanup]	use NS_MAXMSG to define TCP buffers.
1534.	[func]		The advertised EDNS UDP buffer size can now be set
			via named.conf (edns-udp-size).
1533.	[bug]		don't artificially restrict the update message size.
1532.	[bug]		use maximum sized answer buffers in res_findzonecut().
1530.	[bug]		nslookup computed incorrect reverse lookup for IPv6.
1529.	[lint]		unused variable in dnsquery.c::main().
1528.	[bug]		getaddrinfo() incorrectly rejected a numeric service
			under certian circumstances.
1527.	[proto]		add ns_t_apl (42).
1526.	[doc]		res_{get,set}servers().
1523.	[bug]		getipnodebyname with AI_ADDRCONFIG set was broken
			on HPUX 11.11.  Detect IPv6 interfaces under linux.
1519.	[port]		decunix: conflicting setnetgrent() and innetgr()
			prototypes.
1518.	[cleanup]	silence "No root nameservers for class XX" when
			"forward only;" is set in options.
1517.	[cleanup]	stop using putshort/putlong internally.
1513.	[bug]		use ipnodes.{byname,byaddr} for IPv6 NIS lookups.
			Add support for "YP_MULTI_".
1511.	[cleanup]	don't use argument names in function prototypes.
1510.	[port]		openbsd uses /bsd not /kernel.
1506.	[bug]		named could sometimes set tc incorrectly.
1505.	[bug]		potential overflow if pointer arithmetic wrapped.
1503.	[bug]		named could make unnecessary queries for glue if the
			additional section was full.
1501.	[port]		decunix: OSF 3.2 does not have native 64 bit support.
1500.	[port]		linux: namespace collision.
1499.	[port]		linux: #include <time.h> bin/dig/dig.c
1498.	[bug]		ns_makecanon() could under read its destination buffer
			by one character and fail to properly canonicalise.
1497.	[bug]		res_mkupdate() used compression pointers when it
			shouldn't.
1496.	[bug]		res_mkupdate() didn't support NAPTR.
1494.	[bug]		memory leak on thread destruction if gethostbyname() /
			getnetbyname() have been called by the thread.
1493.	[bug]		check scope for link local servers.
1492.	[placeholder]
1491.	[cleanup]	indentation problems.
1490.	[bug]		the seek offset was miscalculated when truncating
			the ixfr log.
1489.	[func]		named no longer queries for missing additional A6
			records.
1488.	[port]		decunix: TruCluster support.
			See port/decunix/TruCluster.
1487.	[bug]		getnetgroup() takes (char **) not (const char **).
1486.	[func]		res_query() now generates more/better debug on failure
1485.	[func]		res_send() records the nameserver the response came
			from.  Dig retrieves this rather than reporting the
			first address.
1484.	[bug]		dig use sin.sin_port for IPv4.
1483.	[bug]		nslookup could dereference a NULL pointer under certain
			circumstances.
1482.	[bug]		provide local storage for localtime_r result.
1481.	[bug]		tv.tv_sec and time_t are not always the same type.
1480.	[bug]		gethostbyname(), getaddrinfo() could drop address
			if the previous call contained one of the new
			addresses.
1479.	[func]		try known lame servers if all other servers have
			failed.
1478.	[cleanup]	libbind: don't look for A6 records, don't follow
			DNAME record (use the CNAMES), remove some bitstring
			related functions.
1477.	[cleanup]	libbind: namespace cleanup (irs_* to __irs*,
			dst_* to __dst_* and tree_* to __tree*)
1476.	[bug]		dig wasn't using a random query id.
1475.	[bug]		"query-source address <listening interface> port *"
			failed to use a system assigned port as documented.
1474.	[bug]		named wasn't seeing cached NODATA CNAME records.
1473.	[bug]		nslookup: buffer overrun when looking up reverse
			IPv6 addresses under IP6.INT when not found under
			IP6.ARPA.
1472.	[port]		freebsd; current has pselect().
1471.	[port]		'dig -P' failed on some platforms.
1470.	[bug]		J.ROOT-SERVERS.NET is now 192.58.128.30.
1467.	[deleted]
1461.	[func]		return referrals for glue (NS/A/AAAA) if recursion is
			disabled (recursion no;).
1460.	[bug]		NS_MD5RSA_MAX_BITS was not correct.
1459.	[bug]		ns_sign2() could fail to compute a correct signature
			if the TSIG ownername was compressed.
1458.	[bug]		host: spurious "Unknown algorithm" message with default
			zone listing.  missing white space before '(' in SOA
			format.
1457.	[bug]		bison didn't like ns_parser.y.
1456.	[doc]		document auth-nxdomain default is "no" (see # 524).
1455.	[bug]		named failed to allow a cached NODATA response for
			a ANY query to be retrieved.
1454.	[contrib]	nsverifier from Bob.Whelton@qwest.com.
1453.	[bug]		SOA answers should only be cached for the current
			tick.
1452.	[bug]		don't cache -ve response SOA record.
1451.	[port]		bsdos: maybe_fix_includes is not required.
1450.	[bug]		hint zones don't need to be reloaded when a "child"
			zone is removed.
1449.	[bug]		it was possible to orphan glue records.  this could
			lead to panics in stale().
1438.	[bug]		glue from a parent zone beneath a child zone could
			be deleted by loading a child zone.
1437.	[bug]		linux: probe_ipv6 was broken.
1436.	[port]		decunix: update sys/bitypes.h
1435.	[func]		named-xfer: log the zone name when reporting query
			sent.
1434.	[doc]		the man page for dn_expand failed to document eomorig.
1433.	[lint]		remove unused variable.
1432.	[func]		log TSIG key name if used with zone transfer.
1431.	[func]		new category "update-security".
1430.	[func]		libbind: the default nameservers now include ::1/::
			as well as 127.0.0.1/0.0.0.0 if none are specified in
			resolv.conf.
1429.	[port]		libbind: use strlcat/strlcpy if available.
1428.	[port]		eventlib.c: cast tv_sec to long when calling *printf().
1427.	[func]		define INT8SZ
1426.	[port]		res_dprintf() now supports format checking w/ gcc.
1425.	[bug]		'aa' was not being set appropriately with cross zone
			CNAMES.
1424.	[cleanup]	ip6_str2scopeid() now returns u_int32_t.
1423.	[bug]		'ndc restart' could fail to restart named if there
			were no arguments to named.
1422.	[cleanup]	optarg() etc. are declared in unistd.h.
1421.	[bug]		clear and check errno when calling strtoul().
1420.	[cleanup]	use %p instead of %#x for printing pointers.
1419.	[cleanup]	getinfo(): kill buflen manipulation.
1418.	[port]		cast pointers to (size_t) when aligning.
1417.	[cleanup]	make1101inaddr(): kill size manipulation.
1416.	[port]		log_vwrite() now supports format checking w/ gcc.
1415.	[port]		irix: probe for in6addr_any.
1414.	[bug]		strtoul() cast (char*) to (unsigned char*).
1413.	[bug]		host: soa values are not signed.
1412.	[bug]		fix numeric port range check in getaddrinfo().
1411.	[port]		freebsd/netbsd/openbsd: #define USE_IFNAMELINKID.
1410.	[port]		probe for sin6_scope_id when probing for IPv6 structs.
1409.	[bug]		dig: reverse6 computed a incorrect nibble string.
1408.	[cleanup]	res_mkquery.c: kill buflen manipulation.
1407.	[port]		namespace clash EV_ERR -> EV_SETERR
2003-06-03 07:04:45 +00:00
he 07b4ce5d12 Track type changes in <arpa/inet.h>, so that BIND compiles again. 2003-05-06 07:31:43 +00:00
wiz e69dc8ffac Fix some broken mdoc. Closes PR 21124 from Igor Sobrado. 2003-04-13 16:35:02 +00:00
wiz 2319d7cfda IPsec, not IPSEC. 2003-04-06 20:11:24 +00:00
wiz 1f2f4a71fc It is spelled ARPANET. Igor Sobrado, PR 19691. 2003-04-06 19:39:46 +00:00
perry a8617acba3 Spelling errors, some from Igor Sobrado in PR misc/19909
XXX These need to be fed back to ISC somehow
2003-03-31 17:54:04 +00:00
wiz 83de4abed2 Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
wiz 46ebb6111a Correct spelling of "overridden". Found in follow-up to PR 20718. 2003-03-15 19:24:02 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
wiz fe6e776886 Misc typo fixes from Adrian Mrva. 2002-12-21 13:28:25 +00:00
wiz bc4d201af4 finished with two is, from Adrian Mrva. 2002-12-21 12:28:59 +00:00
wiz 0e4ac4f3e5 incorporated with two os, from Adrian Mrva. 2002-12-21 12:28:14 +00:00
itojun 729df1257b sync with bind 8.3.4. 2002-11-17 14:09:52 +00:00
itojun 90a2edbc75 apply http://www.isc.org/products/BIND/patches/bind833.diff to fix recent
vulnerabilities:

* BIND: Remote Execution of Code (BIND 4 & 8)
* BIND: Multiple Denial of Service (BIND 8 only)
2002-11-14 02:04:27 +00:00
itojun 73c2dd3286 fix dig -x ip6addr. PR 18193. 2002-09-06 04:50:02 +00:00
itojun 59c47fdbd5 resolver(5) -> resolv.conf(5). PR 17691 2002-07-23 22:43:08 +00:00
jdolecek 580acd6b37 Fix bug introduced in previous rev 1.5 - the for() body in decode_bitstring()
needs to be wrapped with curly braces.
Pointed out by Greg A. Woods in bin/17525.
2002-07-10 19:30:14 +00:00
itojun 44f496c00a sync with audit result from kame.
- sprintf() can return negative value on error, so p += sprintf(p, blah)
  is unsafe
- signed/unsigned mixup
- wrong assumption: sizeof(time_t) <= sizeof(int)
- need to init errno to 0 before strtoul()
2002-07-04 23:30:39 +00:00
itojun b5c8e03553 no need to care about crypto portion on import - license is
not compatible with netbsd.
2002-07-04 22:46:04 +00:00
itojun 7b2c9d8551 be consistent with libc getaddr/nameinfo. 2002-06-28 06:40:51 +00:00
itojun 9421d2b57a patch from pkgsrc - initialize *res to NULL 2002-06-28 06:21:29 +00:00
itojun 2adbce1610 kill one more use of tandem variable. 2002-06-28 06:20:55 +00:00
itojun 2200386ee7 sync with 8.3.3. 2002-06-28 06:11:47 +00:00
itojun e2ab8bb835 BIND 8.3.3. fixes buffer overrun in resolver code. 2002-06-28 05:59:12 +00:00
itojun 70cb50a3c5 typo (unneeded whitespace) 2002-06-20 12:14:08 +00:00
itojun 65ef1d4426 correct conflicts.
sync document with reality (dig/host/nslookup now does IPv6 transport!)
2002-06-20 12:01:49 +00:00
itojun ce924b0f55 sync with 8.3.2. 99% of conflicts were due to $NetBSD$ tag. 2002-06-20 11:42:53 +00:00
itojun 123de7c9ca ISC BIND 8.3.2. various IPv6 fixes and correctins. 2002-06-20 10:29:14 +00:00
kleink f7d2af261c Sync with libc implementation (change size argument from size_t to
socklen_t); pointed out by Chris Gilbert.
2002-05-15 20:58:19 +00:00
simonb 1706b9a6ec There's no use assigning the output of strtoul() to a 32-bit variable
then checking that against ULONG_MAX.  Instead use a "unsigned long"
as the temporary variable.  Then check against UINT32_MAX before
assigning back to the original variable.
2002-05-09 03:14:14 +00:00
bjh21 c701db92ac Remove .cvsignore file.
<URL:http://www.netbsd.org/developers/cvs-repos/notes.html#cvsignore>
2002-04-04 17:08:24 +00:00
bjh21 dca4ae94d6 When checking that a potentially-unsigned enum is >= 0, assign it to an int
first.  This is necessary to avoid warnings with -fshort-enums.  Casting
to an int really should be enough, but turns out not to be.

This change will be documented in doc/HACKS.
2002-03-09 13:22:52 +00:00
wiz 53036766b1 Drop trailing spaces after section names. 2002-03-06 14:20:34 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
wiz a3de79a4f7 Fn argument doesn't need (), add space between macro name and argument. 2001-12-07 19:18:14 +00:00
wiz 1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
mrg 0a8258e16a back out previous; it is handled by etc/rc.d/named. 2001-08-24 13:25:57 +00:00
mrg d7003aa4a3 reapply (relevant parts of) lost patch:
revision 1.3
date: 1999/02/22 02:37:27;  author: mrg;  state: Exp;  lines: +19 -1
if we are chrooting, write a symlink for the pid file so that ndc, etc,
continue to work as normal.  this allows named to run in a chroot jail
with zero loss of functionality.
2001-08-24 08:37:33 +00:00
wiz aa7e878621 Remove trailing whitespace in Dt, and some xref fixes. 2001-06-05 12:49:36 +00:00
wiz 4abaa1bb50 No argument for .Os. 2001-06-05 11:11:07 +00:00
wiz 48a36de9c0 Don't give .Os an argument, not even 'NetBSD' (default includes version). 2001-06-05 10:08:03 +00:00
itojun 2d9b34e41a no import needed for crypto tree 2001-05-27 04:45:20 +00:00
itojun 4cd3525823 upgrade to 8.2.4. 2001-05-17 22:59:37 +00:00
itojun ddb7465740 BIND 8.2.4 2001-05-17 22:41:07 +00:00
itojun 942f3643b6 actually split crypto source. 2001-05-17 20:52:58 +00:00
itojun 900d6f1790 BIND 8.2.4 2001-05-17 20:45:58 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
itojun a317219c0b copy "Version" file for import. 2001-02-11 07:04:20 +00:00
itojun 47b90546f9 BIND 8.2.3 2001-02-11 06:41:22 +00:00
itojun 37ea810d37 BIND823 bug ID 1150: forwarders: it was possible to use freed memory. 2001-02-06 10:02:04 +00:00
itojun b4eb727352 separately populate lib/{cylink,dnssafe} into basesrc/crypto/dist/bind. 2001-01-27 08:09:42 +00:00
itojun 93ea2d0c7a re-add md5 from BIND8 kit. lib/dnssafe does not compile without it. 2001-01-27 07:58:25 +00:00
itojun 1a7fc7b687 upgrade to BIND 8.2.3. the upgrade is critical (security fixes).
please test.
2001-01-27 07:21:56 +00:00
itojun 10a27e85b1 BIND 8.2.3 2001-01-27 06:15:38 +00:00
lukem 1509cd1434 #undef USE_LOG_CONS, to prevent openlog() being called with LOG_CONS.
there's no real justification for most programs to spam /dev/console just
because syslog can't talk to syslogd isn't available, especially chatty
programs such as bind.  (init, shutdown, reboot are probably exceptions here)
2001-01-11 02:39:43 +00:00
itojun 08d2a7f10e don't undefine _res. _res is redefined to bind__res for avoiding
symbol conflict.
2000-11-13 20:58:29 +00:00
itojun 7da1bb7a9c synchronize with BIND 8.2.2-P7.
- resolve conflicts (there are many conflicts with $NetBSD$ tags -
  dunno why they happen).
- type pedant (couple of typecasts).

correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
2000-11-10 09:56:56 +00:00
itojun 0f73fe0237 remove yacc-generated header 2000-11-10 09:51:03 +00:00
itojun 1dee783927 import LICENSE_RSA. maybe we should import other [A-Z]* too. 2000-11-10 09:41:14 +00:00
itojun 7992052d11 bind 8.2.2-P7 2000-11-10 09:33:54 +00:00
itojun 2ca8e58e8e remove $Header$ from original. remove yacc/lex generated files, which are
unnecessary for import.
2000-11-10 09:23:42 +00:00
lukem 51ea0cba47 remove unnecessary command name after .Nm 2000-11-07 05:51:54 +00:00
is 7f029e5684 Format string cleanups by Bill Sommerfeld. 2000-10-08 20:03:12 +00:00
is 8a1fd03ca4 More format string cleanup by sommerfeld. 2000-10-08 19:56:12 +00:00
is 5b6de67306 Format string cleanups by Bill Sommerfeld. 2000-10-08 19:41:16 +00:00
is 0040b133c2 Format string cleanup by sommerfeld, with a correction by myself. 2000-10-08 10:03:11 +00:00
is 170b9a3198 Format string cleanup from sommerfeld. 2000-10-08 09:53:43 +00:00
mrg 0a190e7396 do not #undef _res; we want to get any #define our local resolv.h has.
fixes last part of PR#10651.
2000-08-14 11:33:34 +00:00
mrg eb02116cbb prefix all symbols with "bind_" to avoid conflicting with libc symbols of
the same name.  programs should keep out of __* land, anyway... fixes most
of PR#10651.
2000-08-14 11:31:56 +00:00
itojun 9e8ad51e02 mention lack of support in DNS query/reply over IPv6 transport,
since it seem to confuse people.
2000-06-14 05:54:30 +00:00
he cbc0b13fa7 Revert away from automatically generating port_ipv6.h, and install
a static once-generated version instead.  We know we have IPv6
headers available here.

The probing was problematical for several reasons:
 o it probed the host headers, not the headers in the build or DESTDIR
   tree (could be fixed in another way)
 o the probe_ipv6 script mucks with PATH, which would be problematical
   for cross compilation.
2000-05-06 16:07:42 +00:00
itojun b1c169c079 BIND 8.2.2-P5 2000-04-28 03:39:16 +00:00
itojun 194cb3f033 on a second thought dist/bind/doc/bog looks better.
(we may need to put other doc/* in the future)
2000-04-28 03:37:55 +00:00
itojun f947c881f2 populate doc/bog into dist/bind/bog. part of PR9997. 2000-04-28 03:34:00 +00:00
itojun 97cd11ff66 need string.h for prototype of memset(). fixes build breakage on alpha.
From: Tim Rightnour <root@garbled.net>
2000-03-02 18:08:44 +00:00
itojun 548cc318ca do not try to use BIND4 code in libc.
dig/host/whatever assumes that it is using BIND8 code.  mixing BIND4 in
libc with BIND8 code will result in very strange behavior, or program panics.

it is not necessary for dig/host/whatever to obey /etc/nsswitch.conf, actually
dig(1) is explicit about it.

now dist/bind is almost clean BIND822p5, with the following exception:
- /etc/irs.conf will never be visited when running BIND8 toolchain,
  to make it less complex.  the search order for BIND8 toolchain is
  defined in dist/bind/lib/irs/gen.c:default_map_rules().
and usr.sbin/bind compiles them in BSD make framework, with no tricks at all.
2000-03-01 10:49:58 +00:00
garbled 3bc0a706ac Add CPPFLAGS so this can be cross-compiled. 1999-12-24 19:11:25 +00:00
christos e475708401 - Add missing .El's
- It is .Bl -hang not -ohang
1999-11-29 18:28:18 +00:00
veego 9f3c20bc0f Use the libc md5 function. 1999-11-28 17:39:06 +00:00
veego 7411de7164 Add the prototype of findzonesoa to fix the compile warning in ns_ixfr.c. 1999-11-21 10:40:10 +00:00
veego b1db7e28e8 Sigh, how many (void *) do I need to remove from this source code? 1999-11-21 10:31:22 +00:00
veego adecc3d422 Remove the (void *) in front of the sp->s_rfd. 1999-11-20 20:48:27 +00:00
veego a8baad4e90 Remove the (void *) in front of the ctx->sock. 1999-11-20 20:38:54 +00:00
veego 72b5f9504d Include <string.h> to get the prototype of memcpy. 1999-11-20 20:06:45 +00:00
veego f1ef51cf63 s/u_int32_t/size_t/ in line 324 to fix an LP64 problem. 1999-11-20 20:03:47 +00:00
veego 1b0bbfa434 Include <string.h> to get the prototype for memcpy. 1999-11-20 20:02:49 +00:00
veego 9536c9fbfd Automatically generated files. 1999-11-20 19:19:12 +00:00
veego 2a9ceca3f0 We don't need this include files. 1999-11-20 19:17:46 +00:00
veego 1506ac921f Disable the '#undef _res', otherwise namespace.h doesn't work here. 1999-11-20 19:16:55 +00:00
veego da9f827186 Define RES_SET_H_ERRNO differently because we don't use IRS and disable
some defines which needs to be defined in namespace.h and not here.
1999-11-20 19:15:54 +00:00
veego 1fa9723fe7 Disable IRS and include namespace.h. 1999-11-20 19:14:30 +00:00
veego ad4f1fc630 Don't call irs_destroy. 1999-11-20 19:14:00 +00:00
veego 7060f068de s/__sym_ntos/sym_ntos/ 1999-11-20 19:13:29 +00:00
veego 8520a92669 Fix LP64 problem. 1999-11-20 19:12:58 +00:00
veego 7be5838fa4 Add NetBSD RCS Id's. 1999-11-20 19:03:47 +00:00
veego 7532ce689d Import bind 8.2.2-P5. 1999-11-20 18:53:57 +00:00