Skip to content

Google Public DNS

DNS records, MX records and email DNS settings

Back to tools

Public DNS lookups and DNS-over-HTTPS from Google.

Get dns records

Get dns records

Get DNS records for a domain and summarize its SPF, DMARC policy, and mail servers. Returns the requested record type or all supported types; a missing record type yields an empty records list.

Your information

Domain name or pasted website link, for example example.com or https://example.com/about.

Which DNS records to return, for example MX. Defaults to all.

1 credit per completed run

The same inputs also work from your code or an AI assistant. See For developers.

Example results

Email setup

DMARC policyreject
Mail servers configuredYes
SPF record
v=spf1 include:_spf.google.com ~all

DNS records

Choose an action

About the Google Public DNS tool

Google Public DNS, also called Google DNS, returns DNS records for a domain, including record names, values, types, priorities, and cache times.

Get dns records accepts a domain or website link and an optional record type; it also summarizes SPF, DMARC policy, and mail server setup.

Built from dns.google. Last checked Sep 29, 2026.

Actions

Get dns records

1 credit

Get DNS records for a domain and summarize its SPF, DMARC policy, and mail servers. Returns the requested record type or all supported types; a missing record type yields an empty records list.

What you provide

FieldTypeRequiredDescription
DomaindomainTextRequiredDomain name or pasted website link, for example example.com or https://example.com/about.Example: google.com
Record Typerecord_typeTextOptionalWhich DNS records to return, for example MX. Defaults to all.Example: MX

What you get

FieldTypeDescription
RecordsrecordsListDNS records matching the chosen record type.
Namerecords[].nameTextName owning the record.Example: google.com
Valuerecords[].valueTextDNS record value.Example: smtp.google.com.
Priorityrecords[].priorityNumberMX priority; null for other record types.Example: 10
Page Linkrecords[].page_linkTextPublic DNS lookup for this record name and type.Example: https://dns.google/resolve?name=google.com&type=MX
Record Typerecords[].record_typeTextDNS record type.Example: MX
Time to Live (seconds)records[].time_to_live_secondsNumberTime this answer may be cached, in seconds.Example: 30
Email Setupemail_setupDetails
Spf Recordemail_setup.spf_recordTextSPF record text, or null if missing.Example: v=spf1 include:_spf.google.com ~all
Dmarc Policyemail_setup.dmarc_policyTextDMARC policy in words or missing.Example: Reject
Has Mail Serversemail_setup.has_mail_serversYes or noWhether usable MX mail servers are configured.Example: Yes

Example result

For Domain: google.com, Record Type: MX

JSON
{
  "records": [
    {
      "name": "google.com",
      "value": "smtp.google.com.",
      "priority": 10,
      "page_link": "https://dns.google/resolve?name=google.com&type=MX",
      "record_type": "MX",
      "time_to_live_seconds": 30
    }
  ],
  "email_setup": {
    "spf_record": "v=spf1 include:_spf.google.com ~all",
    "dmarc_policy": "reject",
    "has_mail_servers": true
  }
}

For developers

Call it from your code with one request. Change the values in input to run it on new data. To get an API key, open Developers at the bottom of Studio, turn on Developer mode and go to API keys.

cURL
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@google-public-dns",
  "visibility": "public",
  "operation": "get_dns_records",
  "version": 1,
  "input": {
    "domain": "google.com",
    "record_type": "MX"
  },
  "response": {
    "format": "json"
  }
}'

What you can do with it

  • Check which mail servers a domain uses
  • Review a domain’s SPF and DMARC settings
  • Inspect DNS record values and cache times
  • Find records of a specific type for a domain

Questions about Google Public DNS

Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

Can I call this Google Public DNS tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

Do I need a Google Public DNS account?

No. You only need a Fous account.

How current is the data?

Fous gets the data from dns.google when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

Which mail servers are configured for a domain?

Use Get dns records to retrieve MX records and check whether usable mail servers are configured.

What SPF and DMARC settings does a domain have?

Get dns records summarizes the SPF record text and DMARC policy, noting when either is missing.

What DNS records does a domain have?

Use Get dns records with a domain; choose a record type or leave it unspecified to request all supported types.

All Developer tools toolsBrowse all tools