MCPcopy Create free account
hub / github.com/avicoder/spoodle / truncate

Method truncate

dnslib/dns.py:325–345  ·  view source on GitHub ↗

Return truncated copy of DNSRecord (with TC flag set) (removes all Questions & RRs and just returns header) >>> q = DNSRecord.question("abc.com") >>> a = q.reply() >>> a.add_answer(*RR.fromZone('abc.com IN TXT %s' % ('x' * 255

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_replyMethod · 0.80

Calls 2

DNSRecordClass · 0.85
DNSHeaderClass · 0.85

Tested by

no test coverage detected