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)
Read a master file and build a zone object.
dns.zone.Zone object from_text(text, origin, rdclass, relativize)
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.
  _eat_line(tok)
  _rr_line(z, tok)
Process one line from a DNS master file.

Function Details

from_file(f, origin, rdclass=1, relativize=True)

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=True)

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)

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

_rr_line(z, tok)

Process one line from a DNS master file.

Generated by Epydoc 1.1 on Mon Jun 30 15:54:11 2003 http://epydoc.sf.net