Lines Matching defs:lookup
371 trying(char *frm, dig_lookup_t *lookup) {
373 UNUSED(lookup);
415 if (!default_lookups || query->lookup->rdtype == dns_rdatatype_a) {
436 dns_name_format(query->lookup->name, nametext,
442 /* the lookup failed */
447 if (default_lookups && query->lookup->rdtype == dns_rdatatype_a) {
449 dig_lookup_t *lookup;
453 /* Add AAAA lookup. */
455 dns_name_copy(query->lookup->name, name);
458 lookup = clone_lookup(query->lookup, false);
459 if (lookup != NULL) {
460 strlcpy(lookup->textname, namestr,
461 sizeof(lookup->textname));
462 lookup->rdtype = dns_rdatatype_aaaa;
463 lookup->rdtypeset = true;
464 lookup->origin = NULL;
465 lookup->retries = tries;
466 ISC_LIST_APPEND(lookup_list, lookup, link);
471 (!default_lookups || query->lookup->rdtype == dns_rdatatype_a))
478 if (default_lookups && query->lookup->rdtype == dns_rdatatype_a)
482 (query->lookup->rdtype == dns_rdatatype_aaaa &&
486 query->lookup->textname);
491 (query->lookup->rdtype != dns_rdatatype_a) &&
492 (query->lookup->rdtype != dns_rdatatype_aaaa))
733 dig_lookup_t *lookup;
758 lookup = make_empty_lookup();
760 strlcpy(lookup->textname, store, sizeof(lookup->textname));
761 lookup->rdtype = dns_rdatatype_ptr;
762 lookup->rdtypeset = true;
764 strlcpy(lookup->textname, opt, sizeof(lookup->textname));
765 lookup->rdtype = rdtype;
766 lookup->rdtypeset = true;
768 lookup->rdclass = rdclass;
769 lookup->rdclassset = true;
770 lookup->trace = false;
771 lookup->trace_root = lookup->trace;
772 lookup->ns_search_only = false;
773 lookup->identify = identify;
774 lookup->recurse = recurse;
775 lookup->aaonly = aaonly;
776 lookup->retries = tries;
777 lookup->setqid = false;
778 lookup->qid = 0;
779 lookup->comments = comments;
780 if (lookup->rdtype == dns_rdatatype_any && !tcpmode_set) {
781 lookup->tcp_mode = true;
783 lookup->tcp_mode = tcpmode;
785 lookup->stats = stats;
786 lookup->section_question = section_question;
787 lookup->section_answer = section_answer;
788 lookup->section_authority = section_authority;
789 lookup->section_additional = section_additional;
790 lookup->new_search = true;
791 lookup->besteffort = false;
793 lookup->servfail_stops = false;
795 ISC_LIST_INIT(lookup->q);
796 ISC_LINK_INIT(lookup, link);
797 ISC_LIST_APPEND(lookup_list, lookup, link);
798 lookup->origin = NULL;
799 ISC_LIST_INIT(lookup->my_server_list);
800 debug("looking up %s", lookup->textname);