To disable automatic DNS configuration in Windows 11 while keeping DHCP enabled, you must switch the IPv4 DNS assignment from "Automatic (DHCP)" to "Manual." This process allows you to specify custom DNS servers or leave them blank for a null configuration without disrupting the IP address lease obtained via DHCP. The steps involve navigating through the Network Connections settings and modifying the Internet Protocol Version 4 properties.
Understanding DHCP and DNS Interaction
It is important to clarify that disabling automatic DNS does not mean disabling DHCP entirely. DHCP (Dynamic Host Configuration Protocol) is responsible for assigning your device an IP address, subnet mask, gateway, and DNS server information from your router or network administrator. When you configure DNS manually, you are only overriding the specific DNS portion of the DHCP lease. The IP address assignment remains dynamic, ensuring that if your network topology changes, your computer still receives a valid IP configuration automatically. Many users confuse these two services because they are often bundled together in the network adapter settings. However, separating them gives you granular control over name resolution while maintaining network connectivity integrity. If you were to disable DHCP entirely, your device would lose its ability to communicate on the local network unless you assigned a static IP manually, which is rarely desirable for standard desktop or laptop usage.Accessing Advanced Network Settings
The first step involves locating the correct network adapter. Windows 11 provides multiple pathways to access these settings, but the most direct method uses the Settings application. You can pressWin + I to open Settings and navigate to Network & internet. From there, select Advanced network settings on the left sidebar. Alternatively, you can use the Control Panel legacy interface by searching for "View network connections" in the Start menu.
Once in the Advanced network settings page, look for the section labeled More network adapter options. Clicking this link opens the classic Network Connections window, which displays all active adapters such as Wi-Fi, Ethernet, and Virtual adapters. Identify the adapter currently providing your internet connection. It will typically be labeled with the name of your Wi-Fi network or "Ethernet." Right-click this adapter and select Properties from the context menu. Do not select "Disable" or "Uninstall," as these actions will break connectivity.
Identifying the Correct Protocol
In the Properties window, you will see a list of items installed for this network adapter. Scroll down until you find Internet Protocol Version 4 (TCP/IPv4). Ensure that the checkbox next to it is checked. If it is unchecked, the system cannot route traffic using IPv4, which is still the dominant protocol for most networks. Select this item and click the Properties button below the list. This opens the specific configuration dialog where DNS settings reside.Configuring Manual DNS Settings
Inside the IPv4 Properties window, you will see two radio buttons at the top: Obtain an IP address automatically and Use the following IP address, followed by similar options for DNS. To keep DHCP enabled for IP addressing, ensure that Obtain an IP address automatically remains selected. Changing this to manual will force a static IP setup, which is not the goal here. Scroll down to the DNS Server Assignment section. By default, Obtain DNS server address automatically is selected. To disable automatic DNS, click the radio button for Use the following DNS server addresses. This action activates the input fields below it. You now have two choices depending on your objective. If you want to use specific public DNS servers like Google (8.8.8.8) or Cloudflare (1.1.1.1), enter those values in the Preferred and Alternate fields. If your goal is to effectively disable DNS resolution entirely (for example, to test local-only connectivity or block external name resolution), you can leave both the Preferred and Alternate DNS fields empty. Leaving them blank tells Windows to attempt no DNS queries, effectively breaking external name resolution while keeping the network stack active. After entering your desired configuration, click OK to save the IPv4 settings. Then click OK again on the Adapter Properties window. Windows may take a few seconds to reconfigure the network stack. You do not need to restart your computer for these changes to take effect immediately.Verifying the Configuration
To confirm that automatic DNS has been disabled, open the Command Prompt as a standard user. Typeipconfig /all and press Enter. Look for the section corresponding to your active adapter. Under DNS Servers, you should see either the custom IPs you entered or nothing at all if you left them blank. Additionally, check the DHCP Enabled line; it should read Yes. If it reads No, you accidentally switched the IP assignment to manual in the previous step.
If you encounter issues where the settings revert back to automatic, check for Group Policy restrictions or third-party network management software that might enforce DNS configurations. In some enterprise environments, domain controllers push DNS settings via Group Policy Objects (GPO). Local manual overrides are often temporary and will be replaced upon the next policy refresh cycle. For home users, this behavior is rare unless specific registry tweaks or third-party security suites are interfering.
For related troubleshooting on DNS persistence issues, you may find the article on DNS Settings Automatically Changing to Manual on Windows 11 22H2 helpful if your settings refuse to stick. Additionally, if you are dealing with search domain complications after changing DNS, refer to How to Disable Windows DNS Search Domain and Set to ..
Troubleshooting Connectivity Issues
Sometimes, disabling automatic DNS can lead to confusion if applications fail to resolve hostnames. If you have entered custom DNS servers and internet browsing fails, verify that the DNS servers are reachable. Use theping command to test connectivity to the DNS IP, not a website URL. For example, ping 8.8.8.8 should return replies. If it does, but ping google.com fails, the issue is likely with the DNS response itself, not network reachability.
Clearing the local DNS cache can also help apply new settings faster. Run ipconfig /flushdns in the Command Prompt. This removes stale entries that might be cached from before the change. Note that flushing the DNS does not change your configuration; it only clears the resolver cache.
If you are using IPv6 alongside IPv4, remember that the steps above only affect IPv4. You must repeat the process for Internet Protocol Version 6 (TCP/IPv6) if you wish to disable automatic DNS for IPv6 traffic as well. Many modern networks rely heavily on IPv6, so ignoring it might result in partial connectivity loss.
Alternative Methods via PowerShell
For advanced users or automation purposes, PowerShell provides commands to achieve the same result without navigating the GUI. Open PowerShell and runGet-NetIPConfiguration to identify the interface index of your network adapter. Then, use Set-DnsClientServerAddress to specify the servers. For example: Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses ("8.8.8.8", "1.1.1.1"). Replace the index and addresses with your actual values. This method is scriptable and useful for deploying configurations across multiple machines.
However, the GUI method remains the most reliable for most users because it provides visual confirmation of each step and reduces the risk of syntax errors in commands. Always prefer the GUI unless you have a specific need for automation or remote management capabilities.