MCPcopy
hub / github.com/mitmproxy/mitmproxy / PTR

Method PTR

mitmproxy/dns.py:235–237  ·  view source on GitHub ↗

Create a canonical internet name resource record.

(cls, inaddr: str, ptr: str, *, ttl: int = DEFAULT_TTL)

Source from the content-addressed store, hash-verified

233
234 @classmethod
235 def PTR(cls, inaddr: str, ptr: str, *, ttl: int = DEFAULT_TTL) -> ResourceRecord:
236 """Create a canonical internet name resource record."""
237 return cls(inaddr, types.PTR, classes.IN, ttl, domain_names.pack(ptr))
238
239 @classmethod
240 def TXT(cls, name: str, text: str, *, ttl: int = DEFAULT_TTL) -> ResourceRecord:

Callers 1

test_strMethod · 0.80

Calls 1

packMethod · 0.80

Tested by 1

test_strMethod · 0.64