Bug #1602
closeddiag_arp.php hangs when DNS server unreachable
0%
Description
diag_arp.php hangs for a long time (several minutes at least) when no DNS server is reachable, trying to do reverse lookups.
Updated by Evgeny Yurchenko over 13 years ago
what would be solution here? it's just hanging gethostbyaddr()
Many things slow when dns is unreachable -(
Updated by Chris Buechler over 13 years ago
yeah I'm sure this isn't the only affected page. Not sure of the best solution. If before doing a reverse lookup on every entry it could try just one lookup (maybe google.com or something) and if it fails, just skip all lookups on that page load. Others may have better ideas
Updated by Jim Pingle over 13 years ago
Testing for a known host and skipping if that fails could work, as long as it only triggered on timeout and not a negative response.
Alternately, we could default hostname resolution to off, and make a button to reload the form and resolve hostnames.
Updated by Evgeny Yurchenko over 13 years ago
Please take a look at https://github.com/bsdperimeter/pfsense/commit/dd4bded7de6d6654afe2cf203df3136c1bef9515
Seems to work better for me.
Updated by Andreas Bochem over 13 years ago
Looks good on 2.0-RC3 (amd64) built on Tue Jun 21 23:37:22 EDT 2011.
My current test system does not have a working connection to any DNS server,
yet diag_arp.php only takes a few seconds and then just displays the ARP table without hostnames.
Updated by Chris Buechler over 13 years ago
- Status changed from Feedback to Resolved