MX records are used for email server configuration and not for LDAP server configuration. However, to configure an LDAP server, you need to create records of type SRV and TXT.
Here are the steps to configure MX records for an LDAP server:
1. First, log in to your DNS provider’s account.
1. Locate the domain name you want to configure and open the DNS manager.
1. Create a new record of type SRV.
1. In the SRV record, enter the following information:
- Service: \_ldap
- Protocol: \_tcp
- Name: your domain name
- Weight: 0
- Priority: 100
- Port: 389
- Target: your LDAP server’s hostname or IP address
1. Next, create a TXT record to specify the SRV record’s description.
1. In the TXT record, enter the following values:
- Name: _ldap._tcp.your domain name
- Value: LDAP service
1. Save the changes and wait for the DNS propagation to take effect.
Once done, your LDAP server should be ready to receive LDAP queries.