Add a single RR to the update section.
(self, name, ttl, rd, deleting=None, section=None)
| 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. |
no test coverage detected