Home
last modified time | relevance | path

Searched refs:dns (Results 1 – 25 of 163) sorted by relevance

1234567

/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/
Dupdate.py18 import dns.message
19 import dns.name
20 import dns.opcode
21 import dns.rdata
22 import dns.rdataclass
23 import dns.rdataset
25 class Update(dns.message.Message):
26 def __init__(self, zone, rdclass=dns.rdataclass.IN, keyring=None,
27 keyname=None, keyalgorithm=dns.tsig.default_algorithm):
49 self.flags |= dns.opcode.to_flags(dns.opcode.UPDATE)
[all …]
Dmessage.py24 import dns.exception
25 import dns.flags
26 import dns.name
27 import dns.opcode
28 import dns.entropy
29 import dns.rcode
30 import dns.rdata
31 import dns.rdataclass
32 import dns.rdatatype
33 import dns.rrset
[all …]
Dquery.py27 import dns.exception
28 import dns.inet
29 import dns.name
30 import dns.message
31 import dns.rdataclass
32 import dns.rdatatype
34 class UnexpectedSource(dns.exception.DNSException):
38 class BadResponse(dns.exception.FormError):
56 raise dns.exception.Timeout
67 raise dns.exception.Timeout
[all …]
Dzone.py22 import dns.exception
23 import dns.name
24 import dns.node
25 import dns.rdataclass
26 import dns.rdatatype
27 import dns.rdata
28 import dns.rrset
29 import dns.tokenizer
30 import dns.ttl
32 class BadZone(dns.exception.DNSException):
[all …]
Dresolver.py25 import dns.exception
26 import dns.message
27 import dns.name
28 import dns.query
29 import dns.rcode
30 import dns.rdataclass
31 import dns.rdatatype
36 class NXDOMAIN(dns.exception.DNSException):
44 Timeout = dns.exception.Timeout
46 class NoAnswer(dns.exception.DNSException):
[all …]
Dreversename.py24 import dns.name
25 import dns.ipv6
26 import dns.ipv4
28 ipv4_reverse_domain = dns.name.from_text('in-addr.arpa.')
29 ipv6_reverse_domain = dns.name.from_text('ip6.arpa.')
40 parts = list(dns.ipv6.inet_aton(text).encode('hex_codec'))
43 parts = ['%d' % ord(byte) for byte in dns.ipv4.inet_aton(text)]
46 return dns.name.from_text('.'.join(parts), origin=origin)
60 return dns.ipv4.inet_ntoa(dns.ipv4.inet_aton(text))
73 return dns.ipv6.inet_ntoa(dns.ipv6.inet_aton(text))
[all …]
Dtokenizer.py21 import dns.exception
22 import dns.name
23 import dns.ttl
44 class UngetBufferFull(dns.exception.DNSException):
124 raise dns.exception.UnexpectedEnd
129 raise dns.exception.UnexpectedEnd
133 raise dns.exception.UnexpectedEnd
137 raise dns.exception.SyntaxError
319 raise dns.exception.UnexpectedEnd
327 raise dns.exception.SyntaxError
[all …]
Drdataset.py22 import dns.exception
23 import dns.rdatatype
24 import dns.rdataclass
25 import dns.rdata
26 import dns.set
29 SimpleSet = dns.set.Set
31 class DifferingCovers(dns.exception.DNSException):
36 class IncompatibleTypes(dns.exception.DNSException):
40 class Rdataset(dns.set.Set):
62 def __init__(self, rdclass, rdtype, covers=dns.rdatatype.NONE):
[all …]
De164.py22 import dns.exception
23 import dns.name
24 import dns.resolver
26 public_enum_domain = dns.name.from_text('e164.arpa.')
40 return dns.name.from_text('.'.join(parts), origin=origin)
57 raise dns.exception.SyntaxError('non-digit labels in ENUM domain name')
70 resolver = dns.resolver.get_default_resolver()
73 domain = dns.name.from_text(domain)
74 qname = dns.e164.from_e164(number, domain)
77 except dns.resolver.NXDOMAIN:
[all …]
Dinet.py20 import dns.ipv4
21 import dns.ipv6
50 return dns.ipv4.inet_aton(text)
52 return dns.ipv6.inet_aton(text)
68 return dns.ipv4.inet_ntoa(address)
70 return dns.ipv6.inet_ntoa(address)
83 junk = dns.ipv4.inet_aton(text)
87 junk = dns.ipv6.inet_aton(text)
100 first = ord(dns.ipv4.inet_aton(text)[0])
104 first = ord(dns.ipv6.inet_aton(text)[0])
Drrset.py18 import dns.name
19 import dns.rdataset
20 import dns.rdataclass
21 import dns.renderer
23 class RRset(dns.rdataset.Rdataset):
35 def __init__(self, name, rdclass, rdtype, covers=dns.rdatatype.NONE,
53 ctext = '(' + dns.rdatatype.to_text(self.covers) + ')'
55 dtext = ' delete=' + dns.rdataclass.to_text(self.deleting)
59 dns.rdataclass.to_text(self.rdclass) + ' ' + \
60 dns.rdatatype.to_text(self.rdtype) + ctext + dtext + ' RRset>'
[all …]
Dtsig.py21 import dns.exception
22 import dns.rdataclass
23 import dns.name
25 class BadTime(dns.exception.DNSException):
29 class BadSignature(dns.exception.DNSException):
33 class PeerError(dns.exception.DNSException):
83 ctx.update(struct.pack('!H', dns.rdataclass.ANY))
129 raise dns.exception.FormError
133 (aname, used) = dns.name.from_wire(wire, current)
147 raise dns.exception.FormError
[all …]
/external/curl/lib/
Dhostip.c261 if((data->set.dns_cache_timeout == -1) || !data->dns.hostcache) in Curl_hostcache_prune()
272 hostcache_prune(data->dns.hostcache, in Curl_hostcache_prune()
294 struct Curl_dns_entry *dns = NULL; in fetch_addr() local
302 return dns; in fetch_addr()
307 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len+1); in fetch_addr()
309 if(dns && (data->set.dns_cache_timeout != -1)) { in fetch_addr()
316 if(hostcache_timestamp_remove(&user, dns)) { in fetch_addr()
318 dns = NULL; /* the memory deallocation is being handled by the hash */ in fetch_addr()
319 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len+1); in fetch_addr()
326 return dns; in fetch_addr()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRouteSelectorTest.java77 private final FakeDns dns = new FakeDns(); field in RouteSelectorTest
97 Internal.instance.setNetwork(client, dns); in setUp()
114 dns.inetAddresses = makeFakeAddresses(255, 1); in singleRoute()
115 assertRoute(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort); in singleRoute()
116 dns.assertRequests(uriHost); in singleRoute()
131 dns.inetAddresses = makeFakeAddresses(255, 1); in singleRouteReturnsFailedRoute()
135 assertRoute(routeSelector.next(), address, NO_PROXY, dns.inetAddresses[0], uriPort); in singleRouteReturnsFailedRoute()
151 dns.inetAddresses = makeFakeAddresses(255, 2); in explicitProxyTriesThatProxysAddressesOnly()
152 assertRoute(routeSelector.next(), address, proxyA, dns.inetAddresses[0], proxyAPort); in explicitProxyTriesThatProxysAddressesOnly()
153 assertRoute(routeSelector.next(), address, proxyA, dns.inetAddresses[1], proxyAPort); in explicitProxyTriesThatProxysAddressesOnly()
[all …]
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/IN/
DAAAA.py16 import dns.exception
17 import dns.inet
18 import dns.rdata
19 import dns.tokenizer
21 class AAAA(dns.rdata.Rdata):
32 junk = dns.inet.inet_pton(dns.inet.AF_INET6, address)
46 file.write(dns.inet.inet_pton(dns.inet.AF_INET6, self.address))
49 address = dns.inet.inet_ntop(dns.inet.AF_INET6,
56 sa = dns.inet.inet_pton(dns.inet.AF_INET6, self.address)
57 oa = dns.inet.inet_pton(dns.inet.AF_INET6, other.address)
DIPSECKEY.py19 import dns.exception
20 import dns.inet
21 import dns.name
23 class IPSECKEY(dns.rdata.Rdata):
49 junk = dns.inet.inet_pton(dns.inet.AF_INET, gateway)
52 junk = dns.inet.inet_pton(dns.inet.AF_INET6, gateway)
76 dns.rdata._base64ify(self.key))
92 raise dns.exception.SyntaxError
108 file.write(dns.inet.inet_pton(dns.inet.AF_INET, self.gateway))
110 file.write(dns.inet.inet_pton(dns.inet.AF_INET6, self.gateway))
[all …]
DA.py16 import dns.exception
17 import dns.ipv4
18 import dns.rdata
19 import dns.tokenizer
21 class A(dns.rdata.Rdata):
32 junk = dns.ipv4.inet_aton(address)
46 file.write(dns.ipv4.inet_aton(self.address))
49 address = dns.ipv4.inet_ntoa(wire[current : current + rdlen])
55 sa = dns.ipv4.inet_aton(self.address)
56 oa = dns.ipv4.inet_aton(other.address)
DAPL.py19 import dns.exception
20 import dns.inet
21 import dns.rdata
22 import dns.tokenizer
53 address = dns.inet.inet_pton(dns.inet.AF_INET, self.address)
55 address = dns.inet.inet_pton(dns.inet.AF_INET6, self.address)
75 class APL(dns.rdata.Rdata):
122 raise dns.exception.FormError
133 raise dns.exception.FormError
139 address = dns.inet.inet_ntop(dns.inet.AF_INET, address)
[all …]
/external/jmdns/src/javax/jmdns/impl/
DDNSRecord.java77 abstract boolean handleQuery(JmDNSImpl dns, long expirationTime); in handleQuery() argument
84 abstract boolean handleResponse(JmDNSImpl dns); in handleResponse() argument
89 …abstract DNSOutgoing addAnswer(JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgo… in addAnswer() argument
330 boolean handleQuery(JmDNSImpl dns, long expirationTime) { in handleQuery() argument
331 if (dns.getLocalHost().conflictWithRecord(this)) { in handleQuery()
332 …DNSRecord.Address localAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this… in handleQuery()
346 if (dns.isProbing() && comparison > 0) { in handleQuery()
348 dns.getLocalHost().incrementHostName(); in handleQuery()
349 dns.getCache().clear(); in handleQuery()
350 for (ServiceInfo serviceInfo : dns.getServices().values()) { in handleQuery()
[all …]
/external/autotest/client/cros/netprotos/
Dzeroconf.py32 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:
[all …]
Dzeroconf_unittest.py32 q = dpkt.dns.DNS.Q(name=name, type=dpkt.dns.DNS_A)
45 q_srv = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_SRV)
46 q_txt = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_TXT)
47 q_ptr = dpkt.dns.DNS.Q(name=name, type=dpkt.dns.DNS_PTR)
56 if resp.type == dpkt.dns.DNS_SRV][0]
113 dpkt.dns.DNS.RR(
114 type = dpkt.dns.DNS_TXT,
115 cls = dpkt.dns.DNS_IN,
119 dpkt.dns.DNS.RR(
120 type = dpkt.dns.DNS_TXT,
[all …]
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/ANY/
DCERT.py19 import dns.exception
20 import dns.dnssec
21 import dns.rdata
22 import dns.tokenizer
52 class CERT(dns.rdata.Rdata):
78 dns.dnssec.algorithm_to_text(self.algorithm),
79 dns.rdata._base64ify(self.certificate))
84 algorithm = dns.dnssec.algorithm_from_text(tok.get_string())
86 raise dns.exception.SyntaxError("bad algorithm type")
93 raise dns.exception.SyntaxError
[all …]
DNXT.py16 import dns.exception
17 import dns.rdata
18 import dns.rdatatype
19 import dns.name
21 class NXT(dns.rdata.Rdata):
44 bits.append(dns.rdatatype.to_text(i * 8 + j))
62 nrdtype = dns.rdatatype.from_text(token.value)
64 raise dns.exception.SyntaxError("NXT with bit 0")
66 raise dns.exception.SyntaxError("NXT with bit > 127")
69 bitmap = dns.rdata._truncate_bitmap(bitmap)
[all …]
DNSEC.py18 import dns.exception
19 import dns.rdata
20 import dns.rdatatype
21 import dns.name
23 class NSEC(dns.rdata.Rdata):
47 bits.append(dns.rdatatype.to_text(window * 256 + \
60 nrdtype = dns.rdatatype.from_text(token.value)
62 raise dns.exception.SyntaxError("NSEC with bit 0")
64 raise dns.exception.SyntaxError("NSEC with bit > 65535")
99 (next, cused) = dns.name.from_wire(wire[: current + rdlen], current)
[all …]
/external/mdnsresponder/Clients/
DMakefile29 TARGETS = build/dns-sd build/dns-sd64
32 TARGETS = build/dns-sd
44 build/dns-sd: build dns-sd.c ClientCommon.c
47 build/dns-sd64: build dns-sd.c ClientCommon.c

1234567