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.2.8.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

pypdns-2.2.8-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for pypdns-2.2.8.tar.gz
Algorithm Hash digest
SHA256 49242ebf4dd65682bdc823fa80fbe8a257d9ea4fe2ff2d7dbc5e1b6eaf19548f
MD5 5b178de1b3fff4ec39efa373451cfa06
BLAKE2b-256 358ab97f9dfddf6897160baebf09f3d5120041c93df1526e12bca742f22ec95d

See more details on using hashes here.

Provenance

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

Hashes for pypdns-2.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 da7500750823fd31fe3d5441ff836795037195cb5e6cb90dfc9ca8b2bd8da21f
MD5 0cc8ddcb7b049d7ae636264a0953f116
BLAKE2b-256 a6ae36d897547c7c4f84fadd56b2506561a78fc6bf3025d6090ec684e7e1619d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypdns-2.2.8-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page