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:
230230 - Sets the host name to use to look up an SRV DNS record to find the
231231 MongoDB hosts.
232232
233- .. note::
233+ When setting ``srvHost``, the driver does not process any
234+ associated TXT records associated with the host.
234235
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.
237239
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
245243
246244 * - ``srvMaxHosts()``
247245 - | 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