From owner-freebsd-questions@FreeBSD.ORG Thu Mar 6 18:38:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F23261065670 for ; Thu, 6 Mar 2008 18:38:39 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF228FC1C for ; Thu, 6 Mar 2008 18:38:39 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id C11A01CD4A; Thu, 6 Mar 2008 09:38:37 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 6 Mar 2008 19:38:35 +0100 User-Agent: KMail/1.9.7 References: <101567640802270431h69e443c9n63090e4b260f3a7b@mail.gmail.com> <200803051814.49944.fbsd.questions@rachie.is-a-geek.net> <101567640803060312x70992ef3k85de3acebc5e39be@mail.gmail.com> In-Reply-To: <101567640803060312x70992ef3k85de3acebc5e39be@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803061938.35765.fbsd.questions@rachie.is-a-geek.net> Cc: Simon Street Subject: Re: FreeBSD 6.2+PHP+700 sites = DNS Issues? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 18:38:40 -0000 On Thursday 06 March 2008 12:12:05 Simon Street wrote: > I've copied resolv.conf to /usr/local/etc and HostnameLookups is > already enabled, no joy :( (Have restarted apache also). Hmm hmmm. So apache can look up IP's and write hostname into it's log, but php can't resolve anything. If it's got something to do with FDSET, then if it has no traffic at all, the problem should go away. Does it? Not sure if you can test that, but block all incoming traffic for 30 seconds and run your test script, shouldn't be too difficult. Does this work: var_dump(gethostbyname("www.example.com")); Maybe it isn't related to resolving at all - like, are there any disallowed functions in your php configuration? -- Mel Problem with today's modular software: they start with the modules and never get to the software part.