httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Hudson <li...@rhavenn.net>
Subject [users@httpd] no DNS resolution inside apache???
Date Fri, 10 Nov 2006 01:09:47 GMT
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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message