- After you choose a site, you can search the DNS SRV RRs to find all the local directories that serve the site:
_ldap._tcp. site ._sites. domain
- site
- The name of a site identified in Locating the Site Objects in a Domain.
- domain
- The name of the DNS domain that contains the site.
- Convert the site name into DNS SRV RR format. For example, you can convert CN=SantaDominDiv,CN=Sites,CN=Configuration,DC=DOMAIN1,DC=COM into a DNS SRV RR format, _ldap._tcp.SantaDominDiv._sites.DOMAIN1.com.
- Use the Linux dig utility to search the DNS for directories that serve the site:
dig +tcp -t SRV _ldap._tcp.SantaDominDiv._sites.DOMAIN1.com
The dig command produces output similar to:
<<>> DiG 9.2.4 <<>> +tcp -t SRV _ldap._tcp.SantaDominDiv._sites.domain1.com; ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49397 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 8 ;; QUESTION SECTION: ;_ldap._tcp.SantaDominDiv._sites.domain1.com. IN SRV ;; ANSWER SECTION: _ldap._tcp.SantaDominDiv._sites.domain1.com. 86400 IN SRV 0 100 389 sdhq7602.DOMAIN1.COM. _ldap._tcp.SantaDominDiv._sites.domain1.com. 86400 IN SRV 0 100 389 sdhq7603.DOMAIN1.COM. ;; AUTHORITY SECTION: _sites.domain1.com. 86400 IN NS sdint75555.DOMAIN1.COM. _sites.domain1.com. 86400 IN NS socal88888.DOMAIN1.COM. _sites.domain1.com. 86400 IN NS socal77777.DOMAIN1.COM. _sites.domain1.com. 86400 IN NS socal22222.DOMAIN1.COM. _sites.domain1.com. 86400 IN NS sddiv33333.DOMAIN1.COM. ;; ADDITIONAL SECTION: sdhq4444.DOMAIN1.COM. 1800 IN A 192.0.2.23 sdhq5555.DOMAIN1.COM. 1800 IN A 192.0.2.48 sdhq6666.DOMAIN1.COM. 1800 IN A 192.0.2..66 soca7777.DOMAIN1.COM. 1800 IN A 192.0.2..51 socal8888.DOMAIN1.COM. 1800 IN A 192.0.2..130 socal9999.DOMAIN1.COM. 1800 IN A 192.0.2..16 sddiv0000.DOMAIN1.COM. 1800 IN A 192.0.2..77 sdint1111.DOMAIN1.COM. 1800 IN A 192.0.2..162 ;; Query time: 11 msec ;; SERVER: ip_address8#53(ip_address8) ;; WHEN: Wed Dec 16 14:19:06 2021 ;; MSG SIZE rcvd: 397
where the ANSWER SECTION lists the two directories that serve the SantaDominDiv site.
- Do one of the following:
- If the ANSWER SECTION for the output lists one or more directories, go on to Configuring Site-Aware SRV Resource Records in TDGSS, and use the DNS SRV RR formatted site name you used earlier in this procedure.
- If the ANSWER SECTION for the output of your dig command does not list one or more directories, redo the first two steps.