DNS Records & Email Security API

DNS records for a list of domains (A, AAAA, MX, TXT, NS, CNAME, CAA, SOA) with TTL, the SPF and DMARC policies parsed into columns, the mail provider behind each MX host, site-verification tags and whether DNSSEC validated.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 10 fieldsv1.0

Data from dns.google/resolve

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Domains
Domain names to look up, such as stripe.com. A link is reduced to its domain name. Up to 500 per run. One per line, or separated by commas.
Example: stripe.com
Record typesoptional
Record types to look up: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA. Defaults to A, MX, TXT and NS. One per line, or separated by commas.
Example: MX, TXT, NS
Parse email authoptional
Read SPF and DMARC policies out of TXT records into their own fields (on by default).

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/dns-records/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/dns-records/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"domains":["stripe.com"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

domainslistrequired
Domain names to look up, such as stripe.com. A link is reduced to its domain name. Up to 500 per run.
example: stripe.com
record_typeslist
Record types to look up: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA. Defaults to A, MX, TXT and NS.
example: MX, TXT, NS
parse_email_authyes/no
Read SPF and DMARC policies out of TXT records into their own fields (on by default).
default: trueexample: true

What's in each record

10 fields.

Basics

  • Domain

    The domain you asked for.

    Example github.com

  • Record type

    Record type: A, AAAA, MX, TXT, NS, CNAME, CAA or SOA.

    Example MX

  • Name

    The name the record sits on (the domain, or _dmarc.domain for DMARC).

    Example github.com

  • Value

    The record's content. MX records start with their priority; long TXT strings are joined.

    Example 0 github-com.mail.protection.outlook.com

  • Ttl

    Seconds the answer may still be cached.

    Example 164

  • Spf

    How an SPF policy ends: -all, ~all, ?all, +all or redirect=host. Empty on other records.

    Example ~all

  • Dmarc policy

    The DMARC policy (none, quarantine or reject) on a DMARC record.

    Example quarantine

  • Mx provider

    Mail provider recognised from an MX host, such as Google Workspace or Microsoft 365.

    Example Microsoft 365

  • Verification tokens

    Kinds of site-verification record found in a TXT value, such as google-site-verification.

    Example facebook-domain-verification

  • Dnssec validated

    Yes when the answer was validated with DNSSEC.

    Example No

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
domaintextDomain3 of 3
record_typetextRecord type3 of 3
nametextName3 of 3
valuetextValue3 of 3
ttlnumberTtl3 of 3
spftextSpf1 of 3
dmarc_policytextDmarc policy1 of 3
mx_providertextMx provider1 of 3
verification_tokenslistVerification tokens0 of 3
dnssec_validatedyes or noDnssec validated3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameDomainRecord typeValueTtlSpfDmarc policyMx providerVerification tokensDnssec validated
1github.comgithub.comMX0 github-com.mail.protection.outlook.com164——Microsoft 365—No
2_dmarc.github.comgithub.comTXTv=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:d•••@github.com; ruf=mailto:d•••@github.com; fo=1164—quarantine——No
3github.comgithub.comTXTv=spf1 ip4:192.30.252.0/22 ip4:172.170.10.240/28 ip4:40.78.162.192/28 ip4:172.170.3.48/28 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net…76~all———No

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • One run returns at most 5,000 records and looks up at most 500 domains; every domain and record type is one lookup, so a large run takes a few minutes.
  • Answers come from Google Public DNS, a recursive resolver, so you see what the internet resolves now, including its caching: the TTL is the remaining cache time and can be lower than the zone's own TTL.
  • spf and dmarc_policy are filled only on TXT records that hold an SPF or DMARC policy, and only when parse_email_auth is on. DMARC is read from the _dmarc name of each domain and returned as its own TXT record, just ahead of the domain's other TXT records.
  • spf holds the closing qualifier of the policy (-all, ~all, ?all, +all) or the redirect target; it does not follow include chains. mx_provider is a best guess from the mail host name and is empty for self-hosted or unrecognised hosts.
  • verification_tokens lists the kind of verification record found (for example google-site-verification), not a verdict on the domain's ownership. Verification values stay in the value field.
  • dnssec_validated is true when Google validated the answer with DNSSEC; false means unsigned or not validated. Other record types, such as DKIM selectors, are not looked up.
  • Names that do not exist or have no record of a type simply return no rows. Google asks for fair use of its public DNS service, so lookups run at a gentle pace. Not affiliated with or endorsed by Google.

Version history

A run uses the live version unless the request names another one with version.