Home » Networking » Net_DNS » Bug #4124
Only the first nameserver queried
Details
| Submitted | 2005-04-11 23:15 UTC |
|---|---|
| From | m dot reidenbach at everytruckjob dot com |
| Assigned | ekilfoil |
| Status | Closed |
| Package | Net_DNS |
| PHP Version | Irrelevant |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2005-04-11 23:15 UTC] m dot reidenbach at everytruckjob dot com
Description:
------------
Only the first nameserver is queried with send_udp_with_sock_lib. The retry timeout is also not correct ($ns is undefined and should be the number of nameservers). Warnings are generated when attempting to read from a socket connection which was refused (such as when the ip:port queried is not running a nameserver).
Reproduce code:
---------------
This patch queries all nameservers, corrects the retry timeouts, attempts to prevent socket warnings, and improves code comments.
I tested this on php v5.0.4 for linux and windows.
http://www.tuscaloosadesigncompany.com/Resolver.3.diff