PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_DNS » Bug #4124

Only the first nameserver queried

Details

Submitted2005-04-11 23:15 UTC
Fromm dot reidenbach at everytruckjob dot com
Assignedekilfoil
StatusClosed
PackageNet_DNS
PHP VersionIrrelevant
OSlinux
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