DNS SRV record overview
DNS SRV record is a record on a DNS server that defines the location of a service, such as LDAP, for a specific domain. You must provide a separate DNS SRV record for each LDAP server instance that must be discoverable using SRV lookup. If you have multiple LDAP server instances, you must create a separate DNS SRV record for each instance.
A DNS SRV record for a LDAP server uses the following format:
_<SERVICE>._tcp.<DOMAIN_NAME> IN SRV <PRIORITY> <WEIGHT> <PORT> <LDAP_FQDN>
In this entry:
SERVICE is one of the following symbolic names for the LDAP service:
DOMAIN_NAME is the domain name for which this SRV record applies. The domain name must end with a dot.
PRIORITY is the priority of the LDAP server. Lower the value means higher the priority.
WEIGHT is the relative weight of the record. This parameter is used if two or more records have the same priority. Higher the value means higher the relative weight of the LDAP server.
PORT is the port to access the LDAP server.
LDAP_FQDN is the FQDN of the LDAP server. The FQDN must end with a dot.
If you use multiple DNS servers, each DNS server must have the same SRV records for LDAP server instances.
For example, if your domain name is example.com, and you have a primary LDAP server, which FQDN is primary_ldap.example.com, and a secondary LDAP server, which FQDN is backup_ldap.example.com, you can configure DNS SRV records on your DNS servers as follows:
_ldap._tcp.example.com. IN SRV 10 100 389 primary_ldap.example.com.
_ldap._tcp.example.com. IN SRV 20 100 389 backup_ldap.example.com.
For more information about configuring SRV records on a DNS server, see the documentation for the DNS server you use in your deployment.