Package dns :: Module zone
[show private | hide private]
[frames | no frames]

Module dns.zone

DNS Zones.
Classes
Zone A DNS zone.

Function Summary
dns.zone.Zone object from_file(f, origin, rdclass, relativize, zone_factory)
Read a master file and build a zone object.
dns.zone.Zone object from_text(text, origin, rdclass, relativize, zone_factory)
Build a zone object from a master file format string.
dns.zone.Zone object from_xfr(xfr, zone_factory)
Convert the output of a zone transfer generator into a zone object.

Variable Summary
_Feature generators

Function Details

from_file(f, origin, rdclass=1, relativize=1, zone_factory=<class 'dns.zone.Zone'>)

Read a master file and build a zone object.
Parameters:
f - file or string. If f is a string, it is treated as the name of a file to open.
origin - The origin of the zone.
           (type=dns.name.Name object or string)
rdclass - The zone's rdata class; the default is class IN.
           (type=int)
relativize - should names be relativized? The default is True
           (type=bool)
Returns:
dns.zone.Zone object

from_text(text, origin, rdclass=1, relativize=1, zone_factory=<class 'dns.zone.Zone'>)

Build a zone object from a master file format string.
Parameters:
text - the master file format input
           (type=string.)
origin - The origin of the zone.
           (type=dns.name.Name object or string)
rdclass - The zone's rdata class; the default is class IN.
           (type=int)
relativize - should names be relativized? The default is True
           (type=bool)
Returns:
dns.zone.Zone object

from_xfr(xfr, zone_factory=<class 'dns.zone.Zone'>)

Convert the output of a zone transfer generator into a zone object.
Parameters:
xfr - The xfr generator
           (type=generator of dns.message.Message objects)
Returns:
dns.zone.Zone object

Variable Details

generators

Type:
_Feature
Value:
_Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)           

Generated by Epydoc 1.1 on Sun Aug 10 21:36:15 2003 http://epydoc.sf.net