Lines Matching defs:query

171 "                 -q name             (specify query name)\n"
172 " -t type (specify query type)\n"
173 " -c class (specify query class)\n"
176 " -4 (use IPv4 query transport only)\n"
177 " -6 (use IPv6 query transport only)\n"
182 " +time=### (Set query timeout) [5]\n"
197 " +[no]aaonly (Set AA flag in query (+[no]aaflag))\n"
198 " +[no]adflag (Set AD flag in query)\n"
199 " +[no]cdflag (Set CD flag in query)\n"
238 received(int bytes, isc_sockaddr_t *from, dig_query_t *query) {
250 if (query->lookup->stats && !short_form) {
251 diff = isc_time_microdiff(&now, &query->time_sent);
253 printf(";; SERVER: %s(%s)\n", fromtext, query->servname);
259 if (query->lookup->doing_xfr) {
262 query->rr_count, query->msg_count,
263 query->byte_count);
276 } else if (query->lookup->identify && !short_form) {
277 diff = isc_time_microdiff(&now, &query->time_sent);
280 query->lookup->doing_xfr ?
281 query->byte_count : (isc_uint64_t)bytes,
282 fromtext, query->userarg,
302 say_message(dns_rdata_t *rdata, dig_query_t *query, isc_buffer_t *buf) {
308 if (query->lookup->trace || query->lookup->ns_search_only) {
318 if (query->lookup->identify) {
320 diff = isc_time_microdiff(&now, &query->time_sent);
322 ADD_STRING(buf, query->servname);
335 isc_buffer_t *buf, dig_query_t *query)
362 result = say_message(&rdata, query,
430 printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
463 if (query->lookup->cmdline[0] != 0) {
465 fputs(query->lookup->cmdline, stdout);
466 query->lookup->cmdline[0]=0;
469 query->lookup->comments ? "comments" : "nocomments",
477 if (!query->lookup->comments)
483 if (query->lookup->comments && !short_form) {
484 if (query->lookup->cmdline[0] != 0)
485 printf("; %s\n", query->lookup->cmdline);
486 if (msg == query->lookup->sendmsg)
522 if (msg != query->lookup->sendmsg &&
528 if (msg != query->lookup->sendmsg &&
529 query->lookup->edns != -1 && msg->opt == NULL &&
532 printf("\n;; WARNING: EDNS query returned status "
535 query->lookup->dnssec ? "+nodnssec ": "");
536 if (msg != query->lookup->sendmsg && extrabytes != 0U)
543 if (query->lookup->comments && headers && !short_form) {
561 if (query->lookup->section_question && headers) {
571 if (query->lookup->section_answer) {
580 result = short_answer(msg, flags, buf, query);
586 if (query->lookup->section_authority) {
596 if (query->lookup->section_additional) {
628 if (headers && query->lookup->comments && !short_form)