MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/usr/lib/python2.4/site-packages/dns/zone.pyc
mò
©XQc@sgdZdklZdkZdkZdkZdkZdkZdk	Zdk
ZdkZdkZdk
ZdkZdkZdeiifd„ƒYZdefd„ƒYZdefd„ƒYZd	efd
„ƒYZdefd„ƒYZd
efd„ƒYZeeiieeeeed„Zeeiieeeeed„Zeeed„Z dS(s
DNS Zones.(s
generatorsNtBadZonecBstZdZRS(sThe zone is malformed.(t__name__t
__module__t__doc__(((t,/usr/lib/python2.4/site-packages/dns/zone.pyR#stNoSOAcBstZdZRS(s%The zone has no SOA RR at its origin.(RRR(((RR'stNoNScBstZdZRS(s'The zone has no NS RRset at its origin.(RRR(((RR+st
UnknownOrigincBstZdZRS(sThe zone's origin is unknown.(RRR(((RR/stZonecBs£tZdZeiiZddddgZeii	e
d„Zd„Zd„Z
d„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zed„Zed„Zd„Zeii ed„Z!eii ed„Z"eii d„Z#d„Z$eii d„Z%eii d„Z&eii'eii d„Z(eii'eii d„Z)e
e
e*d „Z+d!„Z,RS("sZA DNS zone.

    A Zone is a mapping from names to nodes.  The zone object may be
    treated like a Python dictionary, e.g. zone[name] will retrieve
    the node associated with that name.  The I{name} may be a
    dns.name.Name object, or it may be a string.  In the either case,
    if the name is relative it is treated as relative to the origin of
    the zone.

    @ivar rdclass: The zone's rdata class; the default is class IN.
    @type rdclass: int
    @ivar origin: The origin of the zone.
    @type origin: dns.name.Name object
    @ivar nodes: A dictionary mapping the names of nodes in the zone to the
    nodes themselves.
    @type nodes: dict
    @ivar relativize: should names in the zone be relativized?
    @type relativize: bool
    @cvar node_factory: the factory used to create a new node
    @type node_factory: class or callable
    trdclasstorigintnodest
relativizecCs(||_||_h|_||_dS(sØInitialize a zone object.

        @param origin: The origin of the zone.
        @type origin: dns.name.Name object
        @param rdclass: The zone's rdata class; the default is class IN.
        @type rdclass: intN(R	tselfR
RR(R
R
R	R((Rt__init__Ns
			cCs]t|tƒptSn|i|ijp&|i|ijp|i|ijotSntS(siTwo zones are equal if they have the same origin, class, and
        nodes.
        @rtype: bool
        N(	t
isinstancetotherRtFalseR
R	R
RtTrue(R
R((Rt__eq__[s9cCs|i|ƒS(s6Are two zones not equal?
        @rtype: bool
        N(R
RR(R
R((Rt__ne__iscCs­t|ttfƒotii|dƒ}n't|tiiƒptdƒ‚n|i	ƒoG|i
|iƒptdƒ‚n|i
o|i
|iƒ}q©n|S(Ns0name parameter must be convertable to a DNS names5name parameter must be a subdomain of the zone origin(Rtnametstrtunicodetdnst	from_texttNonetNametKeyErrortis_absolutetis_subdomainR
R
R(R
R((Rt_validate_nameps

cCs|i|ƒ}|i|S(N(R
RtkeyR(R
R ((Rt__getitem__|scCs |i|ƒ}||i|<dS(N(R
RR tvalueR(R
R R"((Rt__setitem__€scCs|i|ƒ}|i|=dS(N(R
RR R(R
R ((Rt__delitem__„scCs
|iiƒS(N(R
Rtiterkeys(R
((Rt__iter__ˆscCs
|iiƒS(N(R
RR%(R
((RR%‹scCs
|iiƒS(N(R
Rtkeys(R
((RR'ŽscCs
|iiƒS(N(R
Rt
itervalues(R
((RR(‘scCs
|iiƒS(N(R
Rtvalues(R
((RR)”scCs
|iiƒS(N(R
Rt	iteritems(R
((RR*—scCs
|iiƒS(N(R
Rtitems(R
((RR+šscCs|i|ƒ}|ii|ƒS(N(R
RR Rtget(R
R ((RR,scCs
||ijS(N(RR
R(R
R((Rt__contains__¡scCs`|i|ƒ}|ii|ƒ}|djo.|p
t‚n|i	ƒ}||i|<n|S(srFind a node in the zone, possibly creating it.

        @param name: the name of the node to find
        @type name: dns.name.Name object or string
        @param create: should the node be created if it doesn't exist?
        @type create: bool
        @raises KeyError: the name is not known and create was not specified.
        @rtype: dns.node.Node object
        N(
R
RRRR,tnodeRtcreateRtnode_factory(R
RR/R.((Rt	find_node¤s	

cCs6y|i||ƒ}Wntj
o
d}nX|S(sÝGet a node in the zone, possibly creating it.

        This method is like L{find_node}, except it returns None instead
        of raising an exception if the node does not exist and creation
        has not been requested.

        @param name: the name of the node to find
        @type name: dns.name.Name object or string
        @param create: should the node be created if it doesn't exist?
        @type create: bool
        @rtype: dns.node.Node object or None
        N(R
R1RR/R.RR(R
RR/R.((Rtget_node¸scCs4|i|ƒ}|ii|ƒo|i|=ndS(shDelete the specified node if it exists.

        It is not an error if the node does not exist.
        N(R
RRRthas_key(R
R((Rtdelete_nodeÌscCs’|i|ƒ}t|ttfƒotii	|ƒ}nt|ttfƒotii	|ƒ}n|i||ƒ}|i|i|||ƒS(sÞLook for rdata with the specified name and type in the zone,
        and return an rdataset encapsulating it.

        The I{name}, I{rdtype}, and I{covers} parameters may be
        strings, in which case they will be converted to their proper
        type.

        The rdataset returned is not a copy; changes to it will change
        the zone.

        KeyError is raised if the name or type are not found.
        Use L{get_rdataset} if you want to have None returned instead.

        @param name: the owner name to look for
        @type name: DNS.name.Name object or string
        @param rdtype: the rdata type desired
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        @param create: should the node and rdataset be created if they do not
        exist?
        @type create: bool
        @raises KeyError: the node or rdata could not be found
        @rtype: dns.rrset.RRset object
        N(R
RRRtrdtypeRRRt	rdatatypeRtcoversR1R/R.t
find_rdatasetR	(R
RR5R7R/R.((RR8ÖscCs<y|i||||ƒ}Wntj
o
d}nX|S(s Look for rdata with the specified name and type in the zone,
        and return an rdataset encapsulating it.

        The I{name}, I{rdtype}, and I{covers} parameters may be
        strings, in which case they will be converted to their proper
        type.

        The rdataset returned is not a copy; changes to it will change
        the zone.

        None is returned if the name or type are not found.
        Use L{find_rdataset} if you want to have KeyError raised instead.

        @param name: the owner name to look for
        @type name: DNS.name.Name object or string
        @param rdtype: the rdata type desired
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        @param create: should the node and rdataset be created if they do not
        exist?
        @type create: bool
        @rtype: dns.rrset.RRset object
        N(	R
R8RR5R7R/trdatasetRR(R
RR5R7R/R9((Rtget_rdatasetúscCsÅ|i|ƒ}t|ttfƒotii	|ƒ}nt|ttfƒotii	|ƒ}n|i|ƒ}|dj	o>|i|i||ƒt|ƒdjo|i|ƒqÁndS(síDelete the rdataset matching I{rdtype} and I{covers}, if it
        exists at the node specified by I{name}.

        The I{name}, I{rdtype}, and I{covers} parameters may be
        strings, in which case they will be converted to their proper
        type.

        It is not an error if the node does not exist, or if there is no
        matching rdataset at the node.

        If the node has no rdatasets after the deletion, it will itself
        be deleted.

        @param name: the owner name to look for
        @type name: DNS.name.Name object or string
        @param rdtype: the rdata type desired
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        iN(R
RRRR5RRRR6RR7R2R.Rtdelete_rdatasetR	tlenR4(R
RR5R7R.((RR;s
cCsF|i|ijotdƒ‚n|i|tƒ}|i|ƒdS(s:Replace an rdataset at name.

        It is not an error if there is no rdataset matching I{replacement}.

        Ownership of the I{replacement} object is transferred to the zone;
        in other words, this method does not store a copy of I{replacement}
        at the node, it stores I{replacement} itself.

        If the I{name} node does not exist, it is created.

        @param name: the owner name
        @type name: DNS.name.Name object or string
        @param replacement: the replacement rdataset
        @type replacement: dns.rdataset.Rdataset
        s#replacement.rdclass != zone.rdclassN(	treplacementR	R
t
ValueErrorR1RRR.treplace_rdataset(R
RR=R.((RR?<s
cCsµ|i|ƒ}t|ttfƒotii	|ƒ}nt|ttfƒotii	|ƒ}n|i|i|i
||ƒ}tii||i
||ƒ}|i|ƒ|S(s‘Look for rdata with the specified name and type in the zone,
        and return an RRset encapsulating it.

        The I{name}, I{rdtype}, and I{covers} parameters may be
        strings, in which case they will be converted to their proper
        type.

        This method is less efficient than the similar
        L{find_rdataset} because it creates an RRset instead of
        returning the matching rdataset.  It may be more convenient
        for some uses since it returns an object which binds the owner
        name to the rdata.

        This method may not be used to create new nodes or rdatasets;
        use L{find_rdataset} instead.

        KeyError is raised if the name or type are not found.
        Use L{get_rrset} if you want to have None returned instead.

        @param name: the owner name to look for
        @type name: DNS.name.Name object or string
        @param rdtype: the rdata type desired
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        @raises KeyError: the node or rdata could not be found
        @rtype: dns.rrset.RRset object
        N(R
RRRR5RRRR6RR7RR8R	R9trrsettRRsettupdate(R
RR5R7R9R@((Rt
find_rrsetRs
cCs9y|i|||ƒ}Wntj
o
d}nX|S(sJLook for rdata with the specified name and type in the zone,
        and return an RRset encapsulating it.

        The I{name}, I{rdtype}, and I{covers} parameters may be
        strings, in which case they will be converted to their proper
        type.

        This method is less efficient than the similar L{get_rdataset}
        because it creates an RRset instead of returning the matching
        rdataset.  It may be more convenient for some uses since it
        returns an object which binds the owner name to the rdata.

        This method may not be used to create new nodes or rdatasets;
        use L{find_rdataset} instead.

        None is returned if the name or type are not found.
        Use L{find_rrset} if you want to have KeyError raised instead.

        @param name: the owner name to look for
        @type name: DNS.name.Name object or string
        @param rdtype: the rdata type desired
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        @rtype: dns.rrset.RRset object
        N(R
RCRR5R7R@RR(R
RR5R7R@((Rt	get_rrsetzsccsËt|ttfƒotii|ƒ}nt|ttfƒotii|ƒ}nxl|i	ƒD]^\}}xO|D]G}|tii
jp |i|jo|i|jo||fVqxqxWqeWdS(s¦Return a generator which yields (name, rdataset) tuples for
        all rdatasets in the zone which have the specified I{rdtype}
        and I{covers}.  If I{rdtype} is dns.rdatatype.ANY, the default,
        then all rdatasets will be matched.

        @param rdtype: int or string
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        N(RR5RRRR6RR7R
R*RR.trdstANY(R
R5R7R.RER((Rtiterate_rdatasetsœs
3ccsât|ttfƒotii|ƒ}nt|ttfƒotii|ƒ}nxƒ|i	ƒD]u\}}xf|D]^}|tii
jp |i|jo5|i|jo%x"|D]}||i|fVq¸WqxqxWqeWdS(s¢Return a generator which yields (name, ttl, rdata) tuples for
        all rdatas in the zone which have the specified I{rdtype}
        and I{covers}.  If I{rdtype} is dns.rdatatype.ANY, the default,
        then all rdatas will be matched.

        @param rdtype: int or string
        @type rdtype: int or string
        @param covers: the covered type (defaults to None)
        @type covers: int or string
        N(RR5RRRR6RR7R
R*RR.RERFtrdatatttl(R
R5R7R.RERHR((Rtiterate_rdatas³s
3cCs"tidjo
t}nt}|djo
d}	nd}	t||ƒot
||	ƒ}t}nt
}z™|o|iƒ}|iƒn
|iƒ}xe|D]]}||i|d|id|ƒ}
|djo||
IJq£|i|
ƒ|i|ƒq£WWd|o|iƒnXdS(sWrite a zone to a file.

        @param f: file or string.  If I{f} is a string, it is treated
        as the name of a file to open.
        @param sorted: if True, the file will be written with the
        names sorted in DNSSEC order from least to greatest.  Otherwise
        the names will be written in whatever order they happen to have
        in the zone's dictionary.
        @param relativize: if True, domain names in the output will be
        relativized to the zone's origin (if possible).
        @type relativize: bool
        @param nl: The end of line string.  If not specified, the
        output will use the platform's native end-of-line marker (i.e.
        LF on POSIX, CRLF on Windows, CR on Macintosh).
        @type nl: string or None
        itwtwbR
RN(tsyst
hexversiont
basestringtstr_typeRtnlRtoptsRtftfileRt
want_closeRtsortedR
R'tnamestsortR%tntto_textR
Rtltwritetclose(R
RSRVRRQRPRYRURWRRR[((Rtto_fileËs6





cCsy|iotii}n
|i}|i|tiiƒdjo
t
‚n|i|tiiƒdjo
t‚ndS(sÐDo some simple checking of the zone's origin.

        @raises dns.zone.NoSOA: there is no SOA RR
        @raises dns.zone.NoNS: there is no NS RRset
        @raises KeyError: there is no origin node
        N(
R
RRRtemptyR
R:R6tSOARRtNSR(R
R((Rtcheck_originýs
	
(-RRRRR.tNodeR0t	__slots__t
rdataclasstINRRRRRR!R#R$R&R%R'R(R)R*R+R,R-RR1R2R4R6tNONER8R:R;R?RCRDRFRGRJRR^Rb(((RR3s@
																
$!!	("2t
_MasterReadercBsMtZdZeeed„Zd„Zd„Zd„Z	d„Z
d„ZRS(s¼Read a DNS master file

    @ivar tok: The tokenizer
    @type tok: dns.tokenizer.Tokenizer object
    @ivar ttl: The default TTL
    @type ttl: int
    @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)
    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
    cCs™t|ttfƒotii|ƒ}n||_||_	||_
d|_d|_
|||d|ƒ|_g|_d|_||_||_dS(NiR(RR
RRRRRttokR
tcurrent_originRRIRt	last_nametzone_factoryR	tzonetsaved_statetcurrent_filet
allow_includeRb(R
RiR
R	RRlRpRb((RR)s								cCs-x&|iiƒ}|iƒoPqqWdS(Ni(R
RiR,ttokent
is_eol_or_eof(R
Rq((Rt	_eat_line8s

cCsš|idjo
t‚n|iidtƒ}|iƒp"t	i
i|i|iƒ|_
n5|iiƒ}|iƒodSn|ii|ƒ|i
}|i|iiƒp|iƒdSn|io|i|iiƒ}n|iiƒ}|iƒpt	ii‚nyEt	ii|iƒ}	|iiƒ}|iƒpt	ii‚nWn"t	iij
o|i}	nXyEt	ii|iƒ}|iiƒ}|iƒpt	ii‚nWn7t	iij
ot	ii‚n|ii}nX||iijot	iidƒ‚nyt	ii|iƒ}Wn t	iid|iƒ‚nX|iii|ƒ}|djo#|ii ƒ}||ii|<ny(t	i!i|||i|it"ƒ}Wnyt	iij
o#t$i%ƒd \}}
|
‚nFt$i%ƒd \}}
t	iidt(|ƒt(|
ƒfƒ‚nX|i)|ii|iƒ|i*ƒ}|i+|||tƒ}|i-||	ƒdS(s(Process one line from a DNS master file.twant_leadingNsRR class is not zone's classsunknown rdatatype '%s'iscaught exception %s: %s(.R
RjRRRiR,RRqt
is_whitespaceRRRR"RkRrtungetRRmR
RsRt
is_identifiert	exceptiontSyntaxErrorRItBadTTLReR	R6R5RRYR0RHRtrdRMtexc_infottytvaRtchoose_relativityR7R8REtadd(R
R5RRER}R7RYR{RqRIR~R	((Rt_rr_line>st

"
	






,c
Cs‹tidƒ}tidƒ}
tidƒ}|i|ƒ}|o6|iƒ\}	}}}}|djo
d}qyn|
i|ƒ}|o<|iƒ\}	}}|djo
d}nd}d}n|i|ƒ}|oI|iƒ\}	}}}|djo
d}n|iƒd}d}n|p|p|p"d}	d}d}d}d}n|djo
t‚n|	||||fS(	Ns"^.*\$({(\+|-?)(\d+),(\d+),(.)}).*$s^.*\$({(\+|-?)(\d+)}).*$s^.*\$({(\+|-?)(\d+),(\d+)}).*$tt+itdi(tretcompiletis_generate1tis_generate2tis_generate3tmatchtsidetg1tgroupstmodtsigntoffsettwidthtbasetg2tg3tNotImplemented(
R
R‹R”R“RŒR‘RR’RRŽRˆR‰R‡((Rt
_parse_modify‡s>









c!Csb|idjo
t‚n|iiƒ}yNtii	|i
ƒ\}}}|iiƒ}|iƒptii‚nWntii‚nXy9|i
}|iiƒ}|iƒptii‚nWntii‚nXyEtii	|i
ƒ}|iiƒ}|iƒptii‚nWn"tiij
o|i}nXyEtii	|i
ƒ}|iiƒ}|iƒptii‚nWn7tiij
otii‚n|ii}nX||iijotiidƒ‚nyEtii	|i
ƒ}	|iiƒ}|iƒptii‚nWn tiid|i
ƒ‚nXy
|i
}Wntii‚nX|i|ƒ\}}}}} |i|ƒ\}}}}}x¦t%||d|ƒD]Ž}|djo|t'|ƒ}n"|djo|t'|ƒ}n|djo|t'|ƒ}n"|djo|t'|ƒ}nt*|ƒi+t'|ƒƒ}t*|ƒi+t'|ƒƒ}|i.d||ƒ}|i.d||ƒ}ti/i	||iƒ|_1|i1}|i2|ii3ƒp|i4ƒdSn|i5o|i5|ii3ƒ}n|ii6i|ƒ}|djo#|ii8ƒ}||ii6|<ny%ti0i	||	||it9ƒ}
Wnytiij
o#t;i<ƒd \}
}|‚nFt;i<ƒd \}
}tiid	t*|
ƒt*|ƒfƒ‚nX|
i?|ii3|i5ƒ|
i@ƒ}|iA||	|tBƒ}|iD|
|ƒqÌWdS(
sRProcess one line containing the GENERATE statement from a DNS
        master file.sRR class is not zone's classsunknown rdatatype '%s'iRƒt-s$%sNiscaught exception %s: %s(ER
RjRRRiR,RqRtgrangeRR"tstarttstoptstepRwRxRytlhsRIRzReR	RmR6R5trhsR–tlmodtlsigntloffsettlwidthtlbasetrmodtrsigntroffsettrwidthtrbasetrangetitinttlindextrindexRtzfilltlzfindextrzfindextreplaceRRHRkRR
RsRRRYR0RR{RMR|R}R~RR7R8RRER€(!R
R~R R¯R®R7R¡RIRžR5R}R¬R§R{R™R¤R£RRšR›R«RHRR¦RŸR	RER©R¥RYRqRœR¢((Rt_generate_line°s®

	








	



,cCs¦yx|iittƒiƒ}|iƒos|idj	o|ii	ƒnt
|iƒdjo7|iidƒ\|_|_
|_|_|_qnPn^|iƒoqnJ|iƒo|iiƒqn)|iddjo|iiƒ}|djo[|iiƒ}|iƒptiidƒ‚ntii|iƒ|_|iiƒq|djoI|iiƒ|_
|iiƒ|iidjo|i
|i_q÷q|djoþ|ioô|iiƒ}|i}|iiƒ}|iƒo,ti i|i|i
ƒ}|iiƒn-|i"ƒptiid	ƒ‚n
|i
}|ii#|i|i
|i|i|ifƒt$|d
ƒ|_ti%i&|i|ƒ|_||_
q|djo|i'ƒqtiid|d
ƒ‚qn|ii(|ƒ|i)ƒqWWnftiij
oT}|ii+ƒ\}}|djo
d}ntiid|||fƒ‚nX|i-o|ii-ƒndS(sÈRead a DNS master file and build a zone object.

        @raises dns.zone.NoSOA: No SOA RR was found at the zone origin
        @raises dns.zone.NoNS: No NS RRset was found at the zone origin
        iiiÿÿÿÿt$s$TTLsbad $TTLs$ORIGINs$INCLUDEsbad origin in $INCLUDEtrs	$GENERATEsUnknown master file directive 't'ssyntax errors	%s:%d: %sN(.R
RiR,RtunescapeRqtis_eofRoRR]R<RntpopRjRkRItis_eolt
is_commenttget_eolR"tuppertuRwRRxRyRtget_nameRmR
RptfilenameRt
new_originRrtappendRTt	tokenizert	TokenizerR±RvRtdetailtwheretline_numberRb(R
RÅR¿RÃR¾RqR¼((Rtread'sv
0






	

	.



$
(RRRRRRRRsRR–R±RÆ(((RRhs		I	)	wc

Csa|djo
d}ntii||ƒ}t|||||d|d|ƒ}	|	iƒ|	iS(srBuild a zone object from a master file format string.

    @param text: the master file format input
    @type text: string.
    @param origin: The origin of the zone; if not specified, the first
    $ORIGIN statement in the master file will determine the origin of the
    zone.
    @type origin: dns.name.Name object or string
    @param rdclass: The zone's rdata class; the default is class IN.
    @type rdclass: int
    @param relativize: should names be relativized?  The default is True
    @type relativize: bool
    @param zone_factory: The zone factory to use
    @type zone_factory: function returning a Zone
    @param filename: The filename to emit when describing where an error
    occurred; the default is '<string>'.
    @type filename: string
    @param allow_include: is $INCLUDE allowed?
    @type allow_include: bool
    @param check_origin: should sanity checks of the origin node be done?
    The default is True.
    @type check_origin: bool
    @raises dns.zone.NoSOA: No SOA RR was found at the zone origin
    @raises dns.zone.NoNS: No NS RRset was found at the zone origin
    @rtype: dns.zone.Zone object
    s<string>RpRbN(R¾RRRÁRÂttextRiRhR
R	RRlRpRbtreaderRÆRm(
RÇR
R	RRlR¾RpRbRiRÈ((RRts


c	CsËtidjot}
d}n
t}
d}t||
ƒo0|djo
|}nt
||ƒ}t}	n|djo
d}nt
}	z%t||||||||ƒ}Wd|	o|iƒnX|S(s³Read a master file and build a zone object.

    @param f: file or string.  If I{f} is a string, it is treated
    as the name of a file to open.
    @param origin: The origin of the zone; if not specified, the first
    $ORIGIN statement in the master file will determine the origin of the
    zone.
    @type origin: dns.name.Name object or string
    @param rdclass: The zone's rdata class; the default is class IN.
    @type rdclass: int
    @param relativize: should names be relativized?  The default is True
    @type relativize: bool
    @param zone_factory: The zone factory to use
    @type zone_factory: function returning a Zone
    @param filename: The filename to emit when describing where an error
    occurred; the default is '<file>', or the value of I{f} if I{f} is a
    string.
    @type filename: string
    @param allow_include: is $INCLUDE allowed?
    @type allow_include: bool
    @param check_origin: should sanity checks of the origin node be done?
    The default is True.
    @type check_origin: bool
    @raises dns.zone.NoSOA: No SOA RR was found at the zone origin
    @raises dns.zone.NoNS: No NS RRset was found at the zone origin
    @rtype: dns.zone.Zone object
    itrUR³s<file>N(RMRNRORPRRRRRSR¾RRTRRURRR
R	RRlRpRbtzR](RSR
R	RRlR¾RpRbRÊRURPRR((Rt	from_fileŸs*





cCs<d}x|D]}
|djoM|o
|
i}n|
idi}|
idi}|||d|ƒ}nx¯|
iD]¤}|ii|iƒ}|p |iƒ}||i|i<n|i|i|i|itƒ}|i|iƒx.|D]&}	|	i|i|ƒ|i|	ƒqñWqwWq
W|o|iƒn|S(s’Convert the output of a zone transfer generator into a zone object.

    @param xfr: The xfr generator
    @type xfr: generator of dns.message.Message objects
    @param relativize: should names be relativized?  The default is True.
    It is essential that the relativize setting matches the one specified
    to dns.query.xfr().
    @type relativize: bool
    @param check_origin: should sanity checks of the origin node be done?
    The default is True.
    @type check_origin: bool
    @raises dns.zone.NoSOA: No SOA RR was found at the zone origin
    @raises dns.zone.NoNS: No NS RRset was found at the zone origin
    @rtype: dns.zone.Zone object
    iRN(RRÊtxfrR³RR
tanswerRR	RlR@RR,tznodeR0R8R5R7Rtzrdst
update_ttlRIR{RR€Rb(RÌRlRRbR
RÊR	RÏRÎR{R³R@((Rtfrom_xfr×s4


(!Rt
__future__t
generatorsRMR…t
dns.exceptionRtdns.nametdns.nodetdns.rdataclasst
dns.rdatatypet	dns.rdatat	dns.rrsett
dns.tokenizertdns.ttlt
dns.grangeRxtDNSExceptionRRRRtobjectRRhRReRfRRRRËRÑ(
RËRhRRÑRRMR…RRRRRÓR((Rt?s0
												ÿÜÿg$+$8