Python API for PDNS.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypdns-2.2.8.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file pypdns-2.2.8.tar.gz
.
File metadata
- Download URL: pypdns-2.2.8.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
49242ebf4dd65682bdc823fa80fbe8a257d9ea4fe2ff2d7dbc5e1b6eaf19548f
|
|
MD5 |
5b178de1b3fff4ec39efa373451cfa06
|
|
BLAKE2b-256 |
358ab97f9dfddf6897160baebf09f3d5120041c93df1526e12bca742f22ec95d
|
Provenance
The following attestation bundles were made for pypdns-2.2.8.tar.gz
:
Publisher:
release.yml
on CIRCL/PyPDNS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pypdns-2.2.8.tar.gz
-
Subject digest:
49242ebf4dd65682bdc823fa80fbe8a257d9ea4fe2ff2d7dbc5e1b6eaf19548f
- Sigstore transparency entry: 166828262
- Sigstore integration time:
-
Permalink:
CIRCL/PyPDNS@7b074a0d59be914ec81d926a101a5082edc1b302
-
Branch / Tag:
refs/tags/v2.2.8
- Owner: https://github.com/CIRCL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@7b074a0d59be914ec81d926a101a5082edc1b302
-
Trigger Event:
release
-
Statement type:
File details
Details for the file pypdns-2.2.8-py3-none-any.whl
.
File metadata
- Download URL: pypdns-2.2.8-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
da7500750823fd31fe3d5441ff836795037195cb5e6cb90dfc9ca8b2bd8da21f
|
|
MD5 |
0cc8ddcb7b049d7ae636264a0953f116
|
|
BLAKE2b-256 |
a6ae36d897547c7c4f84fadd56b2506561a78fc6bf3025d6090ec684e7e1619d
|
Provenance
The following attestation bundles were made for pypdns-2.2.8-py3-none-any.whl
:
Publisher:
release.yml
on CIRCL/PyPDNS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pypdns-2.2.8-py3-none-any.whl
-
Subject digest:
da7500750823fd31fe3d5441ff836795037195cb5e6cb90dfc9ca8b2bd8da21f
- Sigstore transparency entry: 166828263
- Sigstore integration time:
-
Permalink:
CIRCL/PyPDNS@7b074a0d59be914ec81d926a101a5082edc1b302
-
Branch / Tag:
refs/tags/v2.2.8
- Owner: https://github.com/CIRCL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@7b074a0d59be914ec81d926a101a5082edc1b302
-
Trigger Event:
release
-
Statement type: