Skip to content

Google Public DNS over HTTPS API

DNS records for a hostname as JSON.
Status
Working
API key
Not needed
Browser calls
Runs in the browser
Latency
222 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://dns.google/resolve?name=example.com&type=A

Sent from your browser straight to dns.google. No proxy: this site never sees the request or the answer.

Copy the request

Shell
curl -s 'https://dns.google/resolve?name=example.com&type=A'

Response stored by the verifier

This is what dns.google answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "Status": 0,
  "TC": false,
  "RD": true,
  "RA": true,
  "AD": true,
  "CD": false,
  "Question": [
    {
      "name": "example.com.",
      "type": 1
    }
  ],
  "Answer": [
    {
      "name": "example.com.",
      "type": 1,
      "TTL": 300,
      "data": "104.20.23.154"
    },
    {
      "name": "example.com.",
      "type": 1,
      "TTL": 300,
      "data": "172.66.147.243"
    }
  ],
  "Comment": "Response from 108.162.195.228."
}

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "Answer".

Last check: — passed, HTTP 200 in 222 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Questions

Does the Google Public DNS over HTTPS API need an API key?

No. The sample request on this page was answered without a key, token or account.

Can I call the Google Public DNS over HTTPS API from the browser?

Yes. dns.google answered our verifier with an Access-Control-Allow-Origin header on Oct 3, 2026, so a fetch call from a web page can read the response.

Is the Google Public DNS over HTTPS API working?

At the check on Oct 3, 2026 it returned HTTP 200 with the expected data in 222 ms. The status at the top of this page shows the most recent result we have.