Client API for PDNS
Client API to query any Passive DNS implementation following the Passive DNS - Common Output Format.
Installation
pip install pypdns
Usage
Command line
You can use the pdns command to trigger a request.
usage: pdns [-h] --username USERNAME --password PASSWORD --query QUERY [--rrtype RRTYPE]
Triggers a request againse CIRCL Passive DNS.
options:
-h, --help show this help message and exit
--username USERNAME The username of you account.
--password PASSWORD The password of you account.
--query QUERY The query, can be an IP. domain, hostname, TLD.
--rrtype RRTYPE Filter the request based on the RR Type.
Library
See API Reference
Example
import pypdns
import json
x = pypdns.PyPDNS(basic_auth=('username','yourpassword'))
for record in x.iter_query(q='circl.lu', filter_rrtype='A'):
print(json.dumps(record.record, indent=2))
Passive DNS Services
- (default) CIRCL Passive DNS
Release files for pypdns 2.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypdns-2.3.2.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypdns-2.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / pypdns-2.3.2.tar.gz
| Download URL | pypdns-2.3.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53a9e702635e91c14cdd0c24400912902c69889cfca7886d5b976c9337a48f7c
|
|
BLAKE2b-256 checksum How to use checksums |
1285aa919e94b24c75189441821e0873d8d59a13d56f3597dfc02ec886513f22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.
Transparency logRelease files / pypdns-2.3.2-py3-none-any.whl
| Download URL | pypdns-2.3.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d677c4ffe4504a3cb2e77a483e4433d638d4e5051241c37b41363b62ad592da
|
|
BLAKE2b-256 checksum How to use checksums |
bc5dfe63d839150d40e4abd3626d3f75b3f0ae85420d0689eb1a3b8d0cbb8330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.
Transparency log