Skip to content

Commit fd393ba

Browse files
committed
cherry picked from commit 473088d
1 parent cbefcae commit fd393ba

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

source/fundamentals/connection/mongoclientsettings.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)