Bug #26472 connector/net fails DNS lookup for LAN IPs with .NET 2.0
Submitted: 18 Feb 2007 22:38 Modified: 27 Feb 2007 20:07
Reporter: richard garand Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:unknown OS:Windows (XP SP2)
Assigned to: CPU Architecture:Any
Tags: connector, exception, IP, NET

[18 Feb 2007 22:38] richard garand
Description:
Using MySQL connector/net in visual studio 2005, I got errors when trying to connect to my database. After importing the source into the project, I traced it to the driver function that opens the connection. It tries to do a DNS lookup of the address, using an #if statement to use a different function in .NET 2.0 (?). This function works for hostnames and most IP address, but throws an exception with a 192.168.x.x address. I removed this so it used the .NET 1.0 function and the rest of the code worked.

How to repeat:
see above

Suggested fix:
see above
[27 Feb 2007 20:07] Reggie Burnett
This is likely related to bug #26152 so I'm calling it a duplicate.