Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:domain

37 // For domain enumeration and automatic browsing
39 // In each of these domains we search for our special pointer records (lb._dns-sd._udp.<domain>, etc.)
40 // to discover recommended domains for domain enumeration (browse, default browse, registration,
121 while (*p) // Check if we already have this {interface,address,port,domain} tuple registered
124 mDNSSameAddress(&(*p)->addr, addr) && mDNSSameIPPort((*p)->port, port) && SameDomainName(&(*p)->domain, d))
126 if (!((*p)->flags & DNSServer_FlagDelete)) debugf("Note: DNS Server %#a:%d for domain %##s (%p) registered more than once", addr, mDNSVal16(port), d->c, interface);
153 AssignDomainName(&(*p)->domain, d);
184 &q->qDNSServer->addr, mDNSVal16(q->qDNSServer->port), q->qDNSServer->domain.c, q, q->qname.c, DNSTypeName(q->qtype),
236 q->qname.c, DNSTypeName(q->qtype), &q->qDNSServer->addr, mDNSVal16(q->qDNSServer->port), q->qDNSServer->domain.c);
292 if (SameDomainName(&ptr->domain, n))
294 debugf("GetAuthInfoForName %##s Matched %##s Key name %##s", name->c, ptr->domain.c, ptr->keyname.c);
318 LogInfo("GetAuthInfoForName_internal deleting expired key %##s %##s", info->domain.c, info->keyname.c);
325 info->domain.c, q->AuthInfo ? q->AuthInfo->domain.c : mDNSNULL, q->qname.c, DNSTypeName(q->qtype));
352 const domainname *domain, const domainname *keyname, const char *b64keydata, const domainname *hostname, mDNSIPPort *port, const char *autoTunnelPrefix)
358 LogInfo("mDNS_SetSecretForDomain: domain %##s key %##s%s%s", domain->c, keyname->c, autoTunnelPrefix ? " prefix " : "", autoTunnelPrefix ? autoTunnelPrefix : "");
361 AssignDomainName(&info->domain, domain);
375 LogMsg("mDNS_SetSecretForDomain: ERROR: Could not convert shared secret from base64: domain %##s key %##s %s", domain->c, keyname->c, mDNS_LoggingEnabled ? b64keydata : "");
383 if (*p) {LogInfo("mDNS_SetSecretForDomain: Domain %##s Already in list", (*p)->domain.c); return(mStatus_AlreadyRegistered);}
404 q->AuthInfo ? q->AuthInfo->domain.c : mDNSNULL,
405 newinfo ? newinfo ->domain.c : mDNSNULL, q->qname.c, DNSTypeName(q->qtype));
1607 int initialskip = (AuthInfo && AuthInfo->AutoTunnel) ? DomainNameLength(name) - DomainNameLength(&AuthInfo->domain) : 0;
1628 LogInfo("StartGetZoneData: Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
1632 // 1. Zone name is the same as the AuthInfo domain
1638 AssignDomainName(&zd->ZoneName, &AuthInfo->domain);
1647 if (AuthInfo && AuthInfo->AutoTunnel) LogInfo("StartGetZoneData: Not Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
2540 hinfoSize = (m->hostlabel.c[0] + 1) + DomainNameLength(&AuthInfo->domain) +
2719 if (info && info->deltime && m->timenow - info->deltime >= 0) {debugf("IsRecordMergeable: Domain %##s will be deleted soon", info->domain.c); return mDNSfalse;}
3399 // The name falls within the "1.0.0.127.in-addr.arpa." domain, the reverse-mapping name for the local
4036 // into one update. If the domain is being deleted, delay by 2 * MERGE_DELAY_TIME
4193 q->unansweredQueries, q->qname.c, DNSTypeName(q->qtype), &orig->addr, mDNSVal16(orig->port), orig->domain.c);
4656 mDNSexport void mDNS_AddSearchDomain(const domainname *const domain, mDNSInterfaceID InterfaceID)
4661 // Check to see if we already have this domain in our list
4663 if (((*p)->InterfaceID == InterfaceID) && SameDomainName(&(*p)->domain, domain))
4665 // If domain is already in list, and marked for deletion, unmark the delete
4667 LogInfo("mDNS_AddSearchDomain already in list %##s", domain->c);
4682 // if domain not in list, add to list, mark as add (1)
4686 AssignDomainName(&(*p)->domain, domain);
4689 LogInfo("mDNS_AddSearchDomain created new %##s, InterfaceID %p", domain->c, InterfaceID);
4808 LogInfo("uDNS_SetupSearchDomains:action %d: Flags %d, AuthRecs %p, InterfaceID %p %##s", action, ptr->flag, ptr->AuthRecs, ptr->InterfaceID, ptr->domain.c);
4815 // If the user has "local" in their DNS searchlist, we ignore that for the purposes of domain enumeration queries
4816 // We suppressed the domain enumeration for scoped search domains below. When we enable that
4819 domain, &localdomain) && (ptr->InterfaceID == mDNSInterface_Any))
4845 // If the user has "local" in their DNS searchlist, we ignore that for the purposes of domain enumeration queries.
4846 // Also, suppress the domain enumeration for scoped search domains for now until there is a need.
4847 if (!SameDomainName(&ptr->domain, &localdomain) && (ptr->InterfaceID == mDNSInterface_Any))
4850 err1 = mDNS_GetDomains(m, &ptr->BrowseQ, mDNS_DomainTypeBrowse, &ptr->domain, ptr->InterfaceID, FoundDomain, ptr);
4851 err2 = mDNS_GetDomains(m, &ptr->DefBrowseQ, mDNS_DomainTypeBrowseDefault, &ptr->domain, ptr->InterfaceID, FoundDomain, ptr);
4852 err3 = mDNS_GetDomains(m, &ptr->RegisterQ, mDNS_DomainTypeRegistration, &ptr->domain, ptr->InterfaceID, FoundDomain, ptr);
4853 err4 = mDNS_GetDomains(m, &ptr->DefRegisterQ, mDNS_DomainTypeRegistrationDefault, &ptr->domain, ptr->InterfaceID, FoundDomain, ptr);
4854 err5 = mDNS_GetDomains(m, &ptr->AutomaticBrowseQ, mDNS_DomainTypeBrowseAutomatic, &ptr->domain, ptr->InterfaceID, FoundDomain, ptr);
4856 LogMsg("uDNS_SetupSearchDomains: GetDomains for domain %##s returned error(s):\n"
4862 ptr->domain.c, err1, err2, err3, err4, err5);
4885 int labels = CountLabels(&p->domain);
4888 const domainname *d = SkipLeadingLabels(&p->domain, labels - 1);
4891 LogInfo("uDNS_GetNextSearchDomain: skipping search domain %##s, InterfaceID %p", p->domain.c, p->InterfaceID);
4898 LogInfo("uDNS_GetNextSearchDomain: skipping local domain %##s, InterfaceID %p", p->domain.c, p->InterfaceID);
4906 // When we are appending search domains in a ActiveDirectory domain, the question's InterfaceID
4911 LogInfo("uDNS_GetNextSearchDomain returning domain %##s, InterfaceID %p", p->domain.c, p->InterfaceID);
4912 return &p->domain;
4914 LogInfo("uDNS_GetNextSearchDomain skipping domain %##s, InterfaceID %p", p->domain.c, p->InterfaceID);
4952 // Construction of Default Browse domain list (i.e. when clients pass NULL) is as follows:
4955 // 2) for each search domain (from prefs pane), query for b._dns-sd._udp.<searchdomain>.