Skip to main content

Python client library for Reverse DNS API.

Project description

reverse-dns-py license reverse-dns-py release reverse-dns-py build

Overview

The client library for Reverse DNS API in Python language.

The minimum Python version is 3.6.

Installation

pip install reverse-dns

Examples

Full API documentation available here

Create a new client

from reversedns import *

client = Client('Your API key')

Make basic requests

terms = [{
    'field': 'domain',
    'term': 'foo*'
}]

# Get DNS records for matching domains (up to 1000)
result = client.get(terms=terms, record_type=Client.TXT)

# Total count
print(result.size)

Extras

terms = [
    {
        'field': 'domain',
        'term': 'blog*'
    },
    {
        'field': 'value',
        'term': 'foo*',
        'exclude': True
    }
]

# Exclude specified records for matching domains and get raw XML response
raw_result = client.get_raw(
    terms=terms,
    record_type=Client.CNAME,
    limit=2,
    output_format=Client.XML_FORMAT)

Response model overview

Response:
    - result: [Record]
        - value: str
        - name: str
        - first_seen: str
        - last_vist: str
    - size: int

Changelog

1.0.0 (2021-12-09)

  • First release

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

reverse-dns-1.0.0.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

reverse_dns-1.0.0-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

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