UseSrvConnection
Default Value | Data Type | Required |
---|---|---|
|
String |
No |
Description
This property specifies whether the host name provided in the connection string corresponds to a DNS SRV record values.
true
: The connector queries the DNS SRV record to determine the hosts of the cluster in a connection string.false
: A list of all the cluster hosts separated by commas need to be included in the connection string when establishing a connection to a MongoDB cluster.
Note:
- When
UseSrvConnection
=true
and a port number is added in the connection string, the connector returns an error. - When
UseSrvConnection
=true
and a list of hosts are added in the connection string, the connector returns an error. - When
UseSrvConnection
=true
, SSL is enabled by default.
- Catalog Support
- Building the Connection URL
- General Driver Configuration Options on page 1
- Driver Configuration Options on page 1