Lines Matching refs:question
425 for (const DNSQuestion& question : questions) { in write() local
426 buffer_cur = question.write(buffer_cur, buffer_end); in write()
778 for (const DNSQuestion& question : header.questions) { in handleDNSRequest() local
779 queries_.push_back({question.qname.name, ns_type(question.qtype), protocol}); in handleDNSRequest()
800 bool DNSResponder::addAnswerRecords(const DNSQuestion& question, in addAnswerRecords() argument
803 std::string rname = question.qname.name; in addAnswerRecords()
806 if (question.qtype == ns_type::ns_t_a || question.qtype == ns_type::ns_t_aaaa || in addAnswerRecords()
807 question.qtype == ns_type::ns_t_ptr) in addAnswerRecords()
809 rtypes.push_back(question.qtype); in addAnswerRecords()
839 LOG(INFO) << "no mapping found for " << question.qname.name << " " in addAnswerRecords()
840 << dnstype2str(question.qtype) << ", lazily refusing to add an answer"; in addAnswerRecords()
977 for (const DNSQuestion& question : header->questions) { in makeResponseFromAddressOrHostname() local
978 if (question.qclass != ns_class::ns_c_in && question.qclass != ns_class::ns_c_any) { in makeResponseFromAddressOrHostname()
979 LOG(INFO) << "unsupported question class " << question.qclass; in makeResponseFromAddressOrHostname()
983 if (!addAnswerRecords(question, &header->answers)) { in makeResponseFromAddressOrHostname()