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

bugs at horde.org bugs at horde.org
Mon Sep 22 18:10:21 UTC 2008


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

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


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

...and here without setting the RES_OPTIONS env. vars.

<?php
require_once 'Net/DNS.php';

$now = time();

$resolver = new Net_DNS_Resolver();
$resolver->retry = 1;
$resolver->retrans = 1;
$response = $resolver->query('153.19.206.48');
if ($response) {
     foreach ($response->answer as $rr) {
         $rr->display();
     }
}

print time() - $now . "\n";
?>






More information about the bugs mailing list