Lines Matching refs:answer
67 static volatile int StopNow; // 0 means running, 1 means stop because we got an answer, 2 means stop because of Ctrl-C
107 mDNSlocal void NameCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
113 if (answer->rrtype == kDNSType_PTR || answer->rrtype == kDNSType_CNAME)
115 ConvertDomainNameToCString(&answer->rdata->u.name, hostname);
117 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c);
121 mDNSlocal void InfoCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
126 if (answer->rrtype == kDNSType_A)
131 mprintf("%##s %s %.4a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv4);
133 hostaddr.ip.v4 = answer->rdata->u.ipv4;
135 else if (answer->rrtype == kDNSType_AAAA)
140 mprintf("%##s %s %.16a\n", answer->name->c, DNSTypeName(answer->rrtype), &answer->rdata->u.ipv6);
144 hostaddr.ip.v6 = answer->rdata->u.ipv6;
147 else if (answer->rrtype == kDNSType_HINFO)
149 mDNSu8 *p = answer->rdata->u.data;
163 mDNSlocal void ServicesCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
171 if (answer->rrtype == kDNSType_PTR && mDNSSameAddress(&lastsrc, &target))
174 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c);
258 mprintf("%##s %s *** No Answer ***\n", q->qname.c, DNSTypeName(q->qtype));