Lines Matching refs:dns
32 dpkt.dns.DNS.RR.__slots__)
137 mdns = dpkt.dns.DNS(data)
140 dpkt.dns.DNS_A: self._process_A,
141 dpkt.dns.DNS_PTR: self._process_PTR,
142 dpkt.dns.DNS_TXT: self._process_TXT,
143 dpkt.dns.DNS_SRV: self._process_SRV,
150 elif q.type == dpkt.dns.DNS_ANY:
173 if rr.type == dpkt.dns.DNS_A:
175 elif rr.type == dpkt.dns.DNS_PTR:
177 elif rr.type == dpkt.dns.DNS_TXT:
179 elif rr.type == dpkt.dns.DNS_SRV:
220 resp_dns = dpkt.dns.DNS(
221 op = dpkt.dns.DNS_AA, # Authoritative Answer.
222 rcode = dpkt.dns.DNS_RCODE_NOERR,
225 resp_dns.qr = dpkt.dns.DNS_R, # Response.
260 ans = dpkt.dns.DNS.RR(
261 type = dpkt.dns.DNS_SRV,
262 cls = dpkt.dns.DNS_IN | DNS_CACHE_FLUSH,
271 a_qry = dpkt.dns.DNS.Q(name=full_hostname, type=dpkt.dns.DNS_A)
300 answers.append(dpkt.dns.DNS.RR(
301 type = dpkt.dns.DNS_A,
302 cls = dpkt.dns.DNS_IN | DNS_CACHE_FLUSH,
336 answers.append(dpkt.dns.DNS.RR(
337 type = dpkt.dns.DNS_PTR,
338 cls = dpkt.dns.DNS_IN, # Don't cache flush for PTR records.
361 self._send_answers(self._process_TXT(dpkt.dns.DNS.Q(name=domain)))
374 answer = dpkt.dns.DNS.RR(
375 type = dpkt.dns.DNS_TXT,
376 cls = dpkt.dns.DNS_IN | DNS_CACHE_FLUSH,
457 queries = [dpkt.dns.DNS.Q(name=rrname, type=rrtype)
461 mdns = dpkt.dns.DNS(
462 op = dpkt.dns.DNS_QUERY,