Bug #96724 Contribution: Add DNS resolution for hostnames
Submitted: 3 Sep 2019 13:28 Modified: 30 Jan 2020 20:08
Reporter: OCA Admin (OCA) Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / J Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[3 Sep 2019 13:28] OCA Admin
Description:
This bug tracks a contribution by Michael James (Github user: mcjffld) as described in http://github.com/mysql/mysql-connector-j/pull/40

How to repeat:
See description

Suggested fix:
See contribution code attached
[3 Sep 2019 13:28] OCA Admin
Contribution submitted via Github - Add DNS resolution for hostnames 
(*) Contribution by Michael James (Github mcjffld, mysql-connector-j/pull/40#issuecomment-526609548): "I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."

Contribution: git_patch_305260099.txt (text/plain), 14.72 KiB.

[3 Sep 2019 14:47] MySQL Verification Team
Thank you for the contribution.
[6 Sep 2019 13:59] Alexander Soklakov
Initial Bug#96454 was marked as a duplicate of this one.
[30 Dec 2019 20:07] Filipe Silva
Hi Michael,

First of all thanks for your contribution and interest on MySQL Connector/J.

I'm not sure about this feature request. Can you give us an example of what you expect from it?

I'm asking because, for me, it would make more sense to implement such feature leveraging DNS SRV lookups instead of standard DNS to IP resolution. Usually, I would expect that a host name resolves to a few valid IPs and all of them potentially point to the same service, this is why we try them all when creating the connection socket (see connection code in StandardSocketFactory).

Please let us know about your thinking.

Thanks,
[31 Jan 2020 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".