• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/mDNSResponder-561.1.1/mDNSCore/

Lines Matching refs:question

49 // question. Bit position is the index into the DNS server list. This is done so to try all
194 // when we receive the first response to a DNSSEC question, we set
220 LogInfo("PenalizeDNSServer: Penalizing DNS server %#a question for question %p %##s (%s) SuppressUnusable %d",
247 LogInfo("PenalizeDNSServer: Not Penalizing PTR question");
251 LogInfo("PenalizeDNSServer: Penalizing question type %d", q->qtype);
269 q->ThisQInterval = 0; // Inactivate this question so that we dont bombard the network
290 // We want to try the next server immediately. As the question may already have backed off, reset
303 // We don't have any more DNS servers for this question. If some server in the list did not return
312 // Be careful not to touch the ThisQInterval here. For a normal question, when we answer the question
314 // the next query will not happen until cache expiry. If it is a long lived question,
362 *p = info->next; // Cut DomainAuthInfo from list *before* scanning our question list updating AuthInfo pointers
983 mDNSlocal mDNSu8 *putLLQ(DNSMessage *const msg, mDNSu8 *ptr, const DNSQuestion *const question, const LLQOptData *const data)
989 //!!!KRS when we implement multiple llqs per message, we'll need to memmove anything past the question section
990 ptr = putQuestion(msg, ptr, msg->data + AbsoluteMaxDNSMessageData, &question->qname, question->qtype, question->qclass);
1034 if (q->tcp) { LogMsg("sendChallengeResponse: ERROR!!: question %##s (%s) tcp non-NULL", q->qname.c, DNSTypeName(q->qtype)); return; }
1250 DNSQuestion *const q = tcpInfo->question;
1255 LogMsg("tcpCallback: %d backpointer %p incorrect tcpInfo %p question %p rr %p",
1318 // Record time we sent this question
1421 // If we clear the tcp pointer in the question, mDNSCoreReceiveResponse cannot find a matching question. Hence
1422 // we store the minimal information i.e., the source port of the connection in the question itself.
1488 // If we get an error and our next scheduled query for this question is more than the max interval from now,
1520 DNSQuestion *const question, AuthRecord *const rr)
1527 useBackgroundTrafficClass = question ? question->UseBackgroundTrafficClass : mDNSfalse;
1539 info->question = question;
1556 err = mDNSPlatformTCPConnect(info->sock, Addr, Port, hostname, (question ? question->InterfaceID : mDNSNULL), tcpCallback, info);
1676 // update question state
1748 mDNSlocal void GetZoneData_QuestionCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
1750 ZoneData *zd = (ZoneData*)question->QuestionContext;
1756 if (answer->rrtype != question->qtype) return; // Don't care about CNAMEs
1761 mDNS_StopQuery(m, question);
1762 if (question->ThisQInterval != -1)
1763 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1768 AssignDomainName(&zd->question.qname, &zd->ZoneName);
1784 AssignDomainName(&zd->question.qname, zd->CurrentSOA);
1797 mDNS_StopQuery(m, question);
1798 if (question->ThisQInterval != -1)
1799 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1816 AssignDomainName(&zd->question.qname, &zd->Host);
1832 mDNS_StopQuery(m, question);
1833 if (question->ThisQInterval != -1)
1834 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1857 AssignDomainName(&zd->question.qname, ZoneDataSRV(zd));
1858 AppendDomainName(&zd->question.qname, &zd->ZoneName);
1859 debugf("lookupDNSPort %##s", zd->question.qname.c);
1862 // CancelGetZoneData can get called at any time. We should stop the question if it has not been
1863 // stopped already. A value of -1 for ThisQInterval indicates that the question is not active
1865 zd->question.ThisQInterval = -1;
1866 zd->question.InterfaceID = mDNSInterface_Any;
1867 zd->question.flags = 0;
1868 zd->question.Target = zeroAddr;
1869 //zd->question.qname.c[0] = 0; // Already set
1870 zd->question.qtype = qtype;
1871 zd->question.qclass = kDNSClass_IN;
1872 zd->question.LongLived = mDNSfalse;
1873 zd->question.ExpectUnique = mDNStrue;
1874 zd->question.ForceMCast = mDNSfalse;
1875 zd->question.ReturnIntermed = mDNStrue;
1876 zd->question.SuppressUnusable = mDNSfalse;
1877 zd->question.SearchListIndex = 0;
1878 zd->question.AppendSearchDomains = 0;
1879 zd->question.RetryWithSearchDomains = mDNSfalse;
1880 zd->question.TimeoutQuestion = 0;
1881 zd->question.WakeOnResolve = 0;
1882 zd->question.UseBackgroundTrafficClass = mDNSfalse;
1883 zd->question.ValidationRequired = 0;
1884 zd->question.ValidatingResponse = 0;
1885 zd->question.ProxyQuestion = 0;
1886 zd->question.qnameOrig = mDNSNULL;
1887 zd->question.AnonInfo = mDNSNULL;
1888 zd->question.pid = mDNSPlatformGetPID();
1889 zd->question.QuestionCallback = GetZoneData_QuestionCallback;
1890 zd->question.QuestionContext = zd;
1892 //LogMsg("GetZoneData_StartQuery %##s (%s) %p", zd->question.qname.c, DNSTypeName(zd->question.qtype), zd->question.Private);
1893 return(mDNS_StartQuery(m, &zd->question));
1916 zd->question.QuestionContext = zd;
1935 AssignDomainName(&zd->question.qname, &zd->Host);
1941 AssignDomainName(&zd->question.qname, zd->CurrentSOA);
1949 // Returns if the question is a GetZoneData question. These questions are special in
2498 mDNSlocal void FoundStaticHostname(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
2504 (void)question;
2507 LogInfo("FoundStaticHostname: question %##s -> answer %##s (%s)", question->qname.c, answer->rdata->u.name.c, AddRecord ? "ADD" : "RMV");
2509 LogInfo("FoundStaticHostname: question %##s -> answer NULL (%s)", question->qname.c, AddRecord ? "ADD" : "RMV");
3476 // We always expect the question to be stopped when we get a valid response from the server.
3479 if (rr->nta->question.ThisQInterval != -1)
3480 LogMsg("hndlRecordUpdateReply: ResourceRecord %s, zone info question %##s (%s) interval %d not -1",
3481 ARDisplayString(m, rr), rr->nta->question.qname.c, DNSTypeName(rr->nta->question.qtype), rr->nta->question.ThisQInterval);
3882 // If this is the kind of query that has the risk of crashing buggy DNS servers, we do a test question first
4068 // Note that we (conditionally) add HINFO and TSIG here, since the question might be going away,
4084 // Note: If a question is in LLQ_Established state, we never free the zone data for the
4085 // question (PrivateQuery). If we free, we reset the state to something other than LLQ_Established.
4637 // If we are not receiving any responses for DNSSEC question, it could be due to
4643 // question, we don't turn off validation. Also, we wait for MAX_DNSSEC_RETRANSMISSIONS
4672 // The question to be checked is not passed in as an explicit parameter;
4673 // instead it is implicit that the question to be checked is m->CurrentQuestion.
4712 // 1. We have only one DNS server for this question. It is not responding even after we sent MAX_UCAST_UNANSWERED_QUERIES.
4714 // noServerResponse in the block above and below we do not touch the question interval. When we come here, we
4728 // Re-initialize all DNS servers for this question. If we have a DNSServer, DNSServerChangeForQuestion will
4734 LogInfo("uDNS_checkCurrentQuestion: Retrying question %p %##s (%s) DNS Server %#a:%d ThisQInterval %d",
4809 LogInfo("uDNS_CheckCurrentQuestion: private non polling question for %##s (%s) will be retried in %d ms", q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval);
4829 // cache so that it will be visible to other clients asking the same question.
4840 LogMsg("uDNS_CheckCurrentQuestion: ERROR!!: valid DNSServer bits not zero 0x%x, 0x%x for question %##s (%s)",
4843 // question. Try after 60 seconds. We find this by looking for valid DNSServers for this question,
4845 // another state variable to see if we had valid DNS servers for this question.
4855 // Pretend that we sent this question. As this is an ActiveQuestion, the NextScheduledQuery should
4856 // be set properly. Also, we need to properly backoff in cases where we don't set the question to
4857 // MaxQuestionInterval when we answer the question e.g., LongLived, we need to keep backing off
4866 LogInfo("uDNS_checkCurrentQuestion: Tried all DNS servers, retry question %p SuppressUnusable %d %##s (%s) with DNS Server %#a:%d after 60 seconds, ThisQInterval %d",
4895 // We're already using the m->CurrentQuestion pointer, so CacheRecordAdd can't use it to walk the question list.
5135 // depends on having m->CurrentQuestion point to the right question
5229 mDNSlocal void FoundDomain(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
5231 SearchListElem *slElem = question->QuestionContext;
5239 if (question == &slElem->BrowseQ) name = mDNS_DomainTypeNames[mDNS_DomainTypeBrowse];
5240 else if (question == &slElem->DefBrowseQ) name = mDNS_DomainTypeNames[mDNS_DomainTypeBrowseDefault];
5241 else if (question == &slElem->AutomaticBrowseQ) name = mDNS_DomainTypeNames[mDNS_DomainTypeBrowseAutomatic];
5242 else if (question == &slElem->RegisterQ) name = mDNS_DomainTypeNames[mDNS_DomainTypeRegistration];
5243 else if (question == &slElem->DefRegisterQ) name = mDNS_DomainTypeNames[mDNS_DomainTypeRegistrationDefault];
5244 else { LogMsg("FoundDomain - unknown question"); return; }
5246 LogInfo("FoundDomain: %p %s %s Q %##s A %s", answer->InterfaceID, AddRecord ? "Add" : "Rmv", name, question->qname.c, RRDisplayString(m, answer));
5654 // of the question to zero immediately e.g., domain enumeration query calls
5685 // When we are appending search domains in a ActiveDirectory domain, the question's InterfaceID
5742 // does this. When we restart the question, we first want to try the new search domains rather
5753 // 4) result above should generate a callback from question in (1). result added to global list