Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 88343 invoked from network); 10 Nov 2006 01:10:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2006 01:10:26 -0000 Received: (qmail 85685 invoked by uid 500); 10 Nov 2006 01:10:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 85087 invoked by uid 500); 10 Nov 2006 01:10:24 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 85076 invoked by uid 99); 10 Nov 2006 01:10:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 17:10:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.97.245.165] (HELO smtp165.iad.emailsrvr.com) (207.97.245.165) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 17:10:09 -0800 Received: from arucard.int.rhavenn.net (rrcs-24-106-16-90.west.biz.rr.com [24.106.16.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: henrik@ecwwebworks.com) by relay6.relay.iad.emailsrvr.com (SMTP Server) with ESMTP id 2CD575396C for ; Thu, 9 Nov 2006 20:09:49 -0500 (EST) From: Henrik Hudson Reply-To: lists@rhavenn.net To: users@httpd.apache.org Date: Thu, 9 Nov 2006 19:09:47 -0600 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611091909.47688.lists@rhavenn.net> X-Virus-Scanned: OK X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] no DNS resolution inside apache??? Hey List- I'm stumped on a problem. I have the following server: FreeBSD 6.1-STABLE apache: 2.2.3 from ports php4: 4.4.4 from ports and varios extensions from port loaded as a module my apache conf file are virtually dentical to a test server housed at our office the problem: the webserver can't do name resolution or hostname lookups. the problem came to light with some PHP scripts which are doing gethostbyname lookups. They aren't working. The scripts work when run from the CLI. Turning on Hostnamelookups doesn't do anything and IP addresses are not being looked up according to my logs. dns works: ping internal and external hosts resolve correctly dig / nslookup of internal and external hosts Perl CGI (on above apache server) work fine and from the command line PHP from the CLI work fin dns doesn't work: PHP gethostbyname / gethostbyaddr calls inside Apache don't work Apache can't do hostnamelookups (yes, i uncommented include/http-defaults.conf) DNS lookups work when looking up files from /etc/hosts I've triple checked resolv.conf, hosts and nsswitch.conf and can't find any issues there. Anyone have the slightest clue as to where the problem could be? How to further troubleshoot? Right now I think it's a Apache "issue", but I haven't the slightest clue as to why. Thanks. henrik -- Henrik Hudson lists@rhavenn.net ------------------------------ "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org