An unofficial Farsight Security DNSDB client
Project description
A full-featured unofficial Python client and CLI for Farsight Security’s DNSDB passive DNS service.
Usage: dnsdb [OPTIONS] COMMAND [ARGS]... An unofficial Farsight Security DNSDB client Options: --version Show the version and exit. --verbose Enable verbose logging. --help Show this message and exit. Commands: forward Forward DNS lookup. inverse Inverse DNS lookup. quotas Show the API quotas for your API key and exit.
Usage: dnsdb forward [OPTIONS] OWNER_NAME Forward DNS lookup. Options: -t, --rrtype TEXT Filter results by DNS resource record type. [default: ANY] -b, --bailiwick TEXT Filter results by DNS bailiwick. --first-seen-before TEXT Only show results first seen before this date. --first-seen-after TEXT Only show results first seen after this date. --first-seen-before TEXT Only show results first seen before this date. --first-seen-after TEXT Only show results first seen after this date. --last-seen-before TEXT Only show results last seen before this date. --last-seen-after TEXT Only show results last seen after this date. -l, --limit INTEGER Limit the number of results to this number. -s, --sort [count|time_first|time_last|rrname|rrtype|bailiwick|rdata|source] Sort JSON results by this field. -r, --reverse Reverse the sorting. -f, --format [text|json|csv] Set the screen output format. [default: text] -o, --output FILE One or more output file paths that end in .csv, .json, or .txt (suppresses screen output). --help Show this message and exit.
Usage: dnsdb inverse [OPTIONS] [name|ip|raw] VALUE Inverse DNS lookup. Options: -t, --rrtype TEXT Filter results by DNS resource record type. [default: ANY] --first-seen-before TEXT Only show results first seen before this date. --first-seen-after TEXT Only show results first seen after this date. --first-seen-before TEXT Only show results first seen before this date. --first-seen-after TEXT Only show results first seen after this date. --last-seen-before TEXT Only show results last seen before this date. --last-seen-after TEXT Only show results last seen after this date. -l, --limit INTEGER Limit the number of results to this number. -s, --sort [count|first_seen|last_seen|rrname|rrtype|bailiwick|rdata|source] Sort JSON results by this field. -r, --reverse Reverse the sorting. -f, --format [text|json|csv] Set the screen output format. [default: text] -o, --output FILE One or more output file paths that end in .csv, .json, or .txt (suppresses screen output). --help Show this message and exit.
Features
Easy to use Python class covers all DNSDB API endpoints and options
Supports hosted and self-hosted instances of DNSDB
Full CLI
Python 2 and 3 support
Parses multiple human date formats for time filtering
Automatically converts UNIX epoch timestamps to ISO 8601 timestamps
Normalize timestamp fields for sensor and zone file observations
Sort by any field
Multiple output formats
Text (DNS master file format)
CSV
JSON
Installation
To install the latest stable version, run
sudo -H pip3 install -U dnsdb-python
To install the latest development version, run
sudo -H pip3 install -U git+https://github.com/domainaware/dnsdb-python.git
Store your API key as an environment variable named DNSDB_KEY.
If you are using a self-hosted instance of DNSDB, store the URL root as an environment variable named DNSDB_ROOT.
See also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dnsdb-python-1.1.1.tar.gz
.
File metadata
- Download URL: dnsdb-python-1.1.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14d28898114bf7900e53d05e48797c542df130258ab974985a865ee9a2d3ee6 |
|
MD5 | 57633f527cca838c6180105a83988506 |
|
BLAKE2b-256 | 049c30bab07b76f30d00dd5c097b8d6cee6ef0afb4475341b9ad7bf2d988804e |
File details
Details for the file dnsdb_python-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: dnsdb_python-1.1.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90daa86727ee8c513fddcd30f85cedd98213949e6a09fdfa7791febd2b20c2db |
|
MD5 | 36a7d7373f55b6e1165ed7e847545276 |
|
BLAKE2b-256 | a1b4ab22dabbe0e3867b0cebc32e6c3c84392d4e43598c11c45ce6de069d3bb4 |