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

Method add

dns/update.py:173–186  ·  view source on GitHub ↗

Add records. The first argument is always a name. The other arguments can be: - rdataset... - ttl, rdata... - ttl, rdtype, string...

(self, name: dns.name.Name | str, *args: Any)

Source from the content-addressed store, hash-verified

171 self._add_rr(name, ttl, rd, section=section)
172
173 def add(self, name: dns.name.Name | str, *args: Any) -> None:
174 """Add records.
175
176 The first argument is always a name. The other
177 arguments can be:
178
179 - rdataset...
180
181 - ttl, rdata...
182
183 - ttl, rdtype, string...
184 """
185
186 self._add(False, self.update, name, *args)
187
188 def delete(self, name: dns.name.Name | str, *args: Any) -> None:
189 """Delete records.

Callers 4

test_added_rdatasetMethod · 0.95
test_added_rdataMethod · 0.95
test_replaced_rdataMethod · 0.95
_add_rrMethod · 0.45

Calls 1

_addMethod · 0.95

Tested by 3

test_added_rdatasetMethod · 0.76
test_added_rdataMethod · 0.76
test_replaced_rdataMethod · 0.76