-
Type: Task
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
0.1
Description
A user in mongodb/mongo-php-driver#968 encountered an exception attempting to use a hostname with less than two dots (e.g. "mongo" instead of "mongo.example.com") in conjunction with a mongodb+srv connection string scheme.
I was attempting to dig up documentation about the required format of the SRV host/domain string but was unable to find anything across the following:
- https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format
- https://en.wikipedia.org/wiki/SRV_record
- https://tools.ietf.org/html/rfc2782
AFAIK, the only place we explicitly mention this requirement is in the driver specification.
Is this worth addressing in the MongoDB manual around existing SRV examples?
Scope of changes
- Update section to specify that the hostname *must* be <hostname>.<domain>.<TLD>. You cannot specify the hostname alone.
- Update section to specify that the individual SRV records must be in _mongodb.tcp.<hostname>.<domainname>.<TLD> format
- Backport to 3.6
- related to
-
DRIVERS-2123 Add justification for host/domain requirements
- Backlog
- links to