Skip to content

DNS Chain


This endpoint returns the recursive chain of DNS forward (A/AAAA/CNAME) and reverse (PTR) records starting form either a hostname or an IP address.

GET /data/dns-chain/data.json?resource=www.ripe.net
Try it

Parameters

KeyValueInfoRequired
resourceHostname or IP address (Ipv4 or IPv6)Defines the resource that the query is performed for.YES

Data Output

KeyInfo
forward_nodesA key-value list in which the key is a hostname and the value is the list of IP addresses/hostnames to which it has A/AAAA/CNAME records pointing to.
reverse_nodesA key-value list in which the key is an IP address and the value is the list of hostnames to which it has PTR records pointing to.
nameserversThe list of IP addresses of the DNS resolvers used to do perform the DNS queries.
authoritative_nameserversThe list of the authoritative nameservers for the returned DNS records.
query_timeDefines the time of the query.
resourceDefines the resource used in the query.

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/XXXX/data.json?resource=3333"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/XXXX/data.json?resource=3333", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.0 (current)