-
Type:
Spec Change
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Component/s: Initial DNS Seedlist Discovery
-
None
-
Needed
-
Summary
According to the MongoDB Initial DNS Seedlist Discovery specification, the requirement that returned hostnames contain an additional domain level applies only when the SRV hostname has fewer than three dot-separated parts. When the SRV hostname has three or more dot-separated parts, it is valid for the returned hostnames to be identical.
We should add tests to ensure that drivers don't throw validation errors in the case described above.
Motivation
Who is the affected end user?
Who are the stakeholders?
How does this affect the end user?
Are they blocked? Are they annoyed? Are they confused?
How likely is it that this problem or use case will occur?
Main path? Edge case?
If the problem does occur, what are the consequences and how severe are they?
In PYTHON-5288, when using a mongodb+srv connection string, the driver throws an error if the hostname used for SRV resolution is identical to one of the resolved hostnames, even when the hostname contains three or more dot-separated parts.
This behavior causes valid configurations to fail and appears to contradict the intended logic in the specification.
Is this issue urgent?
Tests should be implemented soon so that other drivers can catch a potential problem before the users do.
Is this ticket required by a downstream team?
No
Is this ticket only for tests?
Yes
Acceptance Criteria
- Add new tests to confirm that when the SRV hostname has three or more dot-separated parts, it is valid for the returned hostnames to be identical and an error is not thrown.
- mongodb+srv://a.b.com is valid and SRV returns a.b.com
- mongodb+srv://a.b.c.com is valid and SRV returns a.b.c.com
- split from
-
PYTHON-5288 SRV hostname validation fails when resolver and resolved hostnames are identical with three domain levels
-
- Closed
-
- split to
-
CDRIVER-5988 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
CSHARP-5570 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
CXX-3271 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
GODRIVER-3539 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
JAVA-5850 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
MOTOR-1456 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
NODE-6910 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
PHPLIB-1668 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
PYTHON-5327 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
RUBY-3653 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-
-
RUST-2200 Add test for SRV hostname validation when resolver and resolved hostnames are identical with three domain levels
-
- Blocked
-