What DNS Is and How It Works

DNS stands for Domain Name System. It is often called the internet's phone book. When you type a web address such as example.com into a browser, your computer does not understand that name directly. It needs an IP address, which is a set of numbers such as 93.184.216.34. A DNS server looks up the name and returns the matching number so your device can connect to the right place.

Learn About Contacting Tucson Electric Power →

Most home computers receive DNS server addresses automatically. Your router usually passes along the addresses from your internet service provider. This setting is called "Automatic (DHCP)" in Windows 11. Many people never change it, and that is a normal choice. This educational guide explains how the system works so you can understand what a DNS change does before you make one.

DNS traffic usually uses port 53, which is a standard communication channel for name lookups. Domain names can be up to 253 characters long, and each label in a name, such as the part between two dots, can be up to 63 characters. IPv4 addresses contain four numbers, and each number ranges from 0 to 255.

Some people choose a different DNS provider for reasons such as response speed, filtering of certain website types, or privacy preferences. Public DNS services are one option that may be available to you. Examples include Cloudflare (1.1.1.1 and 1.0.0.1), Google Public DNS (8.8.8.8 and 8.8.4.4), and Quad9 (9.9.9.9 and 149.112.112.112).

  • DNS translates domain names into IP addresses.
  • Automatic settings usually come from your router.
  • Manual settings let you choose a different DNS provider.
  • Changing DNS affects how your device looks up websites, not the websites themselves.

Takeaway: Before changing anything, learn how DNS fits into your connection. Knowing the role of DNS makes the rest of the steps in this guide easier to follow.

Checking Your Current DNS Settings

Before you change your DNS server, record the current settings. This gives you a reference point if you want to switch back later. Windows 11 provides a few ways to view this information without changing anything.

Free Guide to Recovering Deleted Phone Contacts →

The most detailed method uses the Command Prompt. Open the Start menu, type cmd, and select Command Prompt. Then type the following command and press Enter:

ipconfig /all

Scroll through the results until you find your active adapter. Look for a line labeled "DNS Servers." It will show one or two IP addresses. Write them down. If the list shows your router's address, such as 192.168.1.1, your computer is probably using automatic settings from your router.

You can also check settings in the Settings app. Open Settings, select Network & internet, then choose Wi-Fi or Ethernet. Select the connected network or adapter and look for the DNS server assignment section. It will say either Automatic (DHCP) or Manual.

  • Use ipconfig /all to see every adapter and DNS address.
  • Write down the current DNS servers before making changes.
  • Check whether the assignment is Automatic or Manual.
  • Note whether you use Wi-Fi, Ethernet, or both.

Some computers have multiple adapters, such as a Wi-Fi connection and a virtual adapter from VPN software. Only the adapter you actively use matters for regular internet traffic. Look for the one with an IPv4 address that matches your network.

Takeaway: Saving your original DNS addresses gives you a simple record to return to. Taking a few minutes to check your current setup can prevent confusion later.

Changing DNS Through the Windows 11 Settings App

The Settings app is the most common way to change DNS in Windows 11. Microsoft moved many network options into this area, so the steps may look different from older versions of Windows. The general process is the same across most recent builds of Windows 11.

Understanding Passport Rules for Children on Cruises →

Follow these steps for an Ethernet connection:

  • Open Settings and select Network & internet.
  • Select Ethernet and click your connected adapter name.
  • Find DNS server assignment and select Edit.
  • Change the menu from Automatic (DHCP) to Manual.
  • Turn on the IPv4 switch.
  • Enter your Preferred DNS address and Alternate DNS address.
  • Select Save.

For Wi-Fi, select Wi-Fi from the Network & internet page, then choose the properties for the network you are connected to. The DNS server assignment section appears in the same place. The Edit button and the Manual option work the same way.

When entering addresses, type the numbers exactly as provided by the DNS provider. For example, Cloudflare's primary address is 1.1.1.1 and its secondary address is 1.0.0.1. A single typing error can prevent websites from loading. Many people enter both a preferred and an alternate address so the system has a backup if one server stops responding.

After saving, open a browser and visit a few websites to confirm that pages load. If nothing appears, double-check the numbers you entered.

Takeaway: The Settings app offers a clear, menu-based path for DNS changes. Write down each address carefully and check your connection after saving.

