Quad9

On this page 7

Quad9 is a free public recursive DNS resolver, reachable at 9.9.9.9, that answers DNS queries for any client on the Internet while blocking domains known to host malware, phishing or botnet infrastructure. It is operated by the Quad9 Foundation, a nonprofit organization based in Switzerland, and it is one of the best-known alternatives to the resolver supplied by an Internet service provider.

Quad9 was launched in November 2017 by IBM, Packet Clearing House and the Global Cyber Alliance. Its defining design choice is that security filtering and privacy protection are the default, not optional add-ons, which distinguishes it from resolvers that focus mainly on speed or on bundled analytics.

How Quad9 resolves and filters queries

Quad9 resolves names like any recursive DNS service: it receives a query from a stub resolver on a device or a home router, walks the hierarchy from the root name servers to the authoritative servers, and returns the answer. Results are stored in a DNS cache for the record’s time to live, so repeated queries are answered locally within milliseconds.

The distinctive step happens before the answer leaves the resolver. Each queried name is compared with a blocklist compiled from threat intelligence feeds supplied by roughly two dozen security partners. When a name matches, Quad9 returns NXDOMAIN, the response that says the domain does not exist, so the client never learns the malicious address and the connection never starts.

The service is delivered through anycast routing: the same addresses are announced from hundreds of points of presence across many countries, and network routing sends each query to a nearby node. This design lowers latency, spreads load and limits the impact of distributed denial-of-service attacks on any single site.

The following table summarizes the processing stages of a single query on the default service.

StageWhat Quad9 doesEffect for the client
ReceptionAccepts the query on the nearest anycast nodeLow latency from most regions
Threat checkCompares the name with the blocklistKnown malicious names receive NXDOMAIN
ResolutionQueries authoritative servers or answers from cacheCorrect records for legitimate names
DNSSEC validationVerifies signatures on signed zonesForged answers are rejected with SERVFAIL
ResponseReturns the answer without storing the client IPNo query log tied to the user
Processing stages of a query on the secure service

Quad9 service addresses and variants

Quad9 publishes three service profiles, each on its own set of IPv4 and IPv6 addresses, so administrators choose the behavior simply by choosing the address. The secure profile at 9.9.9.9 is the recommended default; the other two exist for diagnostics and for content delivery needs.

ProfileIPv4 addressesIPv6 addressesBehavior
Secure (default)9.9.9.9 and 149.112.112.1122620:fe::fe and 2620:fe::9Threat blocking and DNSSEC validation
Secure with ECS9.9.9.11 and 149.112.112.112620:fe::11 and 2620:fe::fe:11Blocking, DNSSEC and EDNS Client Subnet
Unsecured9.9.9.10 and 149.112.112.102620:fe::10 and 2620:fe::fe:10No blocking and no DNSSEC validation
Quad9 service profiles

EDNS Client Subnet (ECS) forwards a truncated part of the client address to authoritative servers so that content delivery networks can pick a closer server. It can improve download performance, but it reveals approximate location to third parties, which is why Quad9 keeps it off by default. The unsecured profile is mainly useful for troubleshooting a suspected false positive.

Beyond classic DNS over port 53, Quad9 supports encrypted transports: DNS over TLS on port 853, DNS over HTTPS on port 443 and DNSCrypt. Encryption hides query contents from the local network and the access provider, which plain UDP traffic does not.

Privacy and governance of the Quad9 Foundation

Quad9 states that it does not log client IP addresses and does not sell or profile query data. It keeps only aggregated, anonymous statistics, such as counts of queries for a given domain, which help partners measure threat activity without identifying users.

In 2021 the operating entity moved to Switzerland, placing the service under Swiss data protection law and aligning it with the GDPR for European users. As a nonprofit funded by donations and sponsors, Quad9 has no advertising business that would benefit from query data, although users still extend trust to its stated policies, which no outside party can verify in real time.

How Quad9 compares with other public resolvers

Quad9 is most often compared with Google Public DNS and 1.1.1.1 from Cloudflare. All three are large anycast services with encrypted transports, but they differ in default filtering, logging and ECS handling, as the table shows.

ResolverPrimary addressDefault threat blockingClient IP loggingECS by default
Quad99.9.9.9YesNot storedNo
Google Public DNS8.8.8.8NoTemporary logsYes
1.1.1.11.1.1.1No (filtered variant 1.1.1.2)Short-lived, auditedNo
ISP resolverAssigned by DHCPVaries by providerVaries by providerVaries
Default behavior of major public resolvers

Raw latency rankings change with location and over time, so no resolver is universally fastest. In practice the choice usually rests on policy: Quad9 suits users who want protective filtering without installing software, while unfiltered resolvers suit environments that apply their own security controls.

Configuring Quad9 and avoiding common pitfalls

Quad9 can be set on a single device, a home router or a corporate forwarder such as BIND or Unbound. Router-level configuration protects every connected device, including those that offer no DNS settings of their own.

SituationRecommended settingReason
Home networkRouter DNS set to 9.9.9.9 and 149.112.112.112Covers all devices at once
Laptop on public Wi-FiDNS over TLS or DNS over HTTPSHides queries from the hotspot operator
Corporate forwarderForward to the secure profile over TLSAdds a filtering layer to internal DNS
Suspected false positiveTest the name against 9.9.9.10Confirms whether blocking is the cause
Heavy CDN streamingConsider the ECS profileMay select closer content servers
Configuration choices and their consequences
  • Mixing resolvers such as 9.9.9.9 with 8.8.8.8 lets clients bypass filtering whenever they choose the second server.
  • Domain blocking is not full protection: malware that connects by raw IP address or uses its own resolver is not stopped.
  • False positives occur occasionally; Quad9 accepts reports and removes entries confirmed as legitimate.
  • Split-horizon DNS names in a private network cannot be resolved by any public resolver, including Quad9.

Stripped to the essentials

Every time someone types a website name, a device has to ask a directory service which numeric address belongs to that name. Quad9 is one such directory, free for anyone, at the easy address 9.9.9.9.

What makes it different is that it refuses to give out addresses of known dangerous sites. It works like a switchboard operator who will not connect calls to numbers on a fraud list. It also promises not to keep a record of who asked, so it is a simple way to add both safety and privacy to a home or office network.

Where it is applied

A small accounting office with twelve workstations and no dedicated IT staff changes the DNS settings on its router from the provider defaults to 9.9.9.9 and 149.112.112.112, and enables DNS over TLS on the router so queries are encrypted on the provider network. The change takes a few minutes and requires no software on any computer.

Several weeks later an employee clicks a link in a convincing invoice email. The link points to a freshly registered phishing domain that a threat intelligence partner has already reported. Quad9 answers with NXDOMAIN, the browser shows a page-not-found error and no credentials reach the attacker. The office keeps its antivirus and email filtering in place, but the resolver now acts as an inexpensive first line of defense for every device on the network.