dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.zone._MasterReader Class Reference
Inheritance diagram for dns.zone._MasterReader:
[legend]
Collaboration diagram for dns.zone._MasterReader:
[legend]

Public Member Functions

def __init__ (self, tok, origin, rdclass, relativize, zone_factory=Zone, allow_include=False, check_origin=True)
 
def read (self)
 

Public Attributes

 tok
 
 current_origin
 
 relativize
 
 last_ttl
 
 last_ttl_known
 
 default_ttl
 
 default_ttl_known
 
 last_name
 
 zone
 
 saved_state
 
 current_file
 
 allow_include
 
 check_origin
 

Private Member Functions

def _eat_line (self)
 
def _rr_line (self)
 
def _parse_modify (self, side)
 
def _generate_line (self)
 

Detailed Description

Read a DNS master file

@ivar tok: The tokenizer
@type tok: dns.tokenizer.Tokenizer object
@ivar last_ttl: The last seen explicit TTL for an RR
@type last_ttl: int
@ivar last_ttl_known: Has last TTL been detected
@type last_ttl_known: bool
@ivar default_ttl: The default TTL from a $TTL directive or SOA RR
@type default_ttl: int
@ivar default_ttl_known: Has default TTL been detected
@type default_ttl_known: bool
@ivar last_name: The last name read
@type last_name: dns.name.Name object
@ivar current_origin: The current origin
@type current_origin: dns.name.Name object
@ivar relativize: should names in the zone be relativized?
@type relativize: bool
@ivar zone: the zone
@type zone: dns.zone.Zone object
@ivar saved_state: saved reader state (used when processing $INCLUDE)
@type saved_state: list of (tokenizer, current_origin, last_name, file,
last_ttl, last_ttl_known, default_ttl, default_ttl_known) tuples.
@ivar current_file: the file object of the $INCLUDed file being parsed
(None if no $INCLUDE is active).
@ivar allow_include: is $INCLUDE allowed?
@type allow_include: bool
@ivar check_origin: should sanity checks of the origin node be done?
The default is True.
@type check_origin: bool

Definition at line 586 of file zone.py.

Constructor & Destructor Documentation

◆ __init__()

def dns.zone._MasterReader.__init__ (   self,
  tok,
  origin,
  rdclass,
  relativize,
  zone_factory = Zone,
  allow_include = False,
  check_origin = True 
)

Definition at line 620 of file zone.py.

Member Function Documentation

◆ _eat_line()

def dns.zone._MasterReader._eat_line (   self)
private

◆ _generate_line()

◆ _parse_modify()

def dns.zone._MasterReader._parse_modify (   self,
  side 
)
private

Definition at line 734 of file zone.py.

Referenced by dns.zone._MasterReader._generate_line().

◆ _rr_line()

◆ read()

Member Data Documentation

◆ allow_include

dns.zone._MasterReader.allow_include

Definition at line 634 of file zone.py.

Referenced by dns.zone._MasterReader.read().

◆ check_origin

dns.zone._MasterReader.check_origin

Definition at line 635 of file zone.py.

Referenced by dns.zone._MasterReader.read().

◆ current_file

dns.zone._MasterReader.current_file

Definition at line 633 of file zone.py.

Referenced by dns.zone._MasterReader.read().

◆ current_origin

dns.zone._MasterReader.current_origin

◆ default_ttl

dns.zone._MasterReader.default_ttl

◆ default_ttl_known

dns.zone._MasterReader.default_ttl_known

◆ last_name

dns.zone._MasterReader.last_name

◆ last_ttl

dns.zone._MasterReader.last_ttl

◆ last_ttl_known

dns.zone._MasterReader.last_ttl_known

◆ relativize

◆ saved_state

dns.zone._MasterReader.saved_state

Definition at line 632 of file zone.py.

Referenced by dns.zone._MasterReader.read().

◆ tok

◆ zone

dns.zone._MasterReader.zone

The documentation for this class was generated from the following file: