MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / CNAME

Method CNAME

mitmproxy/dns.py:228–232  ·  view source on GitHub ↗

Create a canonical internet name resource record.

(
        cls, alias: str, canonical: str, *, ttl: int = DEFAULT_TTL
    )

Source from the content-addressed store, hash-verified

226
227 @classmethod
228 def CNAME(
229 cls, alias: str, canonical: str, *, ttl: int = DEFAULT_TTL
230 ) -> ResourceRecord:
231 """Create a canonical internet name resource record."""
232 return cls(alias, types.CNAME, classes.IN, ttl, domain_names.pack(canonical))
233
234 @classmethod
235 def PTR(cls, inaddr: str, ptr: str, *, ttl: int = DEFAULT_TTL) -> ResourceRecord:

Callers 1

test_strMethod · 0.80

Calls 1

packMethod · 0.80

Tested by 1

test_strMethod · 0.64