Hi,
Everything looks good with DNS:
dig -t SRV _ldap._tcp.test.com
; <<>> DiG 9.16.40-RH <<>> -t SRV _ldap._tcp.test.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13682 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 3
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;_ldap._tcp.test.com. IN SRV
;; ANSWER SECTION: _ldap._tcp.test.com. 7129 IN SRV 0 100 389 dc1.test.com. _ldap._tcp.test.com. 7129 IN SRV 1 101 389 dc2.test.com.
;; ADDITIONAL SECTION: dc2.test.com. 7129 IN A 192.168.10.12 dc1.test.com. 7129 IN A 192.168.10.11
;; Query time: 0 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) ;; WHEN: Thu May 18 15:50:48 CEST 2023 ;; MSG SIZE rcvd: 157