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

Class _MasterReader

object --+
         |
        _MasterReader


Read a DNS master file
Method Summary
  __init__(self, tok, origin, rdclass, relativize, zone_factory, allow_include)
a new object with type S, a subtype of T __new__(S, ...)
  read(self)
Read a DNS master file and build a zone object.
  _eat_line(self)
  _rr_line(self)
Process one line from a DNS master file.

Instance Variable Summary
bool allow_include - is $INCLUDE allowed?
  current_file - the file object of the $INCLUDed file being parsed (None if no $INCLUDE is active).
dns.name.Name object current_origin - The current origin
dns.name.Name object last_name - The last name read
bool relativize - should names in the zone be relativized?
list of (tokenizer, current_origin, last_name, file) tuples. saved_state - saved reader state (used when processing $INCLUDE)
dns.tokenizer.Tokenizer object tok - The tokenizer
int ttl - The default TTL
dns.zone.Zone object zone - the zone

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

read(self)

Read a DNS master file and build a zone object.
Raises:
dns.zone.NoSOA - No SOA RR was found at the zone origin
dns.zone.NoNS - No NS RRset was found at the zone origin

_rr_line(self)

Process one line from a DNS master file.

Instance Variable Details

allow_include

is $INCLUDE allowed?
Type:
bool

current_file

the file object of the $INCLUDed file being parsed (None if no $INCLUDE is active).

current_origin

The current origin
Type:
dns.name.Name object

last_name

The last name read
Type:
dns.name.Name object

relativize

should names in the zone be relativized?
Type:
bool

saved_state

saved reader state (used when processing $INCLUDE)
Type:
list of (tokenizer, current_origin, last_name, file) tuples.

tok

The tokenizer
Type:
dns.tokenizer.Tokenizer object

ttl

The default TTL
Type:
int

zone

the zone
Type:
dns.zone.Zone object

Generated by Epydoc 1.1 on Fri Nov 7 14:49:31 2003 http://epydoc.sf.net