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)
Read a master file and build a zone object.
DNS.zone.Zone object from_text(text, origin, rdclass)
Build a zone object from a master file format string.
DNS.zone.Zone object from_xfr(xfr)
Convert the output of a zone transfer generator into a zone object.

Function Details

from_file(f, origin, rdclass=1)

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)
Returns:
DNS.zone.Zone object

from_text(text, origin, rdclass=1)

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)
Returns:
DNS.zone.Zone object

from_xfr(xfr)

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

Generated by Epydoc 1.1 on Sat Jun 21 20:52:29 2003 http://epydoc.sf.net