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.1.tar.gz (7.2 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.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypdns-2.3.1.tar.gz
  • Upload date:
  • Size: 7.2 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.1.tar.gz
Algorithm Hash digest
SHA256 04b512e7d9d307e4d7962757ceff0c5bf09f0a1ab3354e34208340ad4a355f90
MD5 142a1c640e6f3dac08a02967ad53ce8a
BLAKE2b-256 fa2bf98e6c767c26f26a3a92b2a40101b89e5de1f425cccec298d74930928ad5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypdns-2.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: pypdns-2.3.1-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.13.7

File hashes

Hashes for pypdns-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc5126b897cc090b9e98c82ed164e2781d487546632169a012274e785d08fc6
MD5 0aef935c237db3816fe81abb024c39e0
BLAKE2b-256 3035eed9292be4fbac42a18b6be4113e2c7fe1be080a75ef12b28d6bdd059046

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypdns-2.3.1-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