From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 8 21:54:40 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1DDF16ADDC for ; Thu, 8 Jun 2006 21:54:40 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 660CB43D5A for ; Thu, 8 Jun 2006 21:54:36 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k58LeVc4070683 for ; Thu, 8 Jun 2006 21:40:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k58LeVRH070682; Thu, 8 Jun 2006 21:40:31 GMT (envelope-from gnats) Date: Thu, 8 Jun 2006 21:40:31 GMT Message-Id: <200606082140.k58LeVRH070682@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Maxim Konovalov Cc: Subject: Re: bin/98625: ypserv ignores the -n option (it always acts like -n has been specified) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Konovalov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 21:54:40 -0000 The following reply was made to PR bin/98625; it has been noted by GNATS. From: Maxim Konovalov To: PaulFM Cc: bug-followup@freebsd.org Subject: Re: bin/98625: ypserv ignores the -n option (it always acts like -n has been specified) Date: Thu, 8 Jun 2006 22:08:22 +0400 (MSD) On Thu, 8 Jun 2006, 13:06-0500, PaulFM wrote: > Further tests have found something very interesting. > > 1. The real issue is - ypserv seems to ALWAYS do dns lookups IF the > hosts map is empty. Adding one entry (localhost) causes all > versions to work as expected (un-patched, new and old). > > 2. My previous "FIX" is not a fix, but was accompanied by a change > in another input to the problem (the hosts map on the test setup > had entries in it - I didn't set-up the test maps). A back check > found that the original version of ypserv on that machine did not > do dns lookups. > > > So the workaround is to make sure you have at least one entry in > your hosts map. Have you tried my patch? -- Maxim Konovalov