Changing DNS Through Control Panel

Control Panel is an older tool that still works in Windows 11. Some users prefer it because it shows adapter options in one window. Microsoft has kept this method available, so it is a valid choice for those who want a different route to the same result.

Learn How Pirelli Tire Rebates Work Today →

To open it, press the Windows key and R together, type ncpa.cpl, and press Enter. This opens the Network Connections window. You can also search for "View network connections" in the Start menu.

  • Right-click the adapter you use, such as Wi-Fi or Ethernet.
  • Select Properties.
  • Click Internet Protocol Version 4 (TCP/IPv4) once to highlight it.
  • Select Properties below the list.
  • Choose "Use the following DNS server addresses."
  • Type the Preferred DNS server and Alternate DNS server.
  • Select OK on both windows to save.

This method uses IPv4 settings, which are the most common setup for home networks. If your provider also supports IPv6, you may see a separate entry for Internet Protocol Version 6 (TCP/IPv6). Changing IPv6 DNS is optional for most people unless a provider specifically asks for it.

Administrator permission may be needed for some changes. If Windows asks for approval, follow the prompt to continue. Changes made in this window take effect for the adapter immediately after saving, and you may notice a short pause while the connection refreshes.

Takeaway: Control Panel offers the same DNS change through a different path. Choose the method that matches your comfort level, and record the addresses you enter.

Using Encrypted DNS (DNS over HTTPS)

Standard DNS requests are sent without encryption. This means that someone monitoring the network could see which domain names you look up. Encrypted DNS, often called DNS over HTTPS or DoH, wraps these lookups in an encrypted connection on port 443, which is the same port used for secure web browsing. Windows 11 includes built-in support for DoH in newer builds.

Learn About Writing Your Book's Opening Pages →

To turn on this feature in the Settings app, follow the same path as before. Open Network & internet, select your adapter, and go to DNS server assignment. Choose Edit, select Manual, turn on IPv4, and enter your DNS addresses. Then look for the Preferred DNS encryption menu. It usually offers three choices:

  • Unencrypted only, which sends standard DNS traffic.
  • Encrypted only (DNS over HTTPS), which requires encryption.
  • Unencrypted allowed or encrypted allowed, which tries encryption first and falls back if needed.

Choose a setting that matches your provider's documentation. Not every DNS server supports DoH. Cloudflare, Google, and Quad9 all offer encrypted options, but they use different addresses or templates. If you select "Encrypted only" with a server that does not support it, your connection may fail. In that case, switch the setting to "Unencrypted allowed" or return to standard DNS.

Encryption protects the content of DNS lookups, but it does not hide every detail of your browsing. Websites can still see visits, and your internet provider may still see some connection information.

Takeaway: Encrypted DNS is an option that may improve privacy for lookups. Confirm that your chosen provider supports it before selecting the encrypted setting.

Troubleshooting and Returning to Automatic DNS

Sometimes a DNS change causes problems. A website may fail to load, or a page may show an error such as "DNS server not responding." These issues often come from a typing mistake, a server that is temporarily unavailable, or a setting that does not match the provider's instructions. Learning a few basic checks can save time.

Learn About Contacting Tucson Electric Power →

First, flush the local DNS cache. Windows stores recent lookups, and old entries can cause confusion. Open Command Prompt as an administrator and type:

ipconfig /flushdns

Next, test whether the new server responds. In Command Prompt, type nslookup example.com followed by the DNS server address, such as nslookup example.com 1.1.1.1. A reply with an IP address means the server is working. A timeout suggests a problem with the address or your connection.

If problems continue, return to the original setting. In the Settings app, open the same DNS server assignment menu and change Manual back to Automatic (DHCP). Save the change. Your computer will then request DNS addresses from your router again.

  • Check for typing errors in each address.
  • Run ipconfig /flushdns after changes.
  • Use nslookup to test a specific server.
  • Switch back to Automatic (DHCP) if issues continue.
  • Restart your router if the network still behaves unexpectedly.

Keep a written record of the addresses you tested and the results. If you contact your internet service provider, that information may help explain what you tried. Changing DNS is a reversible process, so a mistake does not usually cause lasting harm to your computer.

Takeaway: Basic checks such as flushing the cache and testing a server can reveal the source of a problem. Returning to automatic settings is always an option when you want to undo your changes.