find_rdataset(self,
rdclass,
rdtype,
covers=0,
create=0,
force_unique=0)
Find an rdataset matching the specified properties in the current
node.
-
- Parameters:
rdclass -
The class of the rdataset
(type=int)
rdtype -
The type of the rdataset
(type=int)
covers -
The covered type. Usually this value is dns.rdatatype.NONE, but if the
rdtype is dns.rdatatype.SIG, then the covers value will be the
rdata type the SIG covers. The library treats the SIG type as if
it were a family of types, e.g. SIG(A), SIG(NS), SIG(SOA). This
makes SIGs much easier to work with than if SIGs covering
different rdata types were aggregated into a single SIG
rdataset.
(type=int)
create -
If True, create the rdataset if it is not found, unless
force_unique is also True, in which case always create a
new rdataset. The created rdataset is appended to
self.rdatasets.
(type=bool)
force_unique -
If create is True, always create the rdataset, even if it
already exists.
(type=bool)
- Returns:
-
dns.rdataset.Rdataset object
|