Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:Query

256 			// so that when the cache expires, we can restart the query. 
270 // the next query will not happen until cache expiry. If it is a long lived question,
693 // We want to send our poll query ASAP, but the "+ 1" is because if we set the time to now,
755 if (PrivateQuery(q)) { LogMsg("sendChallengeResponse: ERROR!!: Private Query %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); return; }
1199 // If we get an error and our next scheduled query for this question is more than the max interval from now,
1200 // reset the next query to ensure we wait no longer the maximum interval from now before trying again.
1208 // because sendChallengeResponse will send the query via UDP if we don't have a tcp pointer.
1329 // When we poll, we free the zone information as we send the query to the server (See
1449 mDNSlocal const domainname *PRIVATE_QUERY_SERVICE_TYPE = (const domainname*)"\x0E_dns-query-tls" "\x04_tcp";
1520 zd->ZonePrivate = mDNSfalse; // Causes ZoneDataSRV() to yield a different SRV name when building the query
1628 LogInfo("StartGetZoneData: Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
1647 if (AuthInfo && AuthInfo->AutoTunnel) LogInfo("StartGetZoneData: Not Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
1657 // that they are created internally while resolving a private query or LLQs.
1665 // because that would result in an infinite loop (i.e. to do a private query we first need to get
1666 // the _dns-query-tls SRV record for the zone, and we can't do *that* privately because to do so
1667 // we'd need to already know the _dns-query-tls SRV record.
2110 // If we already have a NAT query active, stop it and restart it to make sure we get another callback
3377 // 1. Any query where the name ends in ".in-addr.arpa." and the text before this is 32 or more bytes.
3378 // The query type does not need to be PTR -- the gateway will crash for any query type.
3381 // 2. Any query that results in a large response with the TC bit set.
3383 // 3. Any PTR query that doesn't begin with four decimal numbers.
3384 // These gateways appear to assume that the only possible PTR query is a reverse-mapping query
3385 // (e.g. "1.0.168.192.in-addr.arpa") and if they ever get a PTR query where the first four
3390 // The challenge therefore is to craft a query that will discern whether the DNS server
3393 // name servers and giving Apple a bad reputation. To this end we send this query:
3400 // loopback address, and therefore the query will black-hole at the first properly-configured DNS server
3401 // it reaches, making it highly unlikely that this query will make it all the way to the root.
3403 // Finally, the correct response to this query is NXDOMAIN or a similar error, but the
3405 // give themselves away by actually returning a result for this nonsense query.
3412 // If this is the kind of query that has the risk of crashing buggy DNS servers, we do a test question first
3417 if (q->AuthInfo) return(mDNStrue); // Don't need a test query for private queries sent directly to authoritative server over TLS/TCP
3418 if (q->qtype != kDNSType_PTR) return(mDNStrue); // Don't need a test query for any non-PTR queries
3419 for (i=0; i<4; i++) // If qname does not begin with num.num.num.num, can't skip the test query
3427 // If remainder of qname is ".in-addr.arpa.", this is a vanilla reverse-mapping query and
3428 // we can safely do it without needing a test query first, otherwise we need the test query.
3468 matchaddr ? "" : " NOTE: Reply did not come from address to which query was sent");
3474 matchaddr ? "" : " NOTE: Reply did not come from address to which query was sent");
3571 #pragma mark - Query Routines
3723 // Next call to uDNS_CheckCurrentQuestion() will do this as a non-private query
3728 LogMsg("PrivateQueryGotZoneData: ERROR!! Not a private query %##s (%s) AuthInfo %p", q->qname.c, DNSTypeName(q->qtype), q->AuthInfo);
4131 // a meaningful WAB query
4203 // already waited for the response. We need to send another query right at this moment. We do that below by
4204 // reinitializing dns servers and reissuing the query.
4242 else if (m->timenow - q->qDNSServer->lasttest >= INIT_UCAST_POLL_INTERVAL) // Make sure at least three seconds has elapsed since last test query
4244 LogInfo("Sending DNS test query to %#a:%d", &q->qDNSServer->addr, mDNSVal16(q->qDNSServer->port));
4295 // If we have no server for this query, or the only server is a disabled one, then we deliver
4301 // passed to uDNS_CheckCurrentQuestion -- we only want one set of query packets hitting the wire --
4336 // to send a query and come back to the same place here and log the above message.
4545 // back to INIT_RECORD_REG_INTERVAL. This also gives enough time for the query.
4830 // deregister records generated from answers to the query
4953 // 1) query for b._dns-sd._udp.local on LocalOnly interface
4955 // 2) for each search domain (from prefs pane), query for b._dns-sd._udp.<searchdomain>.