[Tickets #7374] speed up hostname lookups on broken DNS

bugs at horde.org bugs at horde.org
Mon Sep 22 13:18:48 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7374
------------------------------------------------------------------------------
  Ticket             | 7374
  Created By         | adrieder at sbox.tugraz.at
  Summary            | speed up hostname lookups on broken DNS
  Queue              | Horde Framework Packages
  Version            | HEAD
  Type               | Enhancement
  State              | New
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


adrieder at sbox.tugraz.at (2008-09-22 09:18) wrote:

There are some strange providers out there who configure there  
nameserver to block DNS-lookups of IPs in their networks so that they  
run into a time out. This is very annoying since the login into  
Horde/IMP takes very long (> 60 sec.) until the gethostbyaddr() calls  
time out. This leads to strange behavior afterwards e.g. IMP can't  
save sent messages in the sent-mail folder or move messages to the  
trash folder (permission denied).

It would by good to have a dns lookup with a short timeout.  
Unfortunately the php gethostbyaddr() function does not have a timeout  
option.

e.g.
<?php
$now = time();
print gethostbyaddr('153.19.206.48') . "\n";
print time() - $now . "\n";
?>
results in:
153.19.206.48
70







More information about the bugs mailing list