Skip to main content

Python API for PDNS.

Project description

Documentation Status

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

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

pypdns-2.3.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

pypdns-2.3.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pypdns-2.3.2.tar.gz.

File metadata

  • Download URL: pypdns-2.3.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypdns-2.3.2.tar.gz
Algorithm Hash digest
SHA256 53a9e702635e91c14cdd0c24400912902c69889cfca7886d5b976c9337a48f7c
MD5 bbdbe54f9ac79c524d3203fff31eea3c
BLAKE2b-256 1285aa919e94b24c75189441821e0873d8d59a13d56f3597dfc02ec886513f22

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypdns-2.3.2.tar.gz:

Publisher: release.yml on CIRCL/PyPDNS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypdns-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: pypdns-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypdns-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d677c4ffe4504a3cb2e77a483e4433d638d4e5051241c37b41363b62ad592da
MD5 9e9089c27afc6075468649c323c9cd1f
BLAKE2b-256 bc5dfe63d839150d40e4abd3626d3f75b3f0ae85420d0689eb1a3b8d0cbb8330

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypdns-2.3.2-py3-none-any.whl:

Publisher: release.yml on CIRCL/PyPDNS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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