Skip to content

Google Public DNS

DNS records, MX records and email DNS settings

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 run

Example results

Records
Records
NameValuePriorityPage LinkRecord TypeTime to Live (seconds)
google.com
smtp.google.com.
10
MX
30
Email Setup
Spf Record
v=spf1 include:_spf.google.com ~all
Dmarc Policy
reject
Has Mail Servers
Yes
Example data · Run in Studio for fresh results.

Choose an action

About Google Public DNS

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 by Fous from dns.google and checked automatically; it last passed a check on Sep 29, 2026. Fous is not affiliated with Google Public DNS.

Actions

Get dns records

1 credit per run

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

Run this workflow from your own code. In Studio, turn on Developer mode and create an API key.

cURL
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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

Is Fous affiliated with Google Public DNS?

No. Fous is not affiliated with Google Public DNS. This workflow reads the public dns.google website and returns its data.

How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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 workflowsBrowse all workflows