Skip to main content
guides

DNS to open blocked sites: what it can and can't do

· 4 min read

In short

An ISP can block a website in three ways: in its DNS (it won't resolve the name), by IP (it drops the connection to the server) or by SNI (it reads the site name inside the encrypted connection). Switching to a public DNS like 1.1.1.1 or 9.9.9.9 gets past the first, which is the most common and cheapest, and with encrypted DNS (DoH or DoT) it also stops the ISP intercepting it. It doesn't get past the other two: that takes a VPN. You can tell in a minute: if the name resolves with another DNS but the site still won't open, the block isn't in DNS.

A share of the searches that reach this site ask for a “DNS to open blocked sites”. The short answer is that it sometimes works and sometimes doesn’t, and the difference lies in how your ISP blocks. This is about telling the two apart.

The three ways to block a website

When an ISP has to block a domain, it has three tools, from cheapest to most expensive.

DNS blocking. The ISP configures its own resolver so that, when someone asks for that name, it answers “doesn’t exist” or returns one of its own IPs with a notice page. By far the most common, because it costs nothing and doesn’t touch traffic. It only works if you use the ISP’s DNS, which is what everyone does by default.

IP blocking. The ISP drops traffic to the server’s IP addresses. It no longer matters how you resolve the name: the connection doesn’t arrive. It’s costlier to maintain (IPs change, and blocking a CDN IP can take down hundreds of unrelated sites), so it’s reserved for specific cases.

SNI blocking. In an HTTPS connection, the site name travels in the clear at the start (the SNI), even though the rest is encrypted. Some ISPs inspect that field and drop the connection if it matches the list. It needs traffic inspection equipment and is the method for “serious” blocks.

What DNS gets past and what it doesn’t

Changing resolver gets past only the first. Set 1.1.1.1 or 9.9.9.9 and your device no longer asks the ISP; it gets the real IP. Against the other two it does nothing, because the name is already resolved and the block acts afterwards, on the connection.

One important nuance: many ISPs that block via DNS also intercept conventional DNS traffic (port 53). It doesn’t matter that you set 1.1.1.1: the ISP captures the query and answers it itself. So if you’re changing DNS for this, it has to be encrypted: DoH or DoT. The ISP sees a TLS connection to Cloudflare or Quad9 and can neither read nor replace what’s inside. On Android that’s the “Private DNS” setting; on Windows 11, macOS and iOS it’s enabled in the network settings or with a profile; the configuration guides explain it per system.

How to tell which case you’re in

It takes a minute:

  1. Set an encrypted public DNS (for example one.one.one.one as Private DNS on Android, or 1.1.1.1 with DoH in the browser).
  2. Try to open the site. If it opens, the block was DNS. Done.
  3. If it doesn’t, check that the name resolves: the DNS lookup tool returns the domain’s real IP. If it does but the site won’t load or times out, the block is by IP or SNI. Changing DNS won’t help you.

In the third case, what gets past the block is a VPN, which encrypts the whole connection and routes it through another country, or a browser that encrypts the SNI (Encrypted Client Hello, which Firefox and Chrome already support when the site does too). That’s another article.

Which DNS to use

For this purpose, an unfiltered resolver that isn’t under the same blocking order:

ResolverName for Private DNS / DoTIP
Cloudflareone.one.one.one1.1.1.1
Quad9 (malware only)dns.quad9.net9.9.9.9
Googledns.google8.8.8.8
DNS4EU, unfiltered variantunfiltered.joindns4.eu86.54.11.100

Avoid family or ad-filtering resolvers for this: they block on their own, and you’ll struggle to tell an ISP block from a resolver block.

And a special case in Spain: xdp.es does something no other resolver does. When a CDN IP gets blocked by court order (it has happened with Cloudflare during football matches), it answers with another IP from the same CDN that does work. It’s the only DNS-level workaround for an IP block, and only for that case.

What DNS doesn’t do

  • It doesn’t change your IP address or your apparent country: sites still know where you are.
  • It doesn’t encrypt your browsing, only the name lookups. The ISP still sees which IPs you connect to.
  • It doesn’t get past IP or SNI blocks, as we’ve seen.
  • It doesn’t open sites that are down or that block your country themselves (the site’s own geoblocking).

For all of that, the tool is a VPN. DNS is the tool when the problem is, specifically, that your ISP won’t resolve a name. Which is the most common problem, and why this article exists.

On legality

Changing the DNS on your own device is generally legal, and public resolvers exist precisely so that everyone can pick their own. The content you access is a separate question and depends on your country: if something is blocked by court order, accessing it may have consequences regardless of the technique. Here we explain how it works; what you do with it is up to you.

Frequently asked questions

Does changing DNS unblock sites my ISP blocks?
Only if the block is applied in the ISP's DNS, which is the most common method. With a public resolver the name resolves and the site opens. If the ISP blocks the server's IP address or inspects the name in the connection (SNI), changing DNS won't help.
Which DNS is best for opening blocked sites?
Any unfiltered public resolver not subject to the same blocking order: Cloudflare (1.1.1.1), Quad9 (9.9.9.9), Google (8.8.8.8) or DNS4EU (86.54.11.100, the unfiltered variant). What matters is using it encrypted (DoH or DoT) so the ISP can't intercept the query and hand you its own answer.
How do I know whether the block is DNS or IP based?
Set 1.1.1.1 and try. If the site opens, it was DNS. If the name resolves (you can check with the DNS lookup tool) but the connection doesn't go through or times out, the block is by IP or SNI and you need a VPN.
Is it legal to change DNS to get around a block?
Changing the DNS on your own device is generally legal; public providers exist for exactly that. The content you access is another matter: if it's blocked by a court order in your country, accessing it may have consequences regardless of the method. This article explains the technique, it doesn't give legal advice.

← All articles

Ready to improve your DNS?

Choose the best free DNS server for your needs and configure it in minutes.