File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
source/fundamentals/connection Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -230,18 +230,16 @@ settings to modify the driver's behavior:
230
230
- Sets the host name to use to look up an SRV DNS record to find the
231
231
MongoDB hosts.
232
232
233
- .. note::
233
+ When setting ``srvHost``, the driver does not process any
234
+ associated TXT records associated with the host.
234
235
235
- When setting ``srvHost``, the driver does not process any
236
- associated TXT records associated with the host.
236
+ If you want to enable the processing of TXT records, you must
237
+ specify the SRV host in the connection string using the
238
+ ``applyConnectionString()`` method.
237
239
238
- If you want to enable the processing of TXT records, you must
239
- specify the SRV host in the connection string using the
240
- ``applyConnectionString()`` method.
241
-
242
- .. literalinclude:: /examples/generated/MongoClientSettingsTest.snippet.srv-host-connection-string.kt
243
- :language: kotlin
244
- :emphasize-lines: 3
240
+ .. literalinclude:: /examples/generated/MongoClientSettingsTest.snippet.srv-host-connection-string.kt
241
+ :language: kotlin
242
+ :emphasize-lines: 3
245
243
246
244
* - ``srvMaxHosts()``
247
245
- | Sets the maximum number of hosts the driver can connect to when using
You can’t perform that action at this time.
0 commit comments