MCPcopy
hub / github.com/mitmproxy/mitmproxy / A

Method A

mitmproxy/dns.py:216–218  ·  view source on GitHub ↗

Create an IPv4 resource record.

(cls, name: str, ip: IPv4Address, *, ttl: int = DEFAULT_TTL)

Source from the content-addressed store, hash-verified

214
215 @classmethod
216 def A(cls, name: str, ip: IPv4Address, *, ttl: int = DEFAULT_TTL) -> ResourceRecord:
217 """Create an IPv4 resource record."""
218 return cls(name, types.A, classes.IN, ttl, ip.packed)
219
220 @classmethod
221 def AAAA(

Callers 15

test_strMethod · 0.80
test_responsesMethod · 0.80
HbFunction · 0.80
GFunction · 0.80
geFunction · 0.80
KFunction · 0.80
leFunction · 0.80
reFunction · 0.80
IeFunction · 0.80
XeFunction · 0.80
YeFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_strMethod · 0.64
test_responsesMethod · 0.64