Home | History | Annotate | Download | only in mDNSShared

Lines Matching full:domains

42 // Normally we append search domains only for queries with a single label that are not
43 // fully qualified. This can be overridden to apply search domains for queries (that are
258 // For service registrations we only automatically register in domains that explicitly appear in local configuration data
260 // For service browsing we also learn automatic browsing domains from the network, so for that case we have:
264 // By creating and removing our own LocalDomainEnumRecords, we trigger AutomaticBrowseDomainChange callbacks just like domains learned from the network would.
266 mDNSexport DNameListElem *AutoRegistrationDomains; // Domains where we automatically register for empty-string registrations
268 static DNameListElem *SCPrefBrowseDomains; // List of automatic browsing domains read from SCPreferences for "empty string" browsing
1002 // Don't allow non-local domains to be regsitered as LocalOnly. Allowing this would permit
1461 // registrations scoped to a specific interface, so for the automatic domains we add we must *not* specify an interface.
1478 // Special-case hack: On Mac OS X 10.6.x and earlier we don't advertise SMB service in AutoTunnel domains,
1718 // Note that we don't report errors for non-local, non-explicit domains
2054 // Any automatic registration domains are also implicitly automatic browsing domains
2058 // Add any new domains not already in our AutoRegistrationDomains list
2076 // Delete any domains in our old AutoRegistrationDomains list that are now gone
2089 // Add new browse domains to internal list
2092 // Remove old browse domains from internal list
2104 // Replace the old browse domains array with the new array
2211 else err = mStatus_NoError; // suppress errors for non-local "default" domains
2403 // Returns 0 when there are no more search domains and the caller should reissue the query
2410 // the domains and should try the single label query directly on the wire.
2434 // We use -1 to indicate that we have searched all the domains and should try the single label
2449 // if there are no more search domains and we have already tried this question
2450 // without appending search domains, then we are done.
2453 LogInfo("AppnedNewSearchDomain: No more search domains for question with name %##s (%s), not trying anymore", question->qname.c, DNSTypeName(question->qtype));
2461 if (err) { LogMsg("AppendNewSearchDomain: ERROR!! %##s %s mDNS_StopQuery: %d, while retrying with search domains", question->qname.c, DNSTypeName(question->qtype), (int)err); }
2472 LogInfo("AppnedNewSearchDomain: No more search domains for question with name %##s (%s), trying one last time", question->qname.c, DNSTypeName(question->qtype));
2516 // 2. As a result of appending search domains, the question may be end up with a .local suffix even though it
2538 // If the query starts as a single label e.g., somehost, and we have search domains with .local,
2569 // Don't append search domains for the .local SOA query
2588 // RetryWithSearchDomains tells the core to call us back so that we can retry with search domains if there is no
2594 // is a valid question for appending search domains, retry by appending domains
2601 // domains (result is zero) we try the original query (as it was before appending the search
2602 // domains) as such on the wire as a last resort if we have not tried them before. For queries
2603 // with more than one label, we have already tried them before appending search domains and
2612 // If the result was zero, it meant that there are no search domains and we just retried the question
2613 // as a single label and we should not retry with search domains anymore.
2619 LogMsg("%3d: ERROR: RetryQuestionWithSearchDomains %##s %s mDNS_StartQuery: %d, while retrying with search domains", req->sd, question->qname.c, DNSTypeName(question->qtype), (int)err);
2628 LogInfo("%3d: RetryQuestionWithSearchDomains: Not appending search domains - SuppressQuery %d, SearchListIndex %d, AppendSearchDomains %d", req->sd, question->SuppressQuery, question->SearchListIndex, question->AppendSearchDomains);
2669 // But we might have other search domains (that does not end in .local) that can be
2702 // search domains for the unicast question anymore.
2712 // If we get a negative response to the unicast query that we sent above, retry after appending search domains
2713 // Note: We could have appended search domains below (where do it for regular unicast questions) instead of doing it here.
2714 // As we ignore negative unicast answers below, we would never reach the code where the search domains are appended.
2716 LogInfo("queryrecord_result_callback: Retrying .local question %##s (%s) as unicast after appending search domains", question->qname.c, DNSTypeName(question->qtype));
2730 // domains to append for "q2". In all cases, fall through and deliver the response
2768 // If we get a negative answer, try appending search domains. Don't append search domains
2771 // - if this is an additional query (q2), we already appended search domains above (indicated by "!q" below)
2781 LogInfo("queryrecord_result_callback: Retrying question %##s (%s) after appending search domains", question->qname.c, DNSTypeName(question->qtype));
2789 if (err) LogMsg("queryrecord_result_callback: Sending .local SOA query failed, after appending domains");
3007 // Don't append search domains for fully qualified domain names including queries
3010 // append search domains or not. So, we record that information in AppendSearchDomains.
3012 // We append search domains only for queries that are a single label. If overriden using
3029 // search domains before trying them on the wire as a single label query. RetryWithSearchDomains
3143 // mark which kind of enumeration we're doing so we can (de)authorize certain domains
3461 // We append search domains only for queries that are a single label. If overriden using
4491 LogMsgNoIdent("------ Auto Browse Domains -----");
4495 LogMsgNoIdent("--- Auto Registration Domains --");
4499 LogMsgNoIdent("--- Search Domains --");