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

Type _MasterReader

object --+
         |
        _MasterReader


Read a DNS master file
Method Summary
  __init__(self, tok, origin, rdclass, relativize, zone_factory, allow_include)
  _eat_line(self)
  _rr_line(self)
Process one line from a DNS master file.
  read(self)
Read a DNS master file and build a zone object.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

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

_rr_line(self)

Process one line from a DNS master file.

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

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 2.1 on Thu Apr 1 12:10:11 2004 http://epydoc.sf.net