Languages

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.

Additional Information

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

Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website. Please contact the vendor for additional information.
Last Modified: Oct 22, 2013
Helpful?
Yes
No
Not helpful Somewhat helpful Helpful Very helpful Solved my problem
Print this page
  • Last Modified: Oct 22, 2013
  • Article: HT3394
  • Views:

    48181
  • Rating:
    • 57.0

    (524 Responses)
Start a Discussion
in Apple Support Communities
See all questions on this article See all questions I have asked