Python client library for Reverse DNS API.
Project description
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
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
reverse-dns-1.0.0.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for reverse_dns-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e35b5be3e75a65bc796eb53cc0975beb747ebb9c3f564f153f9e4de4b8b23353 |
|
MD5 | 69aab3dbea95c77ce1623f70a6c06a57 |
|
BLAKE2b-256 | 4b0629adb4f559ff49b0b6bfff861e193dcaeaed2b10f091ed93053c2221eccd |