Back to Glossary
D

DNS Lookup

Definition

The process of querying the DNS system to retrieve records associated with a domain.

Expanded Explanation

What Is a DNS Lookup?

A DNS lookup is the process of querying the Domain Name System to retrieve records associated with a domain name. When your email client sends a message, the mail server performs DNS lookups to find where to deliver it. When an email verification service checks an address, it performs DNS lookups to confirm the domain exists and is configured to receive email. DNS lookups are fast, lightweight, and a foundational step in almost every email-related operation.

Types of DNS Lookups in Email

Forward lookup: resolves a domain name to an IP address (A or AAAA record). MX lookup: finds the mail exchange servers responsible for a domain's email. TXT lookup: retrieves text records including SPF and DMARC policies. DKIM lookup: retrieves the public key at a specific selector subdomain. Reverse lookup (PTR): resolves an IP address back to a domain name — used by receiving servers to check sending IP legitimacy.

DNS Lookups and Email Verification

EmailVerify.io performs multiple DNS lookups as part of its verification pipeline. First, it checks whether the domain has valid A and/or MX records — if neither exists, the domain can't receive email and any address there is invalid. Then it checks MX records to find the responsible mail server. Then it attempts an SMTP connection to that server for mailbox-level verification. DNS lookups are the first and fastest gate in this pipeline.

SPF Lookup Limits

One critical constraint in email authentication is the SPF 10-lookup limit. SPF records are evaluated by performing DNS lookups for each "include," "a," "mx," "exists," and "redirect" mechanism. The specification limits this to 10 lookups per SPF evaluation. If your SPF record chains together too many includes from different vendors (multiple marketing platforms, CRMs, support tools), you can exceed this limit. Exceeding it causes SPF to fail with a "permerror" result — effectively the same as having no SPF at all.

DNS Lookup Performance

DNS lookups are fast — usually under 100 milliseconds. But accumulated lookups add up. Email verification that requires multiple DNS queries, SMTP connection attempts, and follow-up lookups can take 1–3 seconds per address. For real-time API use cases (form validation), this latency needs to be balanced against the value of the check. EmailVerify.io's API is optimized for low-latency real-time checks while maintaining verification depth.

Caching and TTL

DNS resolvers cache lookup results for the duration of the TTL (Time to Live) value specified in the DNS record. This means repeated lookups for the same domain return cached results rather than querying the authoritative server every time — speeding up the process. For email verification services that check thousands of addresses per minute, caching at the DNS level is an important part of keeping response times fast.