Additional comment explaining how names like "my-small-company.local" are handled
authorcheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 2 Dec 2009 03:20:52 +0000 (03:20 +0000)
committercheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 2 Dec 2009 03:20:52 +0000 (03:20 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6865 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSShared/uds_daemon.c

index 0290277..dcf677c 100644 (file)
@@ -2187,6 +2187,8 @@ mDNSlocal mStatus handle_queryrecord_request(request_state *request)
                        // then that's a hint that it's worth doing a unicast query. Otherwise, we first check to see if the
                        // site's DNS server claims there's an SOA record for "local", and if so, that's also a hint that queries
                        // for names in the "local" domain will be safely answered privately before they hit the root name servers.
+                       // Note that in the "my-small-company.local" example above there will typically be an SOA record for
+                       // "my-small-company.local" but *not* for "local", which is why the "local SOA" check would fail in that case.
                        if (labels == 2 && !SameDomainName(&q->qname, &ActiveDirectoryPrimaryDomain))
                                {
                                AssignDomainName(&q2->qname, &localdomain);