You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Henrik Hudson <li...@rhavenn.net> on 2006/11/10 02:09:47 UTC
[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 <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
Re: [users@httpd] no DNS resolution inside apache???
Posted by Henrik Hudson <li...@rhavenn.net>.
FYI: I uninstalled Apache 2.2.3 and installed Apache 1.3.x and now everything
works flawlessly. I made zero other changes on the system between working and
not working, so there either is a bug or something "wierd".
I was running dnstop and when asking the server to do "hostnamelookups on" or
DNS lookups inside the php module is was generating 0 DNS requests to
anywhere.
Now, with 1.3 installed dnstop is showing plenty of traffic.
On Thursday 09 November 2006 19:09, Henrik Hudson <li...@rhavenn.net> sent a
missive stating:
> 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