Skip to main content

A pure python dns query tool

Project description

diglet

a pure python3 dns query tool

usage

import diglet

resp = diglet.Mkreq('google.com', qtype=diglet.QType.A)
# use resp to make that $$$
# more info: https://www.ietf.org/rfc/rfc1035.txt

print(resp)
#{'header': {'id': 26519,
#             'qr': 'response',
#             'opcode': <OpCode.QUERY: 0>,
#             'aa': False,
#             'tc': False,
#             'rd': True,
#             'ra': True,
#             'z': 0,
#             'rcode': <ReturnCode.NO_ERROR: 0>,
#             'qdcount': 1,
#             'ancount': 1,
#             'nscount': 0,
#             'arcount': 0
#            },
# 'questions': [{'qname': 'google.com.',
#                'qtype': <QType.A: 1>,
#                'qclass': <Class.IN: 1>
#               }
#              ],
# 'answers': [{'aname': 'google.com.',
#              'atype': <Type.A: 1>,
#              'aclass': <Class.IN: 1>,
#              'attl': 236,
#              'ardlen': 4,
#              'ardata':
#              '142.250.72.206'
#             }
#            ],
# 'authority': {}
#}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diglet-0.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diglet-0.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file diglet-0.0.0.tar.gz.

File metadata

  • Download URL: diglet-0.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for diglet-0.0.0.tar.gz
Algorithm Hash digest
SHA256 043a1561ca6bbfe50d2f603aa816497cec5da2d06087dc83b2276f61500fc67b
MD5 ef6bfbde0cead5572335ccffe5cccf61
BLAKE2b-256 4efeab23f1be0456f36fcd6c9391e085bdcd04bf33164a70d18f9456032f743f

See more details on using hashes here.

File details

Details for the file diglet-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: diglet-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for diglet-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c15a6693325f78a4e58732c22ca24769d13bbde4df7f6a7ac7dd877496281508
MD5 273c927b72007938dfa20e82b589fc63
BLAKE2b-256 92c7067f968eac771b52fc02d65df097f6d588c8c0e9985894eeac8f90f62e2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page