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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypdns-2.2.7.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pypdns-2.2.7.tar.gz
Algorithm Hash digest
SHA256 124485c61ea6ed7d9680ebabc77b6ee1ad0b57d515d1249acc61f9ab618b3bdb
MD5 2d44aaf72aab4788288f2c3efc9a7641
BLAKE2b-256 f5581aecda3919a73f72df0a95e11857679296b9abdf713a9df397a44c768620

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pypdns-2.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7cdabba5587ca144487a3531a18ce499c456f48ba26a4bf1be747e90dffd7b
MD5 abfb0f68e6af83fe1a831c2796e78521
BLAKE2b-256 72bcae152d0642d53ea70a6f43cd75844ca76bc6797882945a53b1cc5a81b618

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page