Apache Server configuration support - DNS querys slow when using PHP and Perl in Apache

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2004 > DNS querys slow when using PHP and Perl in Apache





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DNS querys slow when using PHP and Perl in Apache
R. Marticke

2004-02-24, 1:33 am

Hi Group.

I've got a strange problem with my apache webserver.

When i call a script like

<?
gethostbyname("foo.bar") ;
?>

via /usr/local/bin/php /home/foo/html/dnstest.php it takes not a sec.

But when i call the same script via http://localhost/foo/dnstest.php it
takes about 5 sec. to get a result.
At first i think the problem was PHP. But now i tried it with perl. And the
same happens.
A nslookup foo.bar is also fsat so my nameserver is reachable.

It must be something in my Apache config. php and PERL is called by
module.so

I use Apache2 / php 4.3.4 / RH 7.2

Maybe you can help me.
Regards Rene


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com