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/3/root/proc/self/root/usr/lib/python2.4/site-packages/dns/query.pyc
mò
…|Rc@sÅdZdklZdkZdkZdkZdkZdkZdkZdk	Z
dkZ
dkZ
dk
Z
dkZ
dkZ
de
iifd„ƒYZde
iifd„ƒYZd„Zd„Zd	„Zd
„Zd„Zeedƒo
eanead
„Zd„Zd„Zd„Zddddde!e!d„Z"d„Z#d„Z$d„Z%ddddde!d„Z&e
i'i(e
i)i*dddde+ddddde!e
i,i-d„Z.dS(sTalk to a DNS server.(s
generatorsNtUnexpectedSourcecBstZdZRS(sDRaised if a query response comes from an unexpected address or port.(t__name__t
__module__t__doc__(((t-/usr/lib/python2.4/site-packages/dns/query.pyR"stBadResponsecBstZdZRS(sBRaised if a query response does not respond to the question asked.(RRR(((RR&scCs'|djodSntiƒ|SdS(N(ttimeouttNonettime(R((Rt_compute_expiration*s
cCs¤d}|o|tiO}n|o|tiO}n|o|tiO}ntiƒ}|i
||ƒ|o|it
|dƒƒ}n
|iƒ}t|ƒS(sqPoll polling backend.
    @param fd: File descriptor
    @type fd: int
    @param readable: Whether to wait for readability
    @type readable: bool
    @param writable: Whether to wait for writability
    @type writable: bool
    @param timeout: Deadline timeout (expiration time, in seconds)
    @type timeout: float
    @return True on success, False on timeout
    iièN(t
event_masktreadabletselecttPOLLINtwritabletPOLLOUTterrortPOLLERRtpolltpollabletregistertfdRtlongt
event_listtbool(RRRRRRR
R((Rt	_poll_for0scCs¸ggg}	}}|o
|g}	n|o
|g}n|o
|g}n|djo"t	i	|	||ƒ\}
}}n"t	i	|	|||ƒ\}
}}t
|
p|p|ƒS(ssSelect polling backend.
    @param fd: File descriptor
    @type fd: int
    @param readable: Whether to wait for readability
    @type readable: bool
    @param writable: Whether to wait for writability
    @type writable: bool
    @param timeout: Deadline timeout (expiration time, in seconds)
    @type timeout: float
    @return True on success, False on timeout
    N(trsettwsettxsetRRRRRRRtrcounttwcounttxcountR(RRRRRRRRRRR((Rt_select_forNs



"!cCsÌt}x¿|p·|djo
d}n.|tiƒ}|djotii‚ny-t	|||||ƒptii‚nWn9ti
j
o*}|idtijo
|‚q½nXt}q	WdS(Nf0.0i(tFalsetdonet
expirationRRRtdnst	exceptiontTimeoutt_polling_backendRRRRRtetargsterrnotEINTRtTrue(RRRRR#RR"R(((Rt	_wait_forjs


cCs
|adS(s#
    Internal API. Do not use.
    N(tfnR'(R.((Rt_set_polling_backend{sRcCst|ttt|ƒdS(N(R-tsR,R!R#(R0R#((Rt_wait_for_readable‹scCst|ttt|ƒdS(N(R-R0R!R,R#(R0R#((Rt_wait_for_writableŽscCsQtii||dƒ}tii||dƒ}||jo|d|djS(Nii(R$tinett	inet_ptontafta1tn1ta2tn2(R5R6R8R7R9((Rt_addresses_equal‘scCs|djo0ytii|ƒ}Wq=tii}q=Xn|tiijoQ||f}|dj	p
|djo'|djo
d}n||f}qnq|tiijo]||ddf}|dj	p
|djo-|djo
d}n||ddf}qn|||fS(Nis0.0.0.0s::(R5RR$R3taf_for_addresstwheretAF_INETtporttdestinationtsourcetsource_porttAF_INET6(R5R<R>R@RAR?((Rt_destination_and_source™s$




i5ic	Cs~|iƒ}
t|||||ƒ\}}}t
i
|t
idƒ}zãt
|ƒ}|idƒ|dj	o|i|ƒnt||ƒ|i|
|ƒxˆt||ƒ|idƒ\}
}	t||	|ƒp(tii|ƒo|	d|djoPn|ptd|	|fƒ‚qŸqŸWWd|iƒXtii |
d|i!d|i"d|ƒ}
|i%|
ƒp
t&‚n|
S(	s’Return the response obtained after sending a query via UDP.

    @param q: the query
    @type q: dns.message.Message
    @param where: where to send the message
    @type where: string containing an IPv4 or IPv6 address
    @param timeout: The number of seconds to wait before the query times out.
    If None, the default, wait forever.
    @type timeout: float
    @param port: The port to which to send the message.  The default is 53.
    @type port: int
    @param af: the address family to use.  The default is None, which
    causes the address family to use to be inferred from the form of of where.
    If the inference attempt fails, AF_INET is used.
    @type af: int
    @rtype: dns.message.Message object
    @param source: source address.  The default is the wildcard address.
    @type source: string
    @param source_port: The port from which to send the message.
    The default is 0.
    @type source_port: int
    @param ignore_unexpected: If True, ignore responses from unexpected
    sources.  The default is False.
    @type ignore_unexpected: bool
    @param one_rr_per_rrset: Put each RR into its own RRset
    @type one_rr_per_rrset: bool
    iiiÿÿs$got a response from %s instead of %sNtkeyringtrequest_mactone_rr_per_rrset('tqtto_wiretwireRCR5R<R>R@RAR?tsockett
SOCK_DGRAMR0R	RR#tsetblockingRtbindR2tsendtoR1trecvfromtfrom_addressR:R$R3tis_multicasttignore_unexpectedRtclosetmessaget	from_wireRDtmacRFtrtis_responseR(RGR<RR>R5R@RARRRFRPRIR?R0RWR#((Rtudp¯s6



;#
cCsld}x_|djoQt||ƒ|i|ƒ}|djo
t‚n|t|ƒ}||}q	W|S(sßRead the specified number of bytes from sock.  Keep trying until we
    either get the desired amount, or we hit EOF.
    A Timeout exception will be raised if the operation is not completed
    by the expiration time.
    tiN(	R0tcountR1tsockR#trecvtntEOFErrortlen(R\R[R#R^R0((Rt	_net_readës



cCsOd}t|ƒ}x6||jo(t||ƒ||i||ƒ7}qWdS(s‘Write the specified data to the socket.
    A Timeout exception will be raised if the operation is not completed
    by the expiration time.
    iN(tcurrentR`tdatatlR2R\R#tsend(R\RcR#RdRb((Rt
_net_writeûs

cCsŠy|i|ƒWnrtij
octiƒd \}}|dt	i
jo2|dt	ijo|dt	ijo
|‚q†nXdS(Nii(
R0tconnecttaddressRJRtsystexc_infottytvR*tEINPROGRESStEWOULDBLOCKtEALREADY(R0RhRkRl((Rt_connects<cCsN|iƒ}	t|||||ƒ\}}
}t
i
|t
idƒ}
z³t
|ƒ}|
idƒ|dj	o|
i|ƒnt|
|
ƒt|	ƒ}tid|ƒ|	}t|
||ƒt|
d|ƒ}tid|ƒ\}t|
||ƒ}	Wd|
iƒXtii |	d|i!d|i"d|ƒ}|i%|ƒp
t&‚n|S(sReturn the response obtained after sending a query via TCP.

    @param q: the query
    @type q: dns.message.Message object
    @param where: where to send the message
    @type where: string containing an IPv4 or IPv6 address
    @param timeout: The number of seconds to wait before the query times out.
    If None, the default, wait forever.
    @type timeout: float
    @param port: The port to which to send the message.  The default is 53.
    @type port: int
    @param af: the address family to use.  The default is None, which
    causes the address family to use to be inferred from the form of of where.
    If the inference attempt fails, AF_INET is used.
    @type af: int
    @rtype: dns.message.Message object
    @param source: source address.  The default is the wildcard address.
    @type source: string
    @param source_port: The port from which to send the message.
    The default is 0.
    @type source_port: int
    @param one_rr_per_rrset: Put each RR into its own RRset
    @type one_rr_per_rrset: bool
    is!HiNRDRERF('RGRHRIRCR5R<R>R@RAR?RJtSOCK_STREAMR0R	RR#RLRRMRpR`RdtstructtpackttcpmsgRfRatldatatunpackRSR$RTRURDRVRFRWRXR(RGR<RR>R5R@RARFRuRIR?RtRdR0RWR#((Rttcps0



c&csht|ttfƒotii|ƒ}nt|ttfƒotii|ƒ}nti	i
|||ƒ}!|tii
jo6tii|dddd|
ƒ}|!ii|ƒn|dj	o|!i||d|ƒn|!iƒ}t|	||||ƒ\}	}}|o?|tii
jot!dƒ‚nt"i"|	t"i#dƒ}"nt"i"|	t"i%dƒ}"|"i&dƒ|dj	o|"i'|ƒnt(|
ƒ}#t+|"|ƒt,|ƒ} |ot.|"|#ƒ|"i/|ƒn't0i1d| ƒ|}t3|"||#ƒt4}d}d}|o|}tii:}%n
d}|}%d}t=}$x
|pt(|ƒ}|djp
||#jo
|#}n|o&tA|"|#ƒ|"iBdƒ\}}n:tD|"d	|ƒ}t0iFd|ƒ\} tD|"| |ƒ}ti	iG|d
|!id|!iHdt=d
|d|dt=d|$d|tii
jƒ}|i<}t4}$d}t4}t4}|djo¼|iMp|iMdi|%jotiNiO‚n|iMd}|itiiPjotiNiOdƒ‚nd}|iQƒ}|tii
jo(|di|
jo
t=}q't=}q+nxñ|iM|D]â}|otiNiOdƒ‚n|itiiPjoŒ|i|%jo||o4|di|
jotiNiOdƒ‚nt4}n|tii
jo|}n||jo|o
t=}qq9|otiiR}t4}q9q9W|o+|!io!|iSotiNiOdƒ‚n|VqPW|"iTƒdS(s†Return a generator for the responses to a zone transfer.

    @param where: where to send the message
    @type where: string containing an IPv4 or IPv6 address
    @param zone: The name of the zone to transfer
    @type zone: dns.name.Name object or string
    @param rdtype: The type of zone transfer.  The default is
    dns.rdatatype.AXFR.
    @type rdtype: int or string
    @param rdclass: The class of the zone transfer.  The default is
    dns.rdataclass.IN.
    @type rdclass: int or string
    @param timeout: The number of seconds to wait for each response message.
    If None, the default, wait forever.
    @type timeout: float
    @param port: The port to which to send the message.  The default is 53.
    @type port: int
    @param keyring: The TSIG keyring to use
    @type keyring: dict
    @param keyname: The name of the TSIG key to use
    @type keyname: dns.name.Name object or string
    @param relativize: If True, all names in the zone will be relativized to
    the zone origin.  It is essential that the relativize setting matches
    the one specified to dns.zone.from_xfr().
    @type relativize: bool
    @param af: the address family to use.  The default is None, which
    causes the address family to use to be inferred from the form of of where.
    If the inference attempt fails, AF_INET is used.
    @type af: int
    @param lifetime: The total number of seconds to spend doing the transfer.
    If None, the default, then there is no limit on the time the transfer may
    take.
    @type lifetime: float
    @rtype: generator of dns.message.Message objects.
    @param source: source address.  The default is the wildcard address.
    @type source: string
    @param source_port: The port from which to send the message.
    The default is 0.
    @type source_port: int
    @param serial: The SOA serial number to use as the base for an IXFR diff
    sequence (only meaningful if rdtype == dns.rdatatype.IXFR).
    @type serial: int
    @param use_udp: Use UDP (only meaningful for IXFR)
    @type use_udp: bool
    @param keyalgorithm: The TSIG algorithm to use; defaults to
    dns.tsig.default_algorithm
    @type keyalgorithm: string
    itINtSOAs. . %u 0 0 0 0t	algorithmscannot do a UDP AXFRs!HiÿÿiRDREtxfrtoriginttsig_ctxtmultitfirstRFsfirst RRset is not an SOAisanswers after final SOAsIXFR base serial mismatchsmissing TSIGN(Ut
isinstancetzonetstrtunicodeR$tnamet	from_texttrdtypet	rdatatypeRTt
make_querytrdclassRGtIXFRtrrsettserialt	authoritytappendRDRtuse_tsigtkeynametkeyalgorithmRHRIRCR5R<R>R@RAR?tuse_udpt
ValueErrorRJRKR0RqRLRMR	tlifetimeR#RpR`RdR2ReRrRsRtRfR!R"t	soa_rrsett	soa_countt
relativizeR|temptytonameR}R,RRtmexpirationR1RORPRaRuRvRURVRWtanswer_indextdelete_modet
expecting_SOAtanswerR%t	FormErrorRytcopytAXFRthad_tsigRS(&R<RR†R‰RR>RDRR—R5R”R@RARŒR’R‘R|RuR"R‹RœRPRIR?R•RR›R}RWRšRtR–RdRGR0R#RR™((RR{Hsº3







	
"

&
	(/Rt
__future__t
generatorsR*RRJRrRiRt
dns.exceptionR$tdns.inettdns.nametdns.messagetdns.rdataclasst
dns.rdatatypeR%tDNSExceptionRRŸRR	RR R-R/thasattrR'R1R2R:RCRR!RYRaRfRpRwR‡R¡t
rdataclassRxR,ttsigtdefault_algorithmR{(RwRfR1RRrRaR*RCR2R¤R$R	RRYRR RiR{RpRJR/RRR-R:((Rt?sB
																	
				<			
8