| Home | Trees | Index | Help |
|
|---|
| Package dns :: Module zone :: Class Zone |
|
object --+
|
Zone
A DNS zone.
Zones are a container for nodes. The zone object may be treated like a 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.| Method Summary | |
|---|---|
Initialize a zone object. | |
__delitem__(self,
key)
| |
| bool |
Two zones are equal if they have the same origin, class, and nodes. |
__getitem__(self,
key)
| |
__iter__(self)
| |
| bool |
Are two zones not equal? |
| a new object with type S, a subtype of T |
|
__setitem__(self,
key,
value)
| |
| Instance Variable Summary | |
|---|---|
| dict | nodes
- A dictionary mapping the names of nodes in the zone to the nodes
themselves. |
| dns.name.Name object | origin
- The origin of the zone. |
| int | rdclass
- The zone's rdata class; the default is class IN. |
| Class Variable Summary | |
|---|---|
| class or callable | Node
- the factory used to create a new node |
| Method Details |
|---|
__init__(self,
origin,
rdclass=1)
Initialize a zone object.
|
__eq__(self,
other)
Two zones are equal if they have the same origin, class, and
nodes.
|
__ne__(self, other)Are two zones not equal?
|
__new__(S, ...)
|
| Instance Variable Details |
|---|
nodesA dictionary mapping the names of nodes in the zone to the nodes themselves.
|
originThe origin of the zone.
|
rdclassThe zone's rdata class; the default is class IN.
|
| Class Variable Details |
|---|
NodeNode = dns.node.Node
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Sat Jul 19 02:54:32 2003 | http://epydoc.sf.net |