Commit Graph
89 Commits
Author SHA1 Message Date
Brian Wellington 0df9b6e53b The lwresd -C option had a few problems. 2000-10-13 22:35:46 +00:00
Brian Wellington 8a23742754 lwres can now be served by named, with the lwres{} block in named.conf.
If run as lwresd, look for /etc/lwresd.conf or a replacement specified
with -c, otherwise read /etc/resolv.conf or a replacement specified with -C.
2000-10-04 23:19:01 +00:00
Brian Wellington e79a7d195e only allow decimal values for command line parameters 2000-09-28 21:21:31 +00:00
Brian Wellington d999beb1b0 log the number of CPUs used. 2000-09-28 21:18:07 +00:00
Brian Wellington e2b5209991 496. [bug] named didn't sanity check numeric parameters [RT #361] 2000-09-28 21:09:51 +00:00
Andreas Gustafsson 531dd7b648 support 'named -l' as a synonym for 'lwresd', so that the system
tests will work despite libtool losing argv[0]
2000-09-16 01:42:06 +00:00
Michael Graff 4e96d1fc06 restructure creating and cleanup to more closely fit the other subsystem's methods. This removes one more todo item from my list. 2000-09-07 21:54:40 +00:00
Brian Wellington 5b02858d4e named -v prints the version number. 2000-08-30 20:40:04 +00:00
Brian Wellington 529ff4b495 HAVE_RANDOMDEV -> PATH_RANDOMDEV 2000-08-17 19:17:57 +00:00
Brian Wellington a14613fce9 --with-randomdev sets HAVE_RANDOMDEV, use that instead of /dev/random. 2000-08-17 18:56:49 +00:00
Andreas Gustafsson 12a5fa5d0a say 'due to assertion failure', not 'due assertion failure' 2000-08-17 01:30:31 +00:00
David Lawrence 63fa0d3cf4 removed XXXDCL comment regarding putting program name and args in named.pid
as sendmail does with sendmail.pid.  concensus was that it was annoying.
2000-08-09 23:40:16 +00:00
David Lawrence 40817ed9c1 378. [func] named and lwresd will log the command line arguments
they were started with in the "starting ..." message.
[RT #165]
2000-08-09 03:44:42 +00:00
David Lawrence 40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Brian Wellington 663841abe0 338. [bug] lwresd logged to syslog as named, not lwresd. 2000-07-18 17:50:02 +00:00
David Lawrence 84f4e4a656 319. [func] The named.conf "controls" statement is now used
to configure the OMAPI command channel.
[RT #145]
2000-07-10 11:35:02 +00:00
David Lawrence 202991557a 299. [cleanup] Get the user and group information before changing the
root directory, so the administrator does not need to
			keep a copy of the user and group databases in the
			chroot'ed environment.  Suggested by Hakan Olsson.
2000-07-01 00:48:06 +00:00
David Lawrence 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Brian Wellington 04e812723c If ns_g_cpus is 0, call isc_os_ncpus() to probe. 2000-06-22 01:09:14 +00:00
Brian Wellington 165250c403 Move entropy and dispatchmgr create/destroy to more correct places. 2000-06-21 22:12:02 +00:00
Michael Graff 80617c8faa Add using an entropy source to generate a random query ID seed value. 2000-06-21 21:34:43 +00:00
Brian Wellington 208e3e410d lwresd bug fixes, command line updates, configurability stuff 2000-06-21 01:16:27 +00:00
Brian Wellington d195e2df32 Don't start omapi if running in lwresd mode 2000-06-19 22:29:09 +00:00
Brian Wellington 593399a67a lwresd is no longer named -r, it's now a link 2000-06-19 18:55:46 +00:00
David Lawrence fc4624ce76 include <dns/view.h> 2000-06-16 03:26:55 +00:00
Brian Wellington 878d3073b1 First pass at merging lwresd into named. Seems to work, but doesn't shut down
properly.  Run named with 'named -r' to test.
2000-06-16 01:39:02 +00:00
David Lawrence 7efc8c3f69 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

Minor other ISC style cleanups.
2000-06-01 18:49:22 +00:00
Michael Graff 46993e1d9d Merge the mlg-20000518 branch onto the mainline. Change summary:
dns_dispatch_create() no longer exists.  dns_dispatch_createtcp()
	and dns_dispatch_getudp() are the replacements.  _createtcp() takes
	a bound, connected TCP socket, while _getudp() will search for
	a sharable UDP socket, and if found, attach to it and return a
	pointer to it.  If one is not found, it will create a udp socket,
	bind it to a supplied local address, and create a new dispatcher
	around it.

	dns_dispatch_remove{request,response}() no longer take the dispatch
	as an argument.

	query-source can now be set per view.

	The dispatch manager holds onto three memory pools, one for
	allocating dispatchers from, one for events, and one for
	requests/replies.  The free list on these pools is hard-coded,
	but set to 1024.  This keeps us from having to dig into the
	isc_mem_t the pools draw from as often.

	dns_resolver_create() and dns_view_createresolver() require that
	valid dispatchers be passed in; dispatchers are no longer created
	for the caller.
2000-05-19 21:46:46 +00:00
David Lawrence 175b76e191 line 324: remark(1498): no prototype for the call to create_managers
line 383: remark(1498): no prototype for the call to setup
line 405: remark(1498): no prototype for the call to cleanup
The missing prototypes were added.
2000-05-14 13:47:17 +00:00
Michael Graff ca9739800f implement dns_dispatchmgr_t, replacing dns_dispatchlist_t. Use it throughout the library/server. 2000-05-10 21:34:50 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Andreas Gustafsson 7193a1762e suppress logging until UID switch to avoid creating log
files as root
2000-05-02 18:45:08 +00:00
Bob Halley 364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
Bob Halley 134ba0e08a Linux PR_SET_KEEPCAPS support 2000-04-11 18:51:19 +00:00
David Lawrence 82e902bfde omapi_lib_destroy() in destroy_managers() if no ns_g_omapimgr started 2000-03-18 02:52:10 +00:00
Bob Halley 5a8c6cd711 shutdown omapi before destroying the task manager. 2000-03-18 02:23:53 +00:00
David Lawrence b986772b1a ns_omapi_init now takes no parameters 2000-03-18 00:50:25 +00:00
David Lawrence 177bbc4098 omapi_lib_destroy after the omapimgr has been destroyed 2000-03-14 19:55:26 +00:00
David Lawrence 5e2d1dbba6 dereference ns_g_omapimgr in omapi.c:listen_done 2000-03-14 19:49:28 +00:00
David Lawrence 3388760bca use ns_omapi_init in place of omapi_lib_init 2000-03-14 04:07:52 +00:00
Andreas Gustafsson a6535a2681 consistently use single quotes around quoted text in log messages 2000-03-01 22:41:59 +00:00
Andreas Gustafsson 254993b725 removed support for -ff (use -g); updated usage message accordingly 2000-03-01 18:50:58 +00:00
Andreas Gustafsson 32b61e553b foreground mode with logging to stderr is now -g, not -ff 2000-02-29 18:37:14 +00:00
Andreas Gustafsson ef890b8214 renamed -N option to -n for portability 2000-02-28 22:19:47 +00:00
Andreas Gustafsson f30f2b279c direct logging to stderr iff the '-f' option is doubled 2000-02-28 22:17:59 +00:00
Andreas Gustafsson c0d0a59d1b removed newlines from UNEXPECTED_ERROR() messages 2000-02-17 19:58:59 +00:00
Andreas Gustafsson dd75e174ec typo in usage message 2000-02-17 19:22:15 +00:00
Andreas Gustafsson e38cc88b71 deprecated the -b option (use -c instead);
if there was exactly one non-option argument (as in 'named foo')
it was silently ignored - issue a usage message instead;
also issue a usage message if we get an unknown command line option;
update the update message to reflect reality (leaving the -x option
undocumented)
2000-02-17 19:21:00 +00:00
Andreas Gustafsson 672b62dc2a log library UNEXPECTED_ERRORs through the logging system;
end first line of two-line error messages with a colon
2000-02-14 19:40:36 +00:00