From 0160ca24e787736916d6c552b5cff7f1c83fec44 Mon Sep 17 00:00:00 2001 From: x p k Date: Wed, 29 Mar 2023 13:58:52 +0800 Subject: [PATCH] NEW: lambda python package sample --- lambda/dns-query/README.md | 5 + .../dnspython-2.3.0.dist-info/INSTALLER | 1 + .../dnspython-2.3.0.dist-info/LICENSE | 35 +++ .../dnspython-2.3.0.dist-info/METADATA | 126 ++++++++ .../dnspython-2.3.0.dist-info/RECORD | 273 ++++++++++++++++++ .../dnspython-2.3.0.dist-info/REQUESTED | 0 .../dns-query/dnspython-2.3.0.dist-info/WHEEL | 4 + lambda/dns-query/lambda_function.py | 20 ++ 8 files changed, 464 insertions(+) create mode 100644 lambda/dns-query/README.md create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/INSTALLER create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/LICENSE create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/METADATA create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/RECORD create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/REQUESTED create mode 100644 lambda/dns-query/dnspython-2.3.0.dist-info/WHEEL create mode 100644 lambda/dns-query/lambda_function.py diff --git a/lambda/dns-query/README.md b/lambda/dns-query/README.md new file mode 100644 index 0000000..c4cb8ea --- /dev/null +++ b/lambda/dns-query/README.md @@ -0,0 +1,5 @@ +# Steps to create a lambda python package + +pip install dnspython -t ./ +touch lambda_function.py +zip -r dist.zip . diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/INSTALLER b/lambda/dns-query/dnspython-2.3.0.dist-info/INSTALLER new file mode 100644 index 0000000..a1b589e --- /dev/null +++ b/lambda/dns-query/dnspython-2.3.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/LICENSE b/lambda/dns-query/dnspython-2.3.0.dist-info/LICENSE new file mode 100644 index 0000000..390a726 --- /dev/null +++ b/lambda/dns-query/dnspython-2.3.0.dist-info/LICENSE @@ -0,0 +1,35 @@ +ISC License + +Copyright (C) Dnspython Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all +copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +Copyright (C) 2001-2017 Nominum, Inc. +Copyright (C) Google Inc. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose with or without fee is hereby granted, +provided that the above copyright notice and this permission notice +appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/METADATA b/lambda/dns-query/dnspython-2.3.0.dist-info/METADATA new file mode 100644 index 0000000..0b89f5b --- /dev/null +++ b/lambda/dns-query/dnspython-2.3.0.dist-info/METADATA @@ -0,0 +1,126 @@ +Metadata-Version: 2.1 +Name: dnspython +Version: 2.3.0 +Summary: DNS toolkit +Home-page: https://www.dnspython.org +License: ISC +Author: Bob Halley +Author-email: halley@dnspython.org +Requires-Python: >=3.7,<4.0 +Classifier: License :: OSI Approved +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Provides-Extra: curio +Provides-Extra: dnssec +Provides-Extra: doh +Provides-Extra: doq +Provides-Extra: idna +Provides-Extra: trio +Provides-Extra: wmi +Requires-Dist: aioquic (>=0.9.20) ; extra == "doq" +Requires-Dist: cryptography (>=2.6,<40.0) ; extra == "dnssec" +Requires-Dist: curio (>=1.2,<2.0) ; extra == "curio" +Requires-Dist: h2 (>=4.1.0) ; (python_full_version >= "3.6.2") and (extra == "doh") +Requires-Dist: httpx (>=0.21.1) ; (python_full_version >= "3.6.2") and (extra == "doh") +Requires-Dist: idna (>=2.1,<4.0) ; extra == "idna" +Requires-Dist: requests (>=2.23.0,<3.0.0) ; extra == "doh" +Requires-Dist: requests-toolbelt (>=0.9.1,<0.11.0) ; extra == "doh" +Requires-Dist: sniffio (>=1.1,<2.0) ; extra == "curio" +Requires-Dist: trio (>=0.14,<0.23) ; extra == "trio" +Requires-Dist: wmi (>=1.5.1,<2.0.0) ; extra == "wmi" +Project-URL: Bug Tracker, https://github.com/rthalley/dnspython/issues +Project-URL: Documentation, https://dnspython.readthedocs.io/en/stable/ +Project-URL: Repository, https://github.com/rthalley/dnspython.git +Description-Content-Type: text/markdown + +# dnspython + +[![Build Status](https://github.com/rthalley/dnspython/actions/workflows/python-package.yml/badge.svg)](https://github.com/rthalley/dnspython/actions/) +[![Documentation Status](https://readthedocs.org/projects/dnspython/badge/?version=latest)](https://dnspython.readthedocs.io/en/latest/?badge=latest) +[![PyPI version](https://badge.fury.io/py/dnspython.svg)](https://badge.fury.io/py/dnspython) +[![License: ISC](https://img.shields.io/badge/License-ISC-brightgreen.svg)](https://opensource.org/licenses/ISC) +[![Coverage](https://codecov.io/github/rthalley/dnspython/coverage.svg?branch=master)](https://codecov.io/github/rthalley/dnspython) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) + +## INTRODUCTION + +dnspython is a DNS toolkit for Python. It supports almost all record types. It +can be used for queries, zone transfers, and dynamic updates. It supports TSIG +authenticated messages and EDNS0. + +dnspython provides both high and low level access to DNS. The high level classes +perform queries for data of a given name, type, and class, and return an answer +set. The low level classes allow direct manipulation of DNS zones, messages, +names, and records. + +To see a few of the ways dnspython can be used, look in the `examples/` +directory. + +dnspython is a utility to work with DNS, `/etc/hosts` is thus not used. For +simple forward DNS lookups, it's better to use `socket.getaddrinfo()` or +`socket.gethostbyname()`. + +dnspython originated at Nominum where it was developed +to facilitate the testing of DNS software. + +## ABOUT THIS RELEASE + +This is dnspython 2.3.0. +Please read +[What's New](https://dnspython.readthedocs.io/en/stable/whatsnew.html) for +information about the changes in this release. + +## INSTALLATION + +* Many distributions have dnspython packaged for you, so you should + check there first. +* If you have pip installed, you can do `pip install dnspython` +* If not just download the source file and unzip it, then run + `sudo python setup.py install` +* To install the latest from the master branch, run `pip install git+https://github.com/rthalley/dnspython.git` + +Dnspython's default installation does not depend on any modules other than +those in the Python standard library. To use some features, additional modules +must be installed. For convenience, pip options are defined for the +requirements. + +If you want to use DNS-over-HTTPS, run +`pip install dnspython[doh]`. + +If you want to use DNSSEC functionality, run +`pip install dnspython[dnssec]`. + +If you want to use internationalized domain names (IDNA) +functionality, you must run +`pip install dnspython[idna]` + +If you want to use the Trio asynchronous I/O package, run +`pip install dnspython[trio]`. + +If you want to use the Curio asynchronous I/O package, run +`pip install dnspython[curio]`. + +If you want to use WMI on Windows to determine the active DNS settings +instead of the default registry scanning method, run +`pip install dnspython[wmi]`. + +If you want to try the experimental DNS-over-QUIC code, run +`pip install dnspython[doq]`. + +Note that you can install any combination of the above, e.g.: +`pip install dnspython[doh,dnssec,idna]` + +### Notices + +Python 2.x support ended with the release of 1.16.0. Dnspython 2.0.0 through +2.2.x support Python 3.6 and later. As of dnspython 2.3.0, the minimum +supported Python version will be 3.7. We plan to align future support with the +lifetime of the Python 3 versions. + +Documentation has moved to +[dnspython.readthedocs.io](https://dnspython.readthedocs.io). + diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/RECORD b/lambda/dns-query/dnspython-2.3.0.dist-info/RECORD new file mode 100644 index 0000000..8b72e03 --- /dev/null +++ b/lambda/dns-query/dnspython-2.3.0.dist-info/RECORD @@ -0,0 +1,273 @@ +dns/__init__.py,sha256=5Zy6sqPFV7fliXABg6ltaiVJaoxjjdtu8GcvBucbbqA,1645 +dns/__pycache__/__init__.cpython-310.pyc,, +dns/__pycache__/_asyncbackend.cpython-310.pyc,, +dns/__pycache__/_asyncio_backend.cpython-310.pyc,, +dns/__pycache__/_curio_backend.cpython-310.pyc,, +dns/__pycache__/_immutable_ctx.cpython-310.pyc,, +dns/__pycache__/_trio_backend.cpython-310.pyc,, +dns/__pycache__/asyncbackend.cpython-310.pyc,, +dns/__pycache__/asyncquery.cpython-310.pyc,, +dns/__pycache__/asyncresolver.cpython-310.pyc,, +dns/__pycache__/dnssec.cpython-310.pyc,, +dns/__pycache__/dnssectypes.cpython-310.pyc,, +dns/__pycache__/e164.cpython-310.pyc,, +dns/__pycache__/edns.cpython-310.pyc,, +dns/__pycache__/entropy.cpython-310.pyc,, +dns/__pycache__/enum.cpython-310.pyc,, +dns/__pycache__/exception.cpython-310.pyc,, +dns/__pycache__/flags.cpython-310.pyc,, +dns/__pycache__/grange.cpython-310.pyc,, +dns/__pycache__/immutable.cpython-310.pyc,, +dns/__pycache__/inet.cpython-310.pyc,, +dns/__pycache__/ipv4.cpython-310.pyc,, +dns/__pycache__/ipv6.cpython-310.pyc,, +dns/__pycache__/message.cpython-310.pyc,, +dns/__pycache__/name.cpython-310.pyc,, +dns/__pycache__/namedict.cpython-310.pyc,, +dns/__pycache__/node.cpython-310.pyc,, +dns/__pycache__/opcode.cpython-310.pyc,, +dns/__pycache__/query.cpython-310.pyc,, +dns/__pycache__/rcode.cpython-310.pyc,, +dns/__pycache__/rdata.cpython-310.pyc,, +dns/__pycache__/rdataclass.cpython-310.pyc,, +dns/__pycache__/rdataset.cpython-310.pyc,, +dns/__pycache__/rdatatype.cpython-310.pyc,, +dns/__pycache__/renderer.cpython-310.pyc,, +dns/__pycache__/resolver.cpython-310.pyc,, +dns/__pycache__/reversename.cpython-310.pyc,, +dns/__pycache__/rrset.cpython-310.pyc,, +dns/__pycache__/serial.cpython-310.pyc,, +dns/__pycache__/set.cpython-310.pyc,, +dns/__pycache__/tokenizer.cpython-310.pyc,, +dns/__pycache__/transaction.cpython-310.pyc,, +dns/__pycache__/tsig.cpython-310.pyc,, +dns/__pycache__/tsigkeyring.cpython-310.pyc,, +dns/__pycache__/ttl.cpython-310.pyc,, +dns/__pycache__/update.cpython-310.pyc,, +dns/__pycache__/version.cpython-310.pyc,, +dns/__pycache__/versioned.cpython-310.pyc,, +dns/__pycache__/win32util.cpython-310.pyc,, +dns/__pycache__/wire.cpython-310.pyc,, +dns/__pycache__/xfr.cpython-310.pyc,, +dns/__pycache__/zone.cpython-310.pyc,, +dns/__pycache__/zonefile.cpython-310.pyc,, +dns/__pycache__/zonetypes.cpython-310.pyc,, +dns/_asyncbackend.py,sha256=MElqnQ-n2jJh_S3WMfhV5iCBupaDPI-bI0fyXu1wxu0,2002 +dns/_asyncio_backend.py,sha256=LXFopzcEdp5Dvo8femJys5-fu_fhtWPa5IqyzwO2sxI,5152 +dns/_curio_backend.py,sha256=oS69XPE0hdDwUJ8BE50boHNkokZwzquKyRo8BlKsy_A,3561 +dns/_immutable_ctx.py,sha256=cNpW_k8KIHcph3pTtSFy2amAo--nhjQJLG4PlyvQ6Es,2460 +dns/_trio_backend.py,sha256=eHIFsQNxc8M4O5osIpuBkT2pW_0eFHNBRXUnGmS0d2k,3923 +dns/asyncbackend.py,sha256=HJ-zCCMAy_xVtKevdY_0as2YWGAfj9Hj6J5i6RD5RS8,2948 +dns/asyncquery.py,sha256=g_C35IGS3gNFvppAu5REgr_nqkbgD7TIVTrwDNFswBg,25273 +dns/asyncresolver.py,sha256=h2p80ht5tEWw84bhJmGGo8a4_lgJNIo9JRDeWK-ItFI,10490 +dns/dnssec.py,sha256=iAeM5OjgvW7QpH2vQRRCyv1rn4XvZCY4YqiZtaJrh14,43181 +dns/dnssectypes.py,sha256=CyeuGTS_rM3zXr8wD9qMT9jkzvVfTY2JWckUcogG83E,1799 +dns/e164.py,sha256=EsK8cnOtOx7kQ0DmSwibcwkzp6efMWjbRiTyHZO8Q-M,3978 +dns/edns.py,sha256=78aJXpqEuLSxM9yhIwQMamDMgEJk5tiH4AW4nr_jlGc,14021 +dns/entropy.py,sha256=5PsAUA_fK_EENaZwf54uu0_jl7nFj2ocIb6lp8Hc_BI,4244 +dns/enum.py,sha256=4obucqiRmLeH-ufppWiNe1mNaqmXPpVIJpgZibHoTbE,3243 +dns/exception.py,sha256=Bgb22xO-_nFy8EPXKjhFT0KIIiBE1-xLh0GvY1CvohE,5583 +dns/flags.py,sha256=Mg8OX6697WpCTi17V5KkkNCofGudX5dZOfpB86GvZfU,2751 +dns/grange.py,sha256=HA623Mv2mZDmOK_BZNDDakT0L6EHsMQU9lFFkE8dKr0,2148 +dns/immutable.py,sha256=Mo2z0EQnrrMHuoWJyvUCIk-i1Hl7AqJmz5BJMx8BSXE,1837 +dns/inet.py,sha256=VscG7j7OWB51X6pJN6pBQeJ4SD-Ff9ubqOodmv11Gps,5021 +dns/ipv4.py,sha256=5Y8BJeByXZTfiFATNFY4KkE-h-ypivr2xX-hU1Lm2Ro,2065 +dns/ipv6.py,sha256=tuCteE1vUIZWrZub2f0APudg7vhOLmJkkMCVhhMgBA0,6193 +dns/message.py,sha256=e6tn5T2JZKHpjw76wn5YQOGh8fPMLsXvidW63c2f2fI,61832 +dns/name.py,sha256=3CqHh162YDf1lx9p0k_8Ht2E5JRTcrLOtnfCnI-0zcM,34427 +dns/namedict.py,sha256=hJRYpKeQv6Bd2LaUOPV0L_a0eXEIuqgggPXaH4c3Tow,4000 +dns/node.py,sha256=zXIU6IAaglABTOfnPQaqySEXUvA658YQUER2TE61pLk,12666 +dns/opcode.py,sha256=I6JyuFUL0msja_BYm6bzXHfbbfqUod_69Ss4xcv8xWQ,2730 +dns/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +dns/query.py,sha256=R3fNabLsWyfBWP96cmdU7BpEsfPxYgQMDuYh1AahZCc,49177 +dns/quic/__init__.py,sha256=8I9WP_z-mOGpC4-P5lGt0LKUbT3YkdeYqI4nrlP6Jx4,2162 +dns/quic/__pycache__/__init__.cpython-310.pyc,, +dns/quic/__pycache__/_asyncio.cpython-310.pyc,, +dns/quic/__pycache__/_common.cpython-310.pyc,, +dns/quic/__pycache__/_sync.cpython-310.pyc,, +dns/quic/__pycache__/_trio.cpython-310.pyc,, +dns/quic/_asyncio.py,sha256=PfTAdPgpueojObypgHtLzK2UaOShBg5RylabIaME2pE,7249 +dns/quic/_common.py,sha256=PD0ocrpqwNmACGZ9PJHsQgtQvqySg1eaKu-V5cKVVJk,5402 +dns/quic/_sync.py,sha256=jVR5xt4cdXcHf-7962X0rPRFbLqYd5Rc9ScloRPwM2M,7179 +dns/quic/_trio.py,sha256=wD0E-sb_8vwwf-nkYA3aC-e_co1m9Qpw25oSNnyn4xo,5932 +dns/rcode.py,sha256=N6JjrIQjCdJy0boKIp8Hcky5tm__LSDscpDz3rE_sgU,4156 +dns/rdata.py,sha256=WOADxsIumC2cA3vivaQcQzEbyW_qIKXthJj8rZarMjs,29766 +dns/rdataclass.py,sha256=TK4W4ywB1L_X7EZqk2Gmwnu7vdQpolQF5DtQWyNk5xo,2984 +dns/rdataset.py,sha256=nBzffUHIAWHTi1jG9zTc12lR1NED2-6FRBztMx7Ki1o,17066 +dns/rdatatype.py,sha256=gIdYZ0iHRlgiTEO-ftobUANmaAmjTnNc4JljMaP1OnQ,7339 +dns/rdtypes/ANY/AFSDB.py,sha256=SUdLEDU_H23BnN_kYsL5hDHn6lAvfkNg3oGXt6FnFVc,1662 +dns/rdtypes/ANY/AMTRELAY.py,sha256=YO4zGhp8SBFibhNYu12Z3xZImvGicWfTcwS3ISiPgYc,3382 +dns/rdtypes/ANY/AVC.py,sha256=LHF3DeIbJVQPHsHx1W5_0d2QB5u8wx3CCvbDcTzMAig,1025 +dns/rdtypes/ANY/CAA.py,sha256=fqSrgAtNrWeJMbQTLiJuCKyUGuUMeyrI0dHxRcG0NYk,2512 +dns/rdtypes/ANY/CDNSKEY.py,sha256=iCuVRT1NcPFvgLscWytLtfb5HmA1mJuBHEwfYqcAOhc,1226 +dns/rdtypes/ANY/CDS.py,sha256=yLltG-Tv7BxZZgRTvVD4Cz-LneqRLIGSDaqe80VrEbs,1164 +dns/rdtypes/ANY/CERT.py,sha256=aIXNbQf_74Ih5fRp1zjHeg2_-YZ99k6UgiNOajp-pQE,3534 +dns/rdtypes/ANY/CNAME.py,sha256=OvSnWyZ6gomsicHCgxES9G3upRKbGLxLK5Vt2IhUXcc,1207 +dns/rdtypes/ANY/CSYNC.py,sha256=Fp-jO7G-kIAgA1cJEUrxhdeqUCw8zIslS4I0XdeZxBg,2440 +dns/rdtypes/ANY/DLV.py,sha256=9AQWoYOS9i-GdlsIn6Y-3x9MWKLeDddAyDXZWT8Hsik,987 +dns/rdtypes/ANY/DNAME.py,sha256=Oil8B_mgVQ6_YvxDIVNO3AssA_RtsyeZmZJTUBXD_0g,1151 +dns/rdtypes/ANY/DNSKEY.py,sha256=vOOKesQwrj9CVd4DOJ8YBD8xzNXLJP2AVG9KNyk4veA,1224 +dns/rdtypes/ANY/DS.py,sha256=KWhwhK-mKuJvjb4jujnfeiRwHVjznsZ8MfBJ-fmz0WI,996 +dns/rdtypes/ANY/EUI48.py,sha256=BvcEhncVjcRktBxZw0dWx_wYP5JGVBnpAzMypixTW7w,1152 +dns/rdtypes/ANY/EUI64.py,sha256=qfqRmkc-wXmPpN4p559kpH4sc0JG5uBpQjsx0ZNaU30,1162 +dns/rdtypes/ANY/GPOS.py,sha256=KO16H4VcRe7P2o67jD4eMV1MuVK8W_-xtJeZSUKer3E,4434 +dns/rdtypes/ANY/HINFO.py,sha256=uzMjQoc286m7jFcZ7Bc388NIyG_6lrUM4GrskN6wUMM,2250 +dns/rdtypes/ANY/HIP.py,sha256=4xXviQjTzlkKOi3LPbarZ3RuhjfktnUFj_udTQNdNY0,3229 +dns/rdtypes/ANY/ISDN.py,sha256=mOI9rSD8BqkdwvNKWwS580Rp-yq13Z_Q3MVoI0aXn_k,2714 +dns/rdtypes/ANY/L32.py,sha256=dF4DNMVOubJysF1YuoIDqpGhzEC7MDIK8r5MJS5WVLw,1287 +dns/rdtypes/ANY/L64.py,sha256=BQC32j-ED1jgNJkZuQ6cP1qpmPQrJU_WwYN4wXAujoE,1593 +dns/rdtypes/ANY/LOC.py,sha256=WgZnFQfYtm2ZpbwfPY45F9dLyydnWtz9PpqPPHVNwBM,12028 +dns/rdtypes/ANY/LP.py,sha256=Gc9WDLUJDLCVBiBv9OHHsASELdd7IFJ0LXUN8Ud6a8A,1339 +dns/rdtypes/ANY/MX.py,sha256=OWfJEANZXF1gKYgXXRAkpz_BYlxxQ8cy0QgKPc7K0bA,996 +dns/rdtypes/ANY/NID.py,sha256=ezcvntoK3FQ_LbtzVDkUWP1bIqmqOq2COcQ1EEQf_Uc,1545 +dns/rdtypes/ANY/NINFO.py,sha256=Fn7D8tXFbUIBRSEKlsd92T9M_O1xOGqKvsgX6aeRAco,1042 +dns/rdtypes/ANY/NS.py,sha256=OdaHATafwdGDk5AABbW8E3DIUtr5zuItWNRB7AUg-Go,996 +dns/rdtypes/ANY/NSEC.py,sha256=YsUupmBYhhwP2f_dueKHL-aTexKF_jIc9x1Ds3WfgwQ,2476 +dns/rdtypes/ANY/NSEC3.py,sha256=HckDp5OAOvmzwfSbCqxk7oll_i4tj32N1bhZQMezcyU,3957 +dns/rdtypes/ANY/NSEC3PARAM.py,sha256=wcI3mmhdo_0s7jJit1fg6li0mL0pVPJPUAoLOwhaClk,2636 +dns/rdtypes/ANY/OPENPGPKEY.py,sha256=rhcB9knQVTcSoS3yOamXzNUzxNuSbYQP0WkEUNF3k_g,1852 +dns/rdtypes/ANY/OPT.py,sha256=cySeMHbL4X9IDF7zGICIuO5iybhZowANdhUXQXzwUw8,2563 +dns/rdtypes/ANY/PTR.py,sha256=GrTYECslYH8wafdIyNhdOqwOMHm-h8cO954DRw3VMNg,998 +dns/rdtypes/ANY/RP.py,sha256=fjMSl6hAfCyaJ8AihCVH5lsiatRLWtQpIRsPXXvGbtE,2185 +dns/rdtypes/ANY/RRSIG.py,sha256=OWWXA1-LkJ5GKl7xPNrqMKZ0fXgxQWJ6YrmgFSLRfG0,4924 +dns/rdtypes/ANY/RT.py,sha256=9CHkE9dKz2n_RZpuG4zOOWOi4fW3tahxllRXF8043WI,1014 +dns/rdtypes/ANY/SMIMEA.py,sha256=6yjHuVDfIEodBU9wxbCGCDZ5cWYwyY6FCk-aq2VNU0s,222 +dns/rdtypes/ANY/SOA.py,sha256=XI_3R3gaiB3l_SC9VB8YAFby7kNwTIAzogudJrcdSJo,3146 +dns/rdtypes/ANY/SPF.py,sha256=wHsKdQWUL0UcohQlbjkNkIfZUADtC-FZyIJNw8NFrIY,1023 +dns/rdtypes/ANY/SSHFP.py,sha256=aUBsyKOUi8SpErKUv1y6BjpSb1M6k5Kn9MscaaeZv-I,2531 +dns/rdtypes/ANY/TKEY.py,sha256=TznxiiL2E0rPXcvrl3zm2pDsMIGtyG-CAa6cNLhDWp8,4932 +dns/rdtypes/ANY/TLSA.py,sha256=EYP7AXBh4zMtBgnfz828qfoLkFLCm5g8vR-6oX_DTbE,219 +dns/rdtypes/ANY/TSIG.py,sha256=zrA3aWrgmL1Wf-svd1gHx4Us1QNA0qI1YcsVAybulSk,4751 +dns/rdtypes/ANY/TXT.py,sha256=7IAIjgZ0hX_MIh_b0ApzKvxLXHTS0rteR-KXt4HLaV0,1001 +dns/rdtypes/ANY/URI.py,sha256=LHnHMfF30-A_p6ID2nz4e228iJWidsw3HDBNOpcsWZk,2922 +dns/rdtypes/ANY/X25.py,sha256=KLZT5BRBMor8GRlhqNSnjd5zVym0yihMt0MOuP97h2I,1945 +dns/rdtypes/ANY/ZONEMD.py,sha256=3NqYelouTOxWqn2aNm8Qx8i7BTze_9KpH2zHN8UhXCM,2394 +dns/rdtypes/ANY/__init__.py,sha256=Pox71HfsEnGGB1PGU44pwrrmjxPLQlA-IbX6nQRoA2M,1497 +dns/rdtypes/ANY/__pycache__/AFSDB.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/AMTRELAY.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/AVC.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CAA.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CDNSKEY.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CDS.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CERT.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CNAME.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/CSYNC.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/DLV.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/DNAME.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/DNSKEY.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/DS.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/EUI48.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/EUI64.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/GPOS.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/HINFO.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/HIP.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/ISDN.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/L32.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/L64.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/LOC.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/LP.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/MX.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NID.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NINFO.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NS.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NSEC.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NSEC3.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/NSEC3PARAM.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/OPENPGPKEY.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/OPT.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/PTR.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/RP.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/RRSIG.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/RT.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/SMIMEA.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/SOA.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/SPF.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/SSHFP.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/TKEY.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/TLSA.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/TSIG.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/TXT.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/URI.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/X25.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/ZONEMD.cpython-310.pyc,, +dns/rdtypes/ANY/__pycache__/__init__.cpython-310.pyc,, +dns/rdtypes/CH/A.py,sha256=NmcDK5HqYNyWGpUMfywbh1kZWsO-1hQqLOC_2ahMOiY,2217 +dns/rdtypes/CH/__init__.py,sha256=GD9YeDKb9VBDo-J5rrChX1MWEGyQXuR9Htnbhg_iYLc,923 +dns/rdtypes/CH/__pycache__/A.cpython-310.pyc,, +dns/rdtypes/CH/__pycache__/__init__.cpython-310.pyc,, +dns/rdtypes/IN/A.py,sha256=pq9G7ZZrCCEBWOFWvLmivtu8b_9ZAFIJU0oQUMHHudE,1815 +dns/rdtypes/IN/AAAA.py,sha256=GvQ1So05gExl1pw0HxO4ypfrT-EfnVCwBVVqgSvq5zk,1821 +dns/rdtypes/IN/APL.py,sha256=RH8mxqv3cq7SrcuPT4leT9T86SbfieOJrlqYibTlQDU,5100 +dns/rdtypes/IN/DHCID.py,sha256=x-JxOiEbaOUREw2QXBLKvGTrljn7mrs8fO2jjlmc4AI,1857 +dns/rdtypes/IN/HTTPS.py,sha256=7ISjRVJv5Q36s-niKl3ic2ZQwP5ko-9_Vun0kW-tF4Y,220 +dns/rdtypes/IN/IPSECKEY.py,sha256=pUBVwO0T4tR7cAMe1AyQq0Qgnar35ncvqDbDGsDiXbo,3291 +dns/rdtypes/IN/KX.py,sha256=govh0YTer2-mpfhxUwc-fQb1WnqMkEkq5jIRo20nh1E,1014 +dns/rdtypes/IN/NAPTR.py,sha256=MxuMrWCAR3p7vHPFddtWa2uQxvXTPKjkawbT_JxyZ0A,3751 +dns/rdtypes/IN/NSAP.py,sha256=bHxNkjZYbq5MrkWQC8ILoTrqpoNzRfCrWtOFgSjoO60,2166 +dns/rdtypes/IN/NSAP_PTR.py,sha256=hTnieARrAxO-yuFeMppj4wlRX6gv6RC089hLaurs-UQ,1016 +dns/rdtypes/IN/PX.py,sha256=818J4ETvfVmy1NhseLGthZaJb9pd3oZg0OQbvYx4Z0I,2757 +dns/rdtypes/IN/SRV.py,sha256=hgh10Ahyh-P6MDuFMCIcnBXmvB5tJXiNCfpCWaFBOss,2770 +dns/rdtypes/IN/SVCB.py,sha256=GZbDKmNB48zKCuX6uvuSJRAIkvDq-Sbn27DLqzPUcG4,218 +dns/rdtypes/IN/WKS.py,sha256=bKVL2hz_6UZ79M1gWJHyoufxxmD95-X0NAc7pciznrY,3653 +dns/rdtypes/IN/__init__.py,sha256=HbI8aw9HWroI6SgEvl8Sx6FdkDswCCXMbSRuJy5o8LQ,1083 +dns/rdtypes/IN/__pycache__/A.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/AAAA.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/APL.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/DHCID.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/HTTPS.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/IPSECKEY.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/KX.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/NAPTR.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/NSAP.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/NSAP_PTR.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/PX.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/SRV.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/SVCB.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/WKS.cpython-310.pyc,, +dns/rdtypes/IN/__pycache__/__init__.cpython-310.pyc,, +dns/rdtypes/__init__.py,sha256=NYizfGglJfhqt_GMtSSXf7YQXIEHHCiJ_Y_qaLVeiOI,1073 +dns/rdtypes/__pycache__/__init__.cpython-310.pyc,, +dns/rdtypes/__pycache__/dnskeybase.cpython-310.pyc,, +dns/rdtypes/__pycache__/dsbase.cpython-310.pyc,, +dns/rdtypes/__pycache__/euibase.cpython-310.pyc,, +dns/rdtypes/__pycache__/mxbase.cpython-310.pyc,, +dns/rdtypes/__pycache__/nsbase.cpython-310.pyc,, +dns/rdtypes/__pycache__/svcbbase.cpython-310.pyc,, +dns/rdtypes/__pycache__/tlsabase.cpython-310.pyc,, +dns/rdtypes/__pycache__/txtbase.cpython-310.pyc,, +dns/rdtypes/__pycache__/util.cpython-310.pyc,, +dns/rdtypes/dnskeybase.py,sha256=ZOVr_LgqZUSDUetFE-L9jCpHr_f6ZBeEN_2e1s1tZBc,2851 +dns/rdtypes/dsbase.py,sha256=E2nrdJJ9Sr2rsVcv6S3kavHNKPYKkAfl-8rqScVIPA4,3397 +dns/rdtypes/euibase.py,sha256=kz8ObjJ61Mujrip4iLzSy8DA3l3zlirWP34qb6cpHQs,2631 +dns/rdtypes/mxbase.py,sha256=mmyT0VD4o5yvF40E3NundIHJb6ABMNunZeyzLfnKkqw,3199 +dns/rdtypes/nsbase.py,sha256=ye1JV1n3tTyzcFpm3smSCBf3vYmRW6c6VrELW7wqgNU,2325 +dns/rdtypes/svcbbase.py,sha256=mV-08yZvNe-5Rk-OLLoCCc6rXB455g0xWQECdcg04ok,16936 +dns/rdtypes/tlsabase.py,sha256=Y6SfucVqncdjL4t3s0O6_FiyNk0DeQ_6tK4l0m2tQfA,2597 +dns/rdtypes/txtbase.py,sha256=anTxtjeu9idvAE_yooUSyYDnOxUW7r0Ado85XNJ8c-M,3631 +dns/rdtypes/util.py,sha256=1n-l8WFg0cxi_wyRU60w7GnbFmm0FbG4HPOBj90qYjs,8745 +dns/renderer.py,sha256=TaHsEDSVLMo-S3jbcdUCn34Vjc-wdR7Uw4U4c_pL4kc,10674 +dns/resolver.py,sha256=vgkQ_CXpgydo2Gy8Q51dMoj0VEVini8voso4EMgi2XE,63405 +dns/reversename.py,sha256=8q22s2g2dRYQLRd4GqU5sIPqXXpubbZrYBOg9hRDfMM,3828 +dns/rrset.py,sha256=wirHviaC4-2pcv2qhBrkekSGZ9D0MNx7T8ZnCNGya4A,9184 +dns/serial.py,sha256=-t5rPW-TcJwzBMfIJo7Tl-uDtaYtpqOfCVYx9dMaDCY,3606 +dns/set.py,sha256=R8LN8_aUrvOfav5Za7VcSrdi0D10jJsSrNewdrc8Lwg,9089 +dns/tokenizer.py,sha256=AcP4uOWcriLAmx_LptloiL9Mcb39FeHjXWLx0XfogJk,23584 +dns/transaction.py,sha256=-aeZdpivp_5ZRH_oEPiag1dr9x-LRTLumzzaO8zfdfM,21629 +dns/tsig.py,sha256=JZqBzmCCCxqTcFBQnFszTv2u3XFWwZrZSJhgX73E_HE,11457 +dns/tsigkeyring.py,sha256=4G3NOtLDBUuyhGLeCY6AHwn4F19YBjn6Dx0KLfwJa4A,2638 +dns/ttl.py,sha256=fWFkw8qfk6saTp7lAPxZOuD3U3TRxVRvIpljQnG-01I,2979 +dns/update.py,sha256=UHoYWFNdjbrv9Dk8VPrxkFp7keh6alm957c0pNDb898,12252 +dns/version.py,sha256=02ZCJolpTK-0bopKQEuWh4kjViB6at1iWYsOR3OTWDM,1926 +dns/versioned.py,sha256=RmQgmsJr65KPKjNrFdRHlbmZZeznncACgzrPMjxTbho,11776 +dns/win32util.py,sha256=NqPgxAShH37yqj5Yj7n743jtq-8dQ_dwBFvbFWadvgY,9057 +dns/wire.py,sha256=TprNbU0iab4FhWWlqJKtrpgbKyTHcmjfF-_9er6wunQ,2831 +dns/xfr.py,sha256=SUjumTpVSlDg2lz39J5xp3kj3oPueAGCzeA_ftzNLBs,13273 +dns/zone.py,sha256=cgUXC1QmYYwjFSp00q9n4fPOJP58Ewz2zGKeDP9VyzE,51058 +dns/zonefile.py,sha256=g5arZ1aza8yKHAaK8tqpF17iv58GnmcPk_39tOC0qX4,27484 +dns/zonetypes.py,sha256=HrQNZxZ_gWLWI9dskix71msi9wkYK5pgrBBbPb1T74Y,690 +dnspython-2.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +dnspython-2.3.0.dist-info/LICENSE,sha256=w-o_9WVLMpwZ07xfdIGvYjw93tSmFFWFSZ-EOtPXQc0,1526 +dnspython-2.3.0.dist-info/METADATA,sha256=JWGx9abERf5Vf2m770UYN78sO7GqkaJQyK3ybo_00Ks,5180 +dnspython-2.3.0.dist-info/RECORD,, +dnspython-2.3.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +dnspython-2.3.0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88 diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/REQUESTED b/lambda/dns-query/dnspython-2.3.0.dist-info/REQUESTED new file mode 100644 index 0000000..e69de29 diff --git a/lambda/dns-query/dnspython-2.3.0.dist-info/WHEEL b/lambda/dns-query/dnspython-2.3.0.dist-info/WHEEL new file mode 100644 index 0000000..4ba7671 --- /dev/null +++ b/lambda/dns-query/dnspython-2.3.0.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: poetry-core 1.4.0 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/lambda/dns-query/lambda_function.py b/lambda/dns-query/lambda_function.py new file mode 100644 index 0000000..1191025 --- /dev/null +++ b/lambda/dns-query/lambda_function.py @@ -0,0 +1,20 @@ +import dns.resolver +import dns.query + +def lambda_handler(event, context): + + res = dns.resolver.Resolver() + res.timeout = 5 + res.lifetime = 30 + res.nameservers = ['10.135.6.95','10.135.6.96'] + results = res.query('_ldap._tcp.hkg.yourdomain.com', 'SRV', tcp=True) + print('_ldap._tcp.hkg.yourdomain.com:') + for line in results: + print(line.to_text()) + + results = res.query('_kerberos._tcp.hkg.yourdomain.com', 'SRV', tcp=True) + print('_kerberos._tcp.hkg.yourdomain.com:') + for line in results: + print(line.to_text()) + + return {}