Re: DNS Lookups Fail

From: Date: Mon, 26 Feb 2001 23:13:12 +0000
Subject: Re: DNS Lookups Fail
Groups: php.general 
Request: Send a blank email to php-general+get-41754@lists.php.net to get a copy of this message
Addressed to: "Scott Rothgaber" <scott@easley.net> php-general@lists.php.net ** Reply to note from "Scott Rothgaber" <scott@easley.net> Mon, 26 Feb 2001 12:46:08 -0500 > > On 26 Feb 2001, at 10:21, php3@developersdesk.com wrote: > > > The first thing to try is get a list of the host names that > > fail and do a nslookup to make sure you can resolve them. > > The way I see it, this is strictly a PHP issue. *No* lookups are > succeeding, not even in the log file. If I switch back to my > Apache binary built without PHP, everything works. > Take a look thru your Apache config files for HostNameLookups, that is probably what it is. You can set it to ON to get this behavior back. You might want to think about it a little before you do. Having this on means that EVERY SINGLE page and image hit requires a DNS lookup BEFORE the page/image is sent. If there is a problem with reverse DNS on the modem your visitor is connected to (not uncommon) they get to wait up to 30 seconds for a DNS timeout before the page will load. Not good. Consider how often you really care about what the host name is. Is it worth the extra delay for the DNS lookup on EVERY page sent. You mentioned having to have your log analyzer do the DNS lookups when it processes the logs. I say better pay for it then when it is only you waiting for results than making your visitors pay on every page and image they download. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.general (#41754) next »