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

Class _MasterReader

source code

object --+
         |
        _MasterReader

Read a DNS master file

Instance Methods [hide private]
 
__init__(self, tok, origin, rdclass, relativize, zone_factory=<class 'dns.zone.Zone'>, allow_include=False, check_origin=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_eat_line(self) source code
 
_rr_line(self)
Process one line from a DNS master file.
source code
 
_parse_modify(self, side) source code
 
_generate_line(self)
Process one line containing the GENERATE statement from a DNS master file.
source code
 
read(self)
Read a DNS master file and build a zone object.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
bool allow_include
is $INCLUDE allowed?
bool check_origin
should sanity checks of the origin node be done? The default is True.
  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
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tok, origin, rdclass, relativize, zone_factory=<class 'dns.zone.Zone'>, allow_include=False, check_origin=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

read(self)

source code 

Read a DNS master file and build a zone object.

Raises: