]aPc@sdZddlZddlZdZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ d Z!d!Z"d"Z#d#Z$d$Z%d%Z&d&Z'd'Z(d(Z)d)Z*d*Z+d+Z,d,Z-d-Z.d.Z/d/Z0d0Z1d1Z2d2Z3d3Z4d4Z5d5Z6d6Z7d7Z8d8Z9d9Z:d:Z;d;Z<d<Z=d=Z>d>Z?d?Z@i=ed@6edA6edB6edC6edD6e dE6e dF6e dG6e dH6e dI6edJ6edK6edL6edM6edN6edO6edP6edQ6edR6edS6edT6edU6edV6edW6edX6edY6edZ6ed[6e d\6e!d]6e"d^6e#d_6e$d`6e%da6e&db6e'dc6e(dd6e)de6e*df6e+dg6e,dh6e-di6e.dj6e/dk6e0dl6e1dm6e2dn6e3do6e4dp6e5dq6e6dr6e7ds6e8dt6e9du6e:dv6e;dw6e<dx6e=dy6e>dz6e?d{6e@d|6ZAeBgeAjCD]\ZDZEeEeDf^qMZFieGe)6ZHieGe 6eGe"6eGe(6eGe/6ZIejJd}ejKZLd~ejMjNfdYZOdZPdZQdZRdZSdS(sDNS Rdata Types. @var _by_text: The rdata type textual name to value mapping @type _by_text: dict @var _by_value: The rdata type value to textual name mapping @type _by_value: dict @var _metatypes: If an rdatatype is a metatype, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary. @type _metatypes: dict @var _singletons: If an rdatatype is a singleton, there will be a mapping whose key is the rdatatype value and whose value is True in this dictionary. @type _singletons: dictiNiiiiiiiiii i i i i iiiiiiiiiiiiiiiiii!i#i$i%i&i'i)i*i+i,i-i.i/i0i1i2i3i4i7icigiiiiiiiiitNONEtAtNStMDtMFtCNAMEtSOAtMBtMGtMRtNULLtWKStPTRtHINFOtMINFOtMXtTXTtRPtAFSDBtX25tISDNtRTtNSAPsNSAP-PTRtSIGtKEYtPXtGPOStAAAAtLOCtNXTtSRVtNAPTRtKXtCERTtA6tDNAMEtOPTtAPLtDStSSHFPtIPSECKEYtRRSIGtNSECtDNSKEYtDHCIDtNSEC3t NSEC3PARAMtTLSAtHIPtSPFtUNSPECtTKEYtTSIGtIXFRtAXFRtMAILBtMAILAtANYtTAtDLVs TYPE([0-9]+)$tUnknownRdatatypecBseZdZRS(sRaised if a type is unknown.(t__name__t __module__t__doc__(((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyR<scCstj|j}|dkrtj|}|dkrEtnt|jd}|dksr|dkrt dqn|S(sConvert text into a DNS rdata type value. @param text: the text @type text: string @raises dns.rdatatype.UnknownRdatatype: the type is unknown @raises ValueError: the rdata type value is not >= 0 and <= 65535 @rtype: intiiis&type must be between >= 0 and <= 65535N( t_by_texttgettuppertNonet_unknown_type_patterntmatchR<tinttgroupt ValueError(ttexttvalueRE((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyt from_texts   cCsT|dks|dkr'tdntj|}|dkrPd| }n|S(sConvert a DNS rdata type to text. @param value: the rdata type value @type value: int @raises ValueError: the rdata type value is not >= 0 and <= 65535 @rtype: stringiis&type must be between >= 0 and <= 65535tTYPEN(RHt _by_valueRARC(RJRI((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pytto_texts  cCs/|tkr|tks'tj|r+tStS(sbTrue if the type is a metatype. @param rdtype: the type @type rdtype: int @rtype: bool(R3R9t _metatypesthas_keytTruetFalse(trdtype((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyt is_metatypes'cCstj|rtStS(scTrue if the type is a singleton. @param rdtype: the type @type rdtype: int @rtype: bool(t _singletonsRPRQRR(RS((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyt is_singletons(TR?tret dns.exceptiontdnsRRRRRRRRRR R R R R RRRRRRRRRtNSAP_PTRRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R@tdictt iteritemstxtyRMRQRORUtcompiletIRDt exceptiont DNSExceptionR<RKRNRTRV(((s3/usr/lib64/python2.7/site-packages/dns/rdatatype.pyts   1