You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/connect/connection-targets.txt
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -155,15 +155,18 @@ DNS Service Discovery
155
155
---------------------
156
156
157
157
To use DNS service discovery to look up the DNS SRV record of the service you're connecting to,
158
-
specify the SRV connection format in your connection string. The following code shows
159
-
a connection string that uses the SRV connection format:
158
+
specify the SRV connection format in your connection string. Additionally, if you enable
159
+
the SRV connection format, {+driver-short+} automatically re-scans for new hosts without
160
+
having to change the client configuration.
161
+
162
+
The following code shows a connection string that uses the SRV connection format:
160
163
161
164
.. code-block:: python
162
165
163
166
uri = "mongodb+srv://<hostname>/"
164
167
165
168
To learn more about the SRV connection format, see the :manual:`SRV Connection Format </reference/connection-string/#std-label-connections-dns-seedlist>`
0 commit comments