Bug #26472 connector/net fails DNS lookup for LAN IPs with .NET 2.0
Submitted: 18 Feb 2007 23:38 Modified: 27 Feb 2007 21:07
Reporter: [ name withheld ]
Status: Duplicate
Category:Connector/Net Severity:S2 (Serious)
Version:unknown OS:Microsoft Windows (XP SP2)
Assigned to: Target Version:
Tags: exception, IP, NET, connector

[18 Feb 2007 23:38] [ name withheld ]
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 21:07] Reggie Burnett
This is likely related to bug #26152 so I'm calling it a duplicate.