ThisCalculator

Everyday

DNS Settings: Step-by-Step Configuration Guide

Updated · Standard formula, shown below

DNS Settings: Step-by-Step Configuration Guide

To configure DNS settings, you typically change the DNS server addresses in your device’s network settings—either to a public DNS like Google (8.8.8.8) or Cloudflare (1.1.1.1), or to custom servers provided by your ISP or a private network. This article walks you through the steps for Windows, macOS, Android, iOS, and your router, plus explains what DNS is, how to choose a server, and common issues.

What Is DNS and Why Change It?

DNS (Domain Name System) translates human-readable domain names like example.com into IP addresses like 93.184.216.34. Your device uses a DNS resolver to look up these addresses every time you visit a website. By default, your ISP assigns a DNS server, but you can override it with a public or custom resolver.

Changing DNS can improve speed, reliability, and security. Some public DNS providers offer faster response times, better uptime, and filtering features (e.g., blocking malware domains). However, the actual speed difference is often small for most users, and the biggest benefit may be bypassing ISP-level blocks or getting more consistent results.

How DNS Configuration Works

When you configure DNS, you are telling your device which server to query. The setting is usually a pair of IP addresses (primary and secondary). The primary is used first; the secondary is a fallback if the primary fails. On a router, the setting applies to all devices on the network that use DHCP. On a single device, it only affects that device.

There are also two types of DNS lookups: recursive and iterative. Your device sends a recursive query to the configured DNS server, which then performs iterative queries to root servers, TLD servers, and authoritative servers to find the answer. The entire process happens in milliseconds.

Step-by-Step: Configure DNS on Windows

  1. Open Control Panel → Network and Sharing Center → Change adapter settings.
  2. Right-click your active network connection (Wi-Fi or Ethernet) and select Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  4. Choose Use the following DNS server addresses and enter your preferred and alternate DNS (e.g., 8.8.8.8 and 8.8.4.4).
  5. Click OK and close all windows. For IPv6, repeat steps 3-5 with Internet Protocol Version 6.

Alternatively, you can use the Settings app: Settings → Network & Internet → Wi-Fi (or Ethernet) → Hardware properties → Edit next to DNS assignment. This method is simpler on Windows 10/11.

Step-by-Step: Configure DNS on macOS

  1. Open System Settings (or System Preferences on older versions).
  2. Click Network.
  3. Select your active connection (Wi-Fi or Ethernet) and click Details.
  4. Go to the DNS tab.
  5. Click the + button under DNS Servers and enter the IP addresses (e.g., 1.1.1.1 and 1.0.0.1).
  6. Click OK then Apply.

Step-by-Step: Configure DNS on Android and iOS

Android (varies by version):

  • Go to Settings → Wi-Fi → long-press your network → Modify network → Advanced options.
  • Change IP settings to Static.
  • Enter DNS 1 and DNS 2 (e.g., 9.9.9.9 and 149.112.112.112).
  • Save the network.

iOS:

  • Open Settings → Wi-Fi → tap the i icon next to your network.
  • Tap Configure DNS → Manual.
  • Delete existing servers and add new ones (e.g., 8.8.8.8).
  • Tap Save.

Step-by-Step: Configure DNS on Your Router

Changing DNS on your router applies to all devices on your home network. Steps vary by router brand, but the general process is:

  1. Log into your router’s admin panel (usually via a browser at an IP like 192.168.1.1 or 192.168.0.1).
  2. Find the Internet or WAN settings section.
  3. Look for DNS settings and select Use custom DNS or Manual.
  4. Enter your preferred and alternate DNS addresses.
  5. Save the settings and reboot the router if prompted.

How to Choose a DNS Server

Popular public DNS servers include Google (8.8.8.8, 8.8.4.4), Cloudflare (1.1.1.1, 1.0.0.1), Quad9 (9.9.9.9), and OpenDNS (208.67.222.222, 208.67.220.220). When choosing, consider:

  • Speed: Use a tool like DNSPerf or namebench to compare response times from your location.
  • Privacy: Some providers log queries; read their privacy policies.
  • Filtering: Quad9 blocks malicious domains by default; OpenDNS offers family filters.
  • Reliability: Choose a provider with a strong uptime record.

Common Problems and Troubleshooting

After changing DNS, you may encounter issues. Here are common ones:

  • No internet connection: Ensure you entered the correct IP addresses. Double-check for typos.
  • DNS not resolving: Try flushing the DNS cache: on Windows, run ipconfig /flushdns; on macOS, run sudo dscacheutil -flushcache; on Linux, use sudo systemd-resolve --flush-caches.
  • IPv6 issues: If you only changed IPv4, some devices may still use IPv6 DNS. Configure both.
  • Router not applying: Some routers require a reboot or have a separate DNS field for IPv6.

Frequently Asked Questions

What is the fastest DNS server?

There is no single fastest DNS for everyone; it depends on your location, ISP, and network conditions. Public DNS providers like Google and Cloudflare are generally fast, but you can measure with tools like nslookup or online speed tests to find the best for you.

Is it safe to use public DNS?

Yes, using reputable public DNS servers is safe and often more secure than your ISP’s default. However, be aware that the provider may see your DNS queries, so review their privacy policy. Avoid unknown or unverified DNS servers.

Can I configure DNS on a per-device basis?

Yes, you can set DNS individually on each device. This is useful if you want different filtering on a child’s tablet, for example. The steps are the same as above, but done on each device.

What is DNS over HTTPS (DoH)?

DoH encrypts your DNS queries, preventing eavesdropping and tampering. Many browsers (like Chrome and Firefox) support DoH, and you can enable it in browser settings. It adds a layer of privacy beyond just changing your DNS server.

Why does my DNS change not take effect?

Possible reasons: you didn’t save the settings, the device is still using a cached DNS, or your router is overriding the device-level setting. Try flushing the DNS cache, restarting the device, or checking the router’s DHCP settings.

Do I need to configure IPv6 DNS?

If your network uses IPv6, it’s recommended to configure IPv6 DNS servers as well. Many public DNS providers offer IPv6 addresses (e.g., Google: 2001:4860:4860::8888). If you leave it blank, your device may fall back to the ISP’s IPv6 DNS.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.