From owner-freebsd-questions@FreeBSD.ORG Wed Mar 12 15:17:52 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 62E90106566C for ; Wed, 12 Mar 2008 15:17:52 +0000 (UTC) (envelope-from ginganutz@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 3BF0E8FC15 for ; Wed, 12 Mar 2008 15:17:52 +0000 (UTC) (envelope-from ginganutz@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3421396waf.3 for ; Wed, 12 Mar 2008 08:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hrURtcxd7YG1lEvyZCGy7KBIFzQDNocIwJ+Jd79Vp0c=; b=MLyZvYjgtxubZ8uhH7W7oDa6Cap77vub1wuU6i7YWdUF5cxkcv3nsisHAsg+GlS07rg/2qkitHCtF8DnOuEQM2n4YAgcRHChHIRGEtgoPQDRrrbJWqq96cQusdf0XHhjt+OnOqqG3huBxuyaZSD/o1fRBAGg6e2Y9Ksn9Wbzv5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BFYNbThI2qnKADXE/Dj9+HIxZmv+4ZqG4YcyczkyFPjIxeDBWyiOcxLfnMYY8vIoXGxUstqyx4NHd72mjsrddWw/99oth9xsVuaxE+lSx2gN/SnPpx7xDQgcl/k8uS3VfJlfxKNsn598XtU9aaKpkI17U7k0f48IMsQG6sAq+oM= Received: by 10.115.54.1 with SMTP id g1mr7687841wak.136.1205335071708; Wed, 12 Mar 2008 08:17:51 -0700 (PDT) Received: by 10.114.130.13 with HTTP; Wed, 12 Mar 2008 08:17:48 -0700 (PDT) Message-ID: <101567640803120817rb72c297q498b2743bcf2e2d4@mail.gmail.com> Date: Wed, 12 Mar 2008 15:17:48 +0000 From: "Simon Street" To: freebsd-questions@freebsd.org In-Reply-To: <200803061938.35765.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <101567640802270431h69e443c9n63090e4b260f3a7b@mail.gmail.com> <200803051814.49944.fbsd.questions@rachie.is-a-geek.net> <101567640803060312x70992ef3k85de3acebc5e39be@mail.gmail.com> <200803061938.35765.fbsd.questions@rachie.is-a-geek.net> 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: Wed, 12 Mar 2008 15:17:52 -0000 On Thu, Mar 6, 2008 at 6:38 PM, Mel wrote: > 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? var_dump.. etc returns string(15) "www.example.com" disable_functions shows as none in phpinfo! However I've just noticed in the domain logs that its logging IP's not hostnames, I assume this is wrong given "HostnameLookups On" is in a conf file that is included by httpd.conf. Is there any way to confirm at runtime that this directive is being obeyed? Thanks, Simon