OS X: Verifying DNS consistency for Active Directory binding

Active Directory integration is dependent on locating and identifying both domain controllers (DC's) and Global Catalog servers (GC's) via DNS. In order for this functionality to work as expected, the DNS system hosting Active Directory must be complete, correct, and consistent.

To verify the consistency of Active Directory service records (SRV records), the following Terminal command can be used to query DNS:

dig -t SRV _service._tcp.fqdn.example.com

...where _service is the service to be queried (_ldap, _kerberos, _kpasswd or _gc) and fqdn.example.com is the fully qualified domain name of the Active Directory domain.

To verify the validity of service record location in DNS, ensure that three criteria are met:

  1. Each service record type has at least one answer in the ANSWER SECTION--this tests completeness.
  2. Each service record type has the same number of answers in the HEADER SECTION--this tests consistency.
  3. Each answer returned in the ADDITIONAL SECTION is a valid server name and IP address--this tests correctness.

If any of these three criteria are not met, you can use this Microsoft Technet article to troubleshoot Active Directory-related DNS issues: Troubleshooting Active Directory—Related DNS Problems.

Learn more

The dig command will return results similar to this:

; <<>> DiG 9.4.2-P2 <<>> -t SRV _ldap._tcp.fqdn.example.com

;; global options: printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53473

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:

;_ldap._tcp.fqdn.example.com.INSRV

;; ANSWER SECTION:

_ldap._tcp.fqdn.example.com. 600 INSRV0 100 389 dc1.fqdn.example.com.

_ldap._tcp.fqdn.example.com. 600 INSRV0 100 389 dc2.fqdn.example.com.

;; ADDITIONAL SECTION:

dc1.fqdn.example.com.3600INA10.0.0.1

dc2e.fqdn.example.com.3600 INA10.0.0.2

Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Risks are inherent in the use of the Internet. Contact the vendor for additional information.

Last Modified:
Helpful?

Additional Product Support Information

Start a Discussion

in Apple Support Communities
See all questions on this article See all questions I have asked
United States (English)