Skip to content

Instantly share code, notes, and snippets.

@ninoseki
Last active July 1, 2018 10:50
Show Gist options
  • Save ninoseki/5e7631fceec8821cb50013a181be6d3d to your computer and use it in GitHub Desktop.
Save ninoseki/5e7631fceec8821cb50013a181be6d3d to your computer and use it in GitHub Desktop.

digging

digging is a WEB API for DNS digging.

How to use

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 specified 8.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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment