GET /explore/padns/lookup/both/{qtype}/{qname}/{qanswer}Reverse lookup of Passive DNS data
Core Lookup parameters
Parameter | Type | Required | Description |
|---|---|---|---|
qtype | string | Yes | Specifies the DNS record type to query. Supported types:
|
qname | string | Yes | The primary name or IP address to look up.
|
qanswer | string | Yes | The expected answer or IP address to match against.
|
Matching and Filtering parameters
Parameter | Type | Required | Description |
|---|---|---|---|
match | string | No | Filters records where the query equals qname and the answer matches or does not match qanswer.
|
name | string | No | Additional names to match against qanswer.
|
netmask | int | No | Network mask for qtype=a or aaaa queries to find records in the same subnet.
|
net | string | No | For ptr4 or a records, filters IPv4 addresses in or out of the subnet defined by netmask.
|
network | string | No | Additional subnets to filter by (format: 1.1.1.1/24).
|
asnum | int | No | AS (Autonomous System) number to search for.
|
asn | string | No | For ptr4 or a records, filters IPv4 addresses in or out of the ASN defined by asnum.
|
asname | string | No | Search all AS numbers where the AS name begins with the given value. |
asname_starts_with | string | No | Search all AS numbers where the AS name starts with the given value. |
asname_contains | string | No | Search all AS numbers where the AS name contains the given value. |
Time-Based filtering parameters
These parameters filter based on first_seen, last_seen, or as_of timestamps. Each accepts one of the following formats:
Date: yyyy-mm-dd (e.g., 2021-07-09) – Fixed date.
Epoch: Integer (e.g., 1625834953) – Fixed Unix timestamp.
Seconds ago: Negative integer (e.g., -172800) – Relative time in seconds.
Time period ago: Negative value with unit (e.g., -36h, -5d, -3w, -6m) – Relative time. Units: h (hours), d(days), w (weeks), m (months).
Parameter | Type | Required | Description |
|---|---|---|---|
first_seen_after | string/int | No | Records where first_seen timestamp is on or after the specified time. |
first_seen_before | string/int | No | Records where first_seen timestamp is on or before the specified time. |
last_seen_after | string/int | No | Records where last_seen timestamp is on or after the specified time. |
last_seen_before | string/int | No | Records where last_seen timestamp is on or before the specified time. |
as_of | string/int | No | Only include records where the equivalent timestamp falls between first_seen and last_seen. |
Sorting and Output parameters
Parameter | Type | Required | Description |
|---|---|---|---|
sort | string | No | Orders results by column. Can be repeated for multi-level sorting. Sort columns:
Order directions:
|
output_format | string | No | Output format.
|
limit | int | No | Maximum number of results to return.
|
skip | int | No | Number of results to skip (for pagination). |
prefer | string | No | Response preference.
|
max_wait | int | No | Seconds to wait for results before returning job ID.
|
with_metadata | int | No | Include metadata (e.g., total results, job ID) in response.
|
Request headers
Header | Description |
|---|---|
X-API-KEY | API key for authentication. |
Note
Wildcards (*) are supported in qname and qanswer.
https://api.silentpush.com/api/v1/merge-api/explore/padns/lookup/both/ns/sil*push.*/*.ns.cloudflare.com
Example request
https://api.silentpush.com/api/v1/merge-api/explore/padns/lookup/both/ns/sil*push.*/*.ns.cloudflare.com \
?last_seen_after=2021-07-01 \
&limit=2Example response
{
"status_code": 200,
"error": null,
"response": {
"records": [
{
"answer": "vida.ns.cloudflare.com",
"count": 236,
"first_seen": "2020-12-24 19:04:43",
"last_seen": "2021-07-09 16:39:51",
"nshash": "850c47a684c9ea9c32ece18e7be4cddc",
"query": "silentpush.com",
"ttl": 172800,
"type": "NS"
},
{
"answer": "henry.ns.cloudflare.com",
"count": 236,
"first_seen": "2020-12-24 19:04:43",
"last_seen": "2021-07-09 16:39:51",
"nshash": "850c47a684c9ea9c32ece18e7be4cddc",
"query": "silentpush.com",
"ttl": 172800,
"type": "NS"
}
]
}
}Example Exclusion Search
Similar domains not on the given name servers.
https://api.silentpush.com/api/v1/merge-api/explore/padns/lookup/both/ns/sil*push.*/*.ns.cloudflare.com \
?last_seen_after=2021-07-01 \
&limit=2 \
&match=neq{
"status_code": 200,
"error": null,
"response": {
"records": [
{
"answer": "dns1.registrar-servers.com",
"count": 299,
"first_seen": "2020-12-25 22:55:52",
"last_seen": "2021-07-10 19:03:43",
"nshash": "12241179c5fb5626e98315c13551f23a",
"query": "silverpush.co",
"ttl": 3600,
"type": "NS"
},
{
"answer": "dns2.registrar-servers.com",
"count": 299,
"first_seen": "2020-12-25 22:55:52",
"last_seen": "2021-07-10 19:03:43",
"nshash": "12241179c5fb5626e98315c13551f23a",
"query": "silverpush.co",
"ttl": 3600,
"type": "NS"
}
]
}
}