Home | History | Annotate | Download | only in sample

Lines Matching full:questions

109 	/* dummy; give 192.168.11.11 as an answer for all A questions,
110 * give foo.bar.example.com as an answer for all PTR questions. */
113 if (req->questions[i]->type == EVDNS_TYPE_A &&
114 req->questions[i]->dns_question_class == EVDNS_CLASS_INET) {
115 printf(" -- replying for %s (A)\n", req->questions[i]->name);
116 r = evdns_server_request_add_a_reply(req, req->questions[i]->name,
120 } else if (req->questions[i]->type == EVDNS_TYPE_PTR &&
121 req->questions[i]->dns_question_class == EVDNS_CLASS_INET) {
122 printf(" -- replying for %s (PTR)\n", req->questions[i]->name);
123 r = evdns_server_request_add_ptr_reply(req, NULL, req->questions[i]->name,
128 printf(" -- skipping %s [%d %d]\n", req->questions[i]->name,
129 req->questions[i]->type, req->questions[i]->dns_question_class);