-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
None
-
Developer Tools
Problem Statement/Rationale
Since a trailing dot indicates a Fully Qualified Domain Name (FQDN), its presence shouldn't affect matching against the parent domain. However, mongosh fails to connect to the cluster if I include a trailing dot in the SRV connection string.
Steps to Reproduce
Use mongosh to connect to MongoDB with SRV record with the suffix "." in the domainĀ
Expected Results
Connect MongoDB cluster successfully
Actual Results
Return "Error: Server record does not share hostname with parent URI"
Additional Notes
I fixed this in this [PR|https://github.com/mongodb-js/resolve-mongodb-srv/pull/6.] Please review and bump up this deps from mongosh