From owner-freebsd-stable@FreeBSD.ORG Sun Oct 2 09:00:28 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E67B106564A for ; Sun, 2 Oct 2011 09:00:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id CEB518FC0A for ; Sun, 2 Oct 2011 09:00:27 +0000 (UTC) Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta03.westchester.pa.mail.comcast.net with comcast id fkzX1h0021ZXKqc53l0UsK; Sun, 02 Oct 2011 09:00:28 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta21.westchester.pa.mail.comcast.net with comcast id fl0S1h00E1t3BNj3hl0TTF; Sun, 02 Oct 2011 09:00:27 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 259E3102C19; Sun, 2 Oct 2011 02:00:25 -0700 (PDT) Date: Sun, 2 Oct 2011 02:00:25 -0700 From: Jeremy Chadwick To: Damien Fleuriot Message-ID: <20111002090025.GA78565@icarus.home.lan> References: <4E865146.8090108@FreeBSD.org> <20111001003735.GA28346@icarus.home.lan> <4E866A70.8060203@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Doug Barton , freebsd-stable@freebsd.org Subject: Re: 7.3 + kqueue + apache/php + DNS lookup problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2011 09:00:28 -0000 On Sun, Oct 02, 2011 at 10:18:30AM +0200, Damien Fleuriot wrote: > On 1 October 2011 03:18, Doug Barton wrote: > > It's a php module doing a lookup for the hostname of the back-end mysql > > server. > > > >> Are the delays always 3 seconds? > > > > Pretty much. > > > >> If so, that almost sounds like a timeout of some kind. > > > > That was my first thought, but the answer always comes eventually. > > > > To answer Chuck's questions, no threading is involved, and it's not > > apache doing the lookups. > > > > > > Doug > > > > Check your bind/unbound logs to ensure the queries are actually > successful on their first try. > > Is your DNS using forwarders ? views ? How would this explain 100% quick/reliable lookups when done from tools like nslookup and host? Same box and same resolver (127.0.0.1:53), yet different behaviour (nslookup/host vs. PHP). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |