Understanding How DNS Works
The Domain Name System, usually called DNS, is often compared to a phone book for the internet. When you type a web address such as example.com into your browser, your device needs a numeric Internet Protocol (IP) address to find the correct server. An IPv4 address looks like four numbers separated by dots, such as 192.0.2.10. DNS is the system that translates the friendly name into that number.
Learn About Nighttime Cough Relief Options →
A typical lookup moves through several stages. Your device first checks its own cache, which is a short-term memory of recent lookups. If the answer is not stored there, the request goes to a recursive resolver, a server that does the searching on your behalf. The resolver may ask root servers, top-level domain servers, and finally the authoritative server that holds the official records for that domain. Each answer includes a time-to-live (TTL) value, measured in seconds, that tells caches how long they can keep the record before asking again.
Key terms to know:
- Resolver: The server that carries out DNS lookups for your device.
- Cache: Temporary storage for recent answers on your device or resolver.
- Authoritative server: The server that holds the official records for a domain.
- TTL: The number of seconds a DNS answer may be stored before it is refreshed.
Most home connections receive DNS settings automatically from the internet service provider through a process called DHCP. Changing DNS settings means telling your device or router to send its lookups to a different resolver. This guide explores how that change works, which providers may be an option, and how to check the result. Learning how the lookup process works makes the later steps easier to understand.
Practical takeaway: Your device turns names into numbers before any website loads. The DNS server it uses for that job can be changed in your device or router settings.
Before You Make Any Changes
Preparation matters because DNS settings control how every app on a network finds servers. Before editing anything, record the current configuration. That record lets you return to your original setup if a new resolver causes problems. Many people skip this step, then cannot remember which numbers were in place before the change.
Free Guide to California Vehicle Registration Renewal Options →
Start by checking which network you are using. A laptop might be connected to Wi-Fi at home, Ethernet at work, and a phone hotspot while traveling. Each connection can have separate DNS settings. Also think about whether the network belongs to you. Workplace, school, and public networks often require their own DNS servers for internal sites or content filtering. Changing those settings may break access to resources, and IT policies may not allow it.
Useful preparation steps include:
- Write down the current DNS server addresses for each device or network you plan to change.
- Note whether the settings are automatic (provided by the router) or manual (entered by hand).
- Confirm whether a work or school device is managed by an organization.
- Save any open work before restarting network adapters, which can briefly disconnect you.
- Check that you know the admin login for your router, if you plan to change settings there.
Some routers also use custom local names for printers, smart speakers, and file servers. Changing DNS on a device may not affect those local names, but changing DNS at the router level can. Keeping a written record of your original settings gives you a clear path back if something stops working.
Practical takeaway: Write down your current DNS addresses and confirm you are allowed to change them before you begin. This record serves as a reference point for undoing the change.
Choosing a DNS Provider
Many organizations run public DNS resolvers that anyone may use. Some of the best-known services use these addresses. Each provider publishes its own details about performance, privacy, and filtering options, so reviewing those pages is a good idea before choosing one.
Free Guide to Scheduling Your Woodstock DMV Appointment →
- Cloudflare: 1.1.1.1 and 1.0.0.1
- Google Public DNS: 8.8.8.8 and 8.8.4.4
- Quad9: 9.9.9.9 and 149.112.112.112
- OpenDNS Home: 208.67.222.222 and 208.67.220.220
Some providers offer filtering versions. Quad9, for example, blocks domains linked to known malware by default. OpenDNS offers categories that can be turned on or off. Filtering can be useful for families or small offices, but it can also block sites that a user wants to visit, so check the settings carefully.
Speed is another common factor. Lookup times are measured in milliseconds, and differences between providers may be small on many connections. Results depend on your location, your internet provider, and the time of day. Testing two or three resolvers is one way to see which one responds more quickly for your typical browsing.
Privacy policies matter too. Every resolver can see the domain names your device asks about. Read how each provider handles logs, how long it keeps data, and whether it shares information with third parties. Changing DNS does not hide your browsing from every party. Your internet provider may still see some traffic, and websites still receive connections from your device.
Practical takeaway: Compare providers by their privacy policies, filtering options, and measured response times. Choose the one that matches your priorities and record its addresses before editing settings.
Changing DNS Settings on Windows and macOS
Computers are the most common place people change DNS, and both major desktop systems include built-in tools for the task. The exact menu names can change between operating system versions, so the steps below describe the general path. Apple and Microsoft may update their menus over time.
Get Your Free Guide to Windows PC Screenshots →
On Windows 11, open Settings, choose Network and Internet, then select Wi-Fi or Ethernet. Click Hardware properties, find DNS server assignment, and choose Edit. Switch the setting from Automatic to Manual, turn on IPv4, and enter a preferred DNS address and an alternate DNS address. Save the changes. Windows 10 uses a similar path through Control Panel or Network and Sharing Center, then Change adapter options.
On a Mac, open System Settings, select Network, and choose the active connection, such as Wi-Fi. Click Details, then DNS. Use the plus button to add each server address, and remove any old entries you no longer want. Click OK and then Apply. Older macOS versions place this setting under System Preferences, Network, Advanced, then DNS.
Helpful checks during the process:
- Enter the primary address first, then the secondary address.
- Avoid typing extra spaces or leaving a blank line in the list.
- Apply the change to every active connection that needs it.
Practical takeaway: On Windows, use the DNS server assignment setting under your network connection. On a Mac, use the DNS tab under the network connection details. Save your work and confirm the new addresses appear in the list.
Changing DNS on Phones, Tablets, and Routers
Phones and tablets also have DNS settings, but they work a bit differently. On iPhone and iPad, open Settings, tap Wi-Fi, then tap the information icon beside the network name. Select Configure DNS, switch from Automatic to Manual, and add your chosen servers. This setting applies only to that Wi-Fi network, so mobile data lookups still follow the carrier's default settings.
Get Your Free Belly Fat Exercises Guide →
Many Android devices offer Private DNS, which encrypts lookups using DNS over TLS. On Android 9 and later, open Settings, go to Network and Internet or Connections, then Private DNS. Choose the option to enter a provider hostname, such as dns.google or one.one.one.one. Exact steps vary by manufacturer. Some phones also let you set DNS for each Wi-Fi network through advanced options.
Routers offer the broadest reach because every connected device receives the setting automatically. To change DNS at the router level, type the router's address into a web browser. Common examples include 192.168.0.1 and 192.168.1.1, but the correct address is often printed on a label on the device. Sign in with the admin username and password, then look for WAN, Internet, or DNS settings. Enter the new addresses, save, and restart the router if prompted.
A router change affects all devices on the network, including smart TVs and game consoles. Some devices keep their own cached answers until they reconnect, so they may need a restart.
Practical takeaway: Phone settings usually apply to one network or one device. Router settings apply to every device that connects through that router, which makes them useful when you want consistent behavior across a household.
Testing, Troubleshooting, and Reverting Changes
After changing DNS, confirm that the new setting is working. On Windows, open Command Prompt and type ipconfig /all. Look for the DNS Servers line under your active adapter. On macOS, open Terminal and type networksetup -getdnsservers Wi-Fi, replacing Wi-Fi with your connection name if needed. The output should list the addresses you entered.
Learn About Nighttime Cough Relief Options →
You can also test lookups directly. In Command Prompt or Terminal, type nslookup example.com. The response shows which server answered the request. If the server listed matches your new choice, the change is active. If not, your device may still be using a cached setting or an overriding configuration.
When something stops loading, try these steps:
- Flush the DNS cache. On Windows, type ipconfig /flushdns. On macOS, the command varies by version, but recent systems commonly use sudo dscacheutil -flushcache followed by sudo killall -HUP mDNSResponder.
- Restart the device or reconnect to the network.
- Check whether a VPN, security app, or work profile is overriding DNS.
- Try a second provider to see whether the problem is specific to one resolver.
To revert, return the setting to Automatic or enter the addresses you wrote down earlier. Keeping those records makes this step quick and reduces guesswork. If a router change caused issues, you can also reset the router to factory settings, though that removes custom configurations, so back them up first.
Practical takeaway: Test the change with a lookup command, flush the cache if results look outdated, and keep your original addresses ready so you can return to the previous setup at any time.