Home | Trees | Indices | Help |
|
---|
|
object --+ | Zone
A DNS zone.
A Zone is a mapping from names to nodes. The zone object may be treated like a Python dictionary, e.g. zone[name] will retrieve the node associated with that name. The name may be a dns.name.Name object, or it may be a string. In the either case, if the name is relative it is treated as relative to the origin of the zone.
|
|||
class or callable |
node_factory the factory used to create a new node |
|
|||
|
|||
bool |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dns.node.Node object |
|
||
dns.node.Node object or None |
|
||
|
|||
dns.rdataset.Rdataset object |
|
||
dns.rdataset.Rdataset object or None |
|
||
|
|||
|
|||
dns.rrset.RRset object |
|
||
dns.rrset.RRset object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize a zone object.
|
Find a node in the zone, possibly creating it.
|
Get a node in the zone, possibly creating it. This method is like find_node, except it returns None instead of raising an exception if the node does not exist and creation has not been requested.
|
Delete the specified node if it exists. It is not an error if the node does not exist. |
Look for rdata with the specified name and type in the zone, and return an rdataset encapsulating it. The name, rdtype, and covers parameters may be strings, in which case they will be converted to their proper type. The rdataset returned is not a copy; changes to it will change the zone. KeyError is raised if the name or type are not found. Use get_rdataset if you want to have None returned instead.
|
Look for rdata with the specified name and type in the zone, and return an rdataset encapsulating it. The name, rdtype, and covers parameters may be strings, in which case they will be converted to their proper type. The rdataset returned is not a copy; changes to it will change the zone. None is returned if the name or type are not found. Use find_rdataset if you want to have KeyError raised instead.
|
Delete the rdataset matching rdtype and covers, if it exists at the node specified by name. The name, rdtype, and covers parameters may be strings, in which case they will be converted to their proper type. It is not an error if the node does not exist, or if there is no matching rdataset at the node. If the node has no rdatasets after the deletion, it will itself be deleted.
|
Replace an rdataset at name. It is not an error if there is no rdataset matching replacement. Ownership of the replacement object is transferred to the zone; in other words, this method does not store a copy of replacement at the node, it stores replacement itself. If the name node does not exist, it is created.
|
Look for rdata with the specified name and type in the zone, and return an RRset encapsulating it. The name, rdtype, and covers parameters may be strings, in which case they will be converted to their proper type. This method is less efficient than the similar find_rdataset because it creates an RRset instead of returning the matching rdataset. It may be more convenient for some uses since it returns an object which binds the owner name to the rdata. This method may not be used to create new nodes or rdatasets; use find_rdataset instead. KeyError is raised if the name or type are not found. Use get_rrset if you want to have None returned instead.
|
Look for rdata with the specified name and type in the zone, and return an RRset encapsulating it. The name, rdtype, and covers parameters may be strings, in which case they will be converted to their proper type. This method is less efficient than the similar get_rdataset because it creates an RRset instead of returning the matching rdataset. It may be more convenient for some uses since it returns an object which binds the owner name to the rdata. This method may not be used to create new nodes or rdatasets; use find_rdataset instead. None is returned if the name or type are not found. Use find_rrset if you want to have KeyError raised instead.
|
Return a generator which yields (name, rdataset) tuples for all rdatasets in the zone which have the specified rdtype and covers. If rdtype is dns.rdatatype.ANY, the default, then all rdatasets will be matched.
|
Return a generator which yields (name, ttl, rdata) tuples for all rdatas in the zone which have the specified rdtype and covers. If rdtype is dns.rdatatype.ANY, the default, then all rdatas will be matched.
|
Write a zone to a file.
|
Return a zone's text as though it were written to a file.
|
Do some simple checking of the zone's origin.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 8 10:59:55 2018 | http://epydoc.sourceforge.net |