showmyip.dev

What is DNS?

Computers find each other by IP address, but people remember names. The Domain Name System (DNS) is the internet's address book: it turns a name like dns.google into the IP address of the server behind it, in this case 8.8.8.8.

Every time you open a website or an app connects to the internet, your device first asks a DNS resolver (a DNS server) for the address. Unless you have changed it, that resolver is run by your internet provider and was set automatically when you connected.


How a DNS lookup works

  1. You open example.com in your browser.
  2. Your device asks its DNS resolver for the address of example.com.
  3. If the resolver doesn't already have the answer saved, it asks the servers responsible for the domain, then remembers the answer for a while (caching).
  4. The resolver replies with the IP address, and your browser connects to it.

This usually takes a few milliseconds, and answers are cached on your device and resolver, so most lookups never leave your network.


Why change your DNS server?

Your internet provider's resolver works, but you are free to use another one. Reasons people switch:

  • Reliability. Some providers' resolvers are slow or occasionally fail. The large public resolvers are fast and rarely go down.
  • Blocking malicious sites. Resolvers like Quad9 refuse to look up domains known for malware and phishing, which stops many attacks before your browser connects.
  • Family filtering. Some resolvers offer versions that block adult content for the whole network, without installing software on each device.
  • Ad and tracker blocking. Resolvers like AdGuard DNS block known advertising and tracking domains.
  • Privacy from your provider. Your provider's resolver can log every site you look up. Switching moves that trust to another company, and with encrypted DNS (below) your provider can no longer read the lookups.
  • Getting around DNS blocks. Some providers block websites by refusing to look them up. Another resolver may still answer, though blocks like this are often required by local law.

What changing DNS doesn't do

  • It doesn't hide your IP address. Websites still see your real address. To hide it, use a VPN.
  • It doesn't make your connection faster. It can only shorten the lookup before a page starts loading, and only if your current resolver is slow. Download speed doesn't change.
  • It doesn't make you private on its own. Ordinary DNS is unencrypted, so your provider can still see the lookups on the way to any resolver, and it always sees which IP addresses you connect to.

Popular public DNS resolvers

All of these are free. Use the primary and secondary addresses together, so your device has a fallback.

ResolverIPv4IPv6Good to know
Cloudflare1.1.1.1, 1.0.0.12606:4700:4700::1111, 2606:4700:4700::1001Fast, privacy-focused, no filtering. 1.1.1.2 blocks malware, 1.1.1.3 also blocks adult content.
Google Public DNS8.8.8.8, 8.8.4.42001:4860:4860::8888, 2001:4860:4860::8844Fast and reliable, no filtering.
Quad99.9.9.9, 149.112.112.1122620:fe::fe, 2620:fe::9Blocks malicious domains. Run by a Swiss non-profit.
OpenDNS208.67.222.222, 208.67.220.2202620:119:35::35, 2620:119:53::53Run by Cisco. FamilyShield (208.67.222.123) blocks adult content.
AdGuard DNS94.140.14.14, 94.140.15.152a10:50c0::ad1:ff, 2a10:50c0::ad2:ffBlocks ads and trackers.

There is no single fastest resolver: it depends on where you are and on your provider's network. If speed is your goal, try two or three and keep the one that feels quickest.


Encrypted DNS: DoH and DoT

Ordinary DNS travels unencrypted, so anyone on the path, such as your provider or the owner of a public Wi-Fi network, can read and even alter the lookups. Two standards fix this:

  • DNS over HTTPS (DoH) sends lookups inside normal HTTPS traffic. Firefox, Chrome, Edge and Windows 11 support it, and Apple devices can use it through a resolver's app or settings profile.
  • DNS over TLS (DoT) uses a dedicated encrypted connection. Android's Private DNS setting uses it.

All the resolvers above support both. Encrypted DNS keeps lookups private from your network, but the resolver itself still sees them, so choose one whose privacy policy you trust.


How to change your DNS server

On your router (changes it for every device on the network): open the router's admin page, usually at an address like 192.168.1.1 or 192.168.0.1, find the DNS or WAN settings, and enter the resolver's addresses. Menus differ between routers, so check its manual if you can't find the setting.

Windows 11: Settings → Network & internet → Wi-Fi or Ethernet → your connection → DNS server assignment → Edit → Manual. Turn on IPv4 (and IPv6 if you use it), enter the addresses, and set DNS over HTTPS to On if offered.

macOS: System Settings → Network → your connection → Details → DNS. Click + to add the addresses, and remove the old ones.

Android 9 and newer: Settings → Network & internet → Private DNS → Private DNS provider hostname, then enter the resolver's hostname, for example one.one.one.one, dns.google or dns.quad9.net. Names of the menus vary by manufacturer. This also encrypts your lookups.

iPhone and iPad: Settings → Wi-Fi → tap ⓘ next to your network → Configure DNS → Manual. The setting applies to that Wi-Fi network only; mobile data keeps your carrier's DNS unless you install the resolver's app or profile.

To undo the change, switch the setting back to automatic.


Check your setup

After changing DNS, open a few websites to make sure everything works. To see the DNS records of any domain, use the DNS lookup tool. A "DNS leak test" website shows which resolvers your device is actually using, which is also useful for checking that a VPN sends your lookups through its own servers.

Last updated