digquery
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.
Metadata
Release files for digquery 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| digquery-0.1.7.tar.gz | 3.0 kB | Without provenance | Details for digquery-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| digquery-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for digquery-0.1.7-py3-none-any.whl |
Total release size: 6.3 kB
Release files / digquery-0.1.7.tar.gz
| Download URL | digquery-0.1.7.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb03674322599ccd31ce5fbcbdff266045c84d7e57823d4483d72e09bd6a4cdb
|
|
BLAKE2b-256 checksum How to use checksums |
a2ae60083d4f2eb8acc3f7b6002443c43daa88e9e2caccfa325d408aabf59854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.14
|
Release files / digquery-0.1.7-py3-none-any.whl
| Download URL | digquery-0.1.7-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54b19a89e5afd93e13e19f7e95c0fa40b1e551c4f1dd2f0c75b0be01d43076e0
|
|
BLAKE2b-256 checksum How to use checksums |
8d22a2c422827d0466de6ab2e7c665341b09f849b9107eacb50babc1be3d2a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.14
|
Security for digquery 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.