MCPcopy Create free account
hub / github.com/rthalley/dnspython / _add_rr

Method _add_rr

dns/update.py:122–131  ·  view source on GitHub ↗

Add a single RR to the update section.

(self, name, ttl, rd, deleting=None, section=None)

Source from the content-addressed store, hash-verified

120 self.sections[2] = v
121
122 def _add_rr(self, name, ttl, rd, deleting=None, section=None):
123 """Add a single RR to the update section."""
124
125 if section is None:
126 section = self.update
127 covers = rd.covers()
128 rrset = self.find_rrset(
129 section, name, self.zone_rdclass, rd.rdtype, covers, deleting, True, True
130 )
131 rrset.add(rd, ttl)
132
133 def _add(self, replace, section, name, *args):
134 """Add records.

Callers 2

_addMethod · 0.95
deleteMethod · 0.95

Calls 3

coversMethod · 0.45
find_rrsetMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected