Should try to explicitly IPAddress.TryParse before calling Dns.GetHostEntry
---------------------------------------------------------------------------
Key: DNET-112
URL: http://tracker.firebirdsql.org/browse/DNET-112
Project: .NET Data provider
Issue Type: Improvement
Components: ADO.NET Provider
Environment: All
Reporter: Dean Harding
Assignee: Carlos Guzman Alvarez
Priority: Minor
I am proposing that we replace any instances of:
IPAddress addr = Dns.GetHostEntry(hostname).AddressList[0];
With the following:
IPAddress addr;
if (!IPAddress.Parse(hostname, out addr))
{
addr = Dns.GetHostEntry(hostname).AddressList[0];
}
The call to Dns.GetHostEntry requires a DNS resolve, which can be costly if
there is no reverse DNS set up for the IP and it has also been known to return
different results to the IP you input.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider