Skip to content
/ PyPDNS Public

Client API to query any Passive DNS implementation following the Passive DNS - Common Output Format.

License

Notifications You must be signed in to change notification settings

CIRCL/PyPDNS

Folders and files

NameName
Last commit message
Last commit date
Feb 6, 2024
Nov 3, 2023
Jan 15, 2024
Jan 15, 2024
Jan 30, 2020
Feb 6, 2024
Nov 3, 2023
Dec 9, 2014
Nov 3, 2023
Jan 15, 2024
Feb 6, 2024
Feb 6, 2024

Repository files navigation

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

About

Client API to query any Passive DNS implementation following the Passive DNS - Common Output Format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages