Skip to main content

A Python package for querying DNS information using dig

Project description

A Python package for querying DNS information using the dig command.

Installation

Install the package using pip:

pip install digquery

Usage

To use the digquery command, run it from the command line followed by the domain name:

digquery example.com
pydig example.com
mydig example.com

This will execute separate dig commands for each query type (A , TXT , MX, NS) and display the results in clear and crisp format.

Output of above command will be look like:

digquery google.com
====================================
dig query for domain: google.com, type: TXT
====================================
google.com.             3600    IN      TXT     "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
google.com.             3600    IN      TXT     "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
google.com.             3600    IN      TXT     "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"
google.com.             3600    IN      TXT     "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
google.com.             3600    IN      TXT     "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
google.com.             3600    IN      TXT     "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
google.com.             3600    IN      TXT     "webexdomainverification.8YX6G=6e6922db-e3e6-4a36-904e-a805c28087fa"
google.com.             3600    IN      TXT     "v=spf1 include:_spf.google.com ~all"
google.com.             3600    IN      TXT     "onetrust-domain-verification=de01ed21f2fa4d8781cbc3ffb89cf4ef"
google.com.             3600    IN      TXT     "atlassian-domain-verification=5YjTmWmjI92ewqkx2oXmBaD60Td9zWon9r6eakvHX6B77zzkFQto8PQ9QsKnbf4I"
google.com.             3600    IN      TXT     "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
google.com.             3600    IN      TXT     "apple-domain-verification=30afIBcvSuDV2PLX"

====================================
dig query for domain: google.com, type: A
====================================
google.com.             142     IN      A       142.250.193.238

====================================
dig query for domain: google.com, type: MX
====================================
google.com.             300     IN      MX      10 smtp.google.com.

====================================
dig query for domain: google.com, type: NS
====================================
google.com.             13296   IN      NS      ns4.google.com.
google.com.             13296   IN      NS      ns1.google.com.
google.com.             13296   IN      NS      ns3.google.com.
google.com.             13296   IN      NS      ns2.google.com.

Contributing

Contributions are welcome! Here are some ways you can contribute:

  • Report bugs or suggest improvements by creating a new issue on the digquery GitHub repository. https://github.com/techdjay/digquery

  • Fork the repository, make changes, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Authors

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

digquery-0.1.7.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

digquery-0.1.7-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file digquery-0.1.7.tar.gz.

File metadata

  • Download URL: digquery-0.1.7.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.14

File hashes

Hashes for digquery-0.1.7.tar.gz
Algorithm Hash digest
SHA256 fb03674322599ccd31ce5fbcbdff266045c84d7e57823d4483d72e09bd6a4cdb
MD5 1c544e05c8a67cff91c99f7b00a6bb21
BLAKE2b-256 a2ae60083d4f2eb8acc3f7b6002443c43daa88e9e2caccfa325d408aabf59854

See more details on using hashes here.

File details

Details for the file digquery-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: digquery-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.14

File hashes

Hashes for digquery-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 54b19a89e5afd93e13e19f7e95c0fa40b1e551c4f1dd2f0c75b0be01d43076e0
MD5 35b551b0553f528c953198bf975c8e04
BLAKE2b-256 8d22a2c422827d0466de6ab2e7c665341b09f849b9107eacb50babc1be3d2a91

See more details on using hashes here.

Supported by

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