digging is a WEB API for DNS digging.
In order to send a data you must perform an HTTP POST request to the following URL:
https://dns-digging.herokuapp.com/
The API call expects the following parameter:
name
: the name of the resource record that is to be looked up.type
: the type of query: A, AAAA, CNAME, NX, NS, SOA, TXT.server
(optional): the name or IP address of the name server to query. If not specified8.8.8.8
will be used.
Example code:
curl -X POST dns-digging.herokuapp.com -d "type=A&&name=google.com"
Example response:
{
"address": "172.217.26.14",
"ttl": "178"
}