From owner-freebsd-bugs Fri Nov 22 22:30:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA12252 for bugs-outgoing; Fri, 22 Nov 1996 22:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA12246; Fri, 22 Nov 1996 22:30:01 -0800 (PST) Date: Fri, 22 Nov 1996 22:30:01 -0800 (PST) Message-Id: <199611230630.WAA12246@freefall.freebsd.org> To: freebsd-bugs Cc: From: Peter Wemm Subject: Re: bin/2090: clients may bind to FreeBSD ypserv refusing to serve them Reply-To: Peter Wemm Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/2090; it has been noted by GNATS. From: Peter Wemm To: Bill Paul Cc: Tor.Egge@idt.ntnu.no, freebsd-gnats-submit@freebsd.org Subject: Re: bin/2090: clients may bind to FreeBSD ypserv refusing to serve them Date: Sat, 23 Nov 1996 14:22:13 +0800 Bill Paul wrote: > > - Don't let the ypserv process fork for gethostbyname() > > lookups. Use async dns lookups instead. > > This has been on my mind for a while, but it's fallen victim to a > severe lack of round tuits. One reason I've been putting it off is > that doing this 'correctly' would probably mean bolting some of the > BIND code directly onto ypserv. This would lead to yet another upgrade > headache when new BIND versions are released. Another option is to fork() once and have the parent and child communicate over a pipe. This is a pretty common approach, especially for things like WWW caches (eg: squid, harvest cached), MUD game drivers, etc. FWIW, there's an async DNS resolver in the later versions of the irc servers, but I seem to recall that it's been contaminated with GPL code. Cheers, -Peter