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

Method replace

dns/update.py:248–264  ·  view source on GitHub ↗

Replace records. The first argument is always a name. The other arguments can be: - rdataset... - ttl, rdata... - ttl, rdtype, string... Note that if you want to replace the entire node, you should do a delete of t

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

Source from the content-addressed store, hash-verified

246 self._add_rr(name, 0, rd, dns.rdataclass.NONE)
247
248 def replace(self, name: dns.name.Name | str, *args: Any) -> None:
249 """Replace records.
250
251 The first argument is always a name. The other
252 arguments can be:
253
254 - rdataset...
255
256 - ttl, rdata...
257
258 - ttl, rdtype, string...
259
260 Note that if you want to replace the entire node, you should do
261 a delete of the name followed by one or more calls to add.
262 """
263
264 self._add(True, self.update, name, *args)
265
266 def present(self, name: dns.name.Name | str, *args: Any) -> None:
267 """Require that an owner name (and optionally an rdata type,

Callers 2

test_replaced_rdataMethod · 0.95

Calls 1

_addMethod · 0.95

Tested by 2

test_replaced_rdataMethod · 0.76