Lines Matching refs:question
430 for (const DNSQuestion& question : questions) { in write() local
431 buffer_cur = question.write(buffer_cur, buffer_end); in write()
775 for (const DNSQuestion& question : header.questions) { in handleDNSRequest() local
776 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest()
797 bool DNSResponder::addAnswerRecords(const DNSQuestion& question, in addAnswerRecords() argument
800 std::string rname = question.qname.name; in addAnswerRecords()
803 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa || in addAnswerRecords()
804 question.qtype == ns_type::ns_t_ptr) in addAnswerRecords()
806 rtypes.push_back(question.qtype); in addAnswerRecords()
836 LOG(INFO) << "no mapping found for " << question.qname.name << " " in addAnswerRecords()
837 << dnstype2str(question.qtype) << ", lazily refusing to add an answer"; in addAnswerRecords()
974 for (const DNSQuestion& question : header->questions) { in makeResponseFromAddressOrHostname() local
975 if (question.qclass != ns_class::ns_c_in && question.qclass != ns_class::ns_c_any) { in makeResponseFromAddressOrHostname()
976 LOG(INFO) << "unsupported question class " << question.qclass; in makeResponseFromAddressOrHostname()
980 if (!addAnswerRecords(question, &header->answers)) { in makeResponseFromAddressOrHostname()