Bug #26593 | Delay opening a connection with an ip address due to dns reverse lookup | ||
---|---|---|---|
Submitted: | 23 Feb 2007 13:46 | Modified: | 27 Feb 2007 19:59 |
Reporter: | Christian Coish | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 5.0.3.0 | OS: | Windows (Windows 2000) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Delay, hostname, IP, reverse dns, reverse lookup |
[23 Feb 2007 13:46]
Christian Coish
[23 Feb 2007 16:27]
Christian Coish
It looks like it's just a problem with using Dns.GetHostEntry on line 73 of StreamCreator.cs. Previously, the deprecated Dns.GetHostByName was used, which did not do a reverse lookup. I'm assuming the reverse lookup was an unintended consequence of moving away from this deprecated function. If so, The simple solution would just be to use: IPAddress[] addressList = Dns.GetHostAddresses(dnsHosts[index]); And then do a: foreach (IPAddress address in addressList) instead of: foreach (IPAddress address in ipHE.AddressList) The proxy at my work won't let me pull down the subversion repository, so I can't just make a patch myself.
[27 Feb 2007 19:59]
Reggie Burnett
This is a duplicate of bug # 26152 which has been fixed in 5.0.4