Live Demo

Developer links

DNS Lookup API

DNS Lookup API

API to programmatically perform DNS lookups.

DNS Lookup API is a REST API that has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.It programmatically performs lookups for A, NS, MX, AAAA, TXT and SOA records of any domain (GET requests).

Example Request


  curl --request GET 'https://api.apilayer.com/dns_lookup/api/a/google.com' \
  --header 'apikey: YOUR API KEY'
  

Example Response


{
  "domain": "google.com",
  "processResponseTime": "10ms",
  "requestType": "A",
  "results": [
    {
      "ipAddress": "108.177.122.139"
    },
    {
      "ipAddress": "108.177.122.101"
    },
    {
      "ipAddress": "108.177.122.102"
    },
    {
      "ipAddress": "108.177.122.113"
    },
    {
      "ipAddress": "108.177.122.138"
    },
    {
      "ipAddress": "108.177.122.100"
    }
  ],
  "warnings": []
}

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

Free Plan

No credit cards required
20 Requests / Daily, 600 Requests / Monthly

Gold Plan

Monthly subscription
1,000 Requests / Daily, 30,000 Requests / Monthly

Diamond Plan

Monthly subscription
3,000 Requests / Daily, 90,000 Requests / Monthly

Custom Plan

Monthly subscription
Fully customizable
Fast, efficient
No dealing with rate limits

Ready to try it out?

We offer a free plan. No credit cards required!


or see documentation

See Also

View All

Are you an API developer?

Market your API on APILayer and start making money now!