Win11, issue with getting DNS from DHCP

Ramadhir Singh

Wasseypur
Herald
In a windows11 based laptop, it always taking 9.9.9.9 - regardless what DNS my router is broadcasting, ignoring the DHCP.

Router has a static IP assigned to the mac address of this device. Same goes for all my devices - all gets fixed IP details from address reservation.
Rest of the devices are getting the proper DNS provided by router DHCP, except this windows system, and that too only in wifi mode - its always taking 9.9.9.9 DNS - as if its hardcoded somewhere, but it's pretending as if its getting auto DNS from router
When connected via wired LAN its is taking the correct DNS served by router.

Tried all possible troubleshooting - even resting the LAN adapter nothing helped.
Even tried tethering phones, connecting to other routers - Nothing works. its always taking that quad9 DNS regardless what is being broadcasted by the wifi source.

Anyone has any idea what going on and how to fix it ? 9999 means its bypassing my pihole which i dont want. right now.
 
Last edited:
Try turning off discovery
 

Attachments

  • 63297e60-3dd8-4ecc-a767-9f3b80d9ef07.jpg
    63297e60-3dd8-4ecc-a767-9f3b80d9ef07.jpg
    48.2 KB · Views: 57
it was intel driver installing some kind of profile. Deleted the keys in below registry location and all fixed.

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Dnscache\Parameters\DohWellKnownServers
 
  • Wow
Reactions: vishalrao
it was intel driver installing some kind of profile. Deleted the keys in below registry location and all fixed.

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Dnscache\Parameters\DohWellKnownServers
That's because DoH (dns over https) is enabled by default in certain windows 11 versions with supporting wifi cards installed & 9.9.9.9 aka Quad9 is one of the biggest free DoH providers in the world.
 
  • Like
Reactions: Ramadhir Singh
ahh i see.
so they now started to make decision on people behalf. hardcoding things and make it extremely harder to change.
my personal exp while, 9.9.9.9 as upstrem DNS, it doesn't play along good all the time, with DNSSEC it will simply fail the query saying its insecure. Plus it has filters, which might filter things for people.
Fallback like yandex is very good complimentory. this combo is functioning better than unbound for me.

quad 9 is very good for people who "knows" and is probably 3rd ot 4th position is user base, #1 is google DNS (8.8.8.8/4.4) - hardcoded in any OS which has android base, like android phone & amazon devices, ISP, etc
#2 cloudflare is second.
 
and.. it came back again... i guess its again went back to 9.9.9.9 after virus definition update ..
can someone suggest me how to find permanent solution to this, instead of deleting registry every time.

edit: this time it was only in one location specific to the current adapter under this key,
Code:
\\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\
 
Last edited:
and.. it came back again... i guess its again went back to 9.9.9.9 after virus definition update ..

can someone suggest me how to find permanent solution to this, instead of deleting registry every time.
Set the same router dns manually in wifi connection network settings of windows. Also, are you using any 3rd party antivirus/firewall or just inbuilt MS defender.
 
  • Like
Reactions: Ramadhir Singh
Set the same router dns manually in wifi connection network settings of windows. Also, are you using any 3rd party antivirus/firewall or just inbuilt MS defender.
yes just overridden it manually... dont want surprises anymore.
i guess i have to remember this when connecting to any outside network

im using the default MS defender, in its default state. please see the image below:
1730182750761.png
 
Not to rant.
But this is exactly the kind of shit that drove me away lock stock barrel from windows.
Not surprised to see this further worsening
 
Not to rant.
But this is exactly the kind of shit that drove me away lock stock barrel from windows.
Not surprised to see this further worsening
worst yet to come, these are just the beginning.
https://arstechnica.com/gadgets/202...s-that-it-is-testing-ads-in-windows-explorer/
:D
i too moved away .. returned (forced) to windows after win7 era.

M$ is now an ad company not software development. fb/google are known enemy people do trying to safeguard against, but M$ and Amazon.. are two biggest threat in upcoming days... with lots of money at their disposal.
 
worst yet to come, these are just the beginning.
https://arstechnica.com/gadgets/202...s-that-it-is-testing-ads-in-windows-explorer/
:D
i too moved away .. returned (forced) to windows after win7 era.

M$ is now an ad company not software development. fb/google are known enemy people do trying to safeguard against, but M$ and Amazon.. are two biggest threat in upcoming days... with lots of money at their disposal.
Ads aside, for which at least they have a logical (even if flawed) rationale to push
Its the rest of the stuff that I do not get.

ACPI management , which used to work fine up till circa 2014/15 or so was broken by them in their quest for the so called modern standby ..
So they moved from the working S3 standby (suspend to RAM, power off everything but RAM) to modern standby (S0 - where the CPU and associated circuitry remains powered up)
Standby on any laptop has never worked as expected for me after that. 8-9 years down, it has only got worse forcing me to use hibernate instead.

Same with updates - I understand updates are important.. but there are several use cases where user does not want/need them to be forced ...
Its next to impossible to disable updates - even via Group policy editor which is supposed to override everything else.

Something as basic as suspending a game (practically a must have on a handheld) would simply not work on a recent purchase (Legion Go). At least not until I wiped the diskf of windows and installed Bazzite (Linux)

Push ads if you have to but at least get the rest of the basics in order.. I would think thats a fair ask but I really doubt it will happen
 
ACPI management , which used to work fine up till circa 2014/15 or so was broken by them in their quest for the so called modern standby ..
So they moved from the working S3 standby (suspend to RAM, power off everything but RAM) to modern standby (S0 - where the CPU and associated circuitry remains powered up)
Standby on any laptop has never worked as expected for me after that. 8-9 years down, it has only got worse forcing me to use hibernate instead.
It is working flawlessly for me on win 11 on a ryzen 5xxx series laptop.

Same with updates - I understand updates are important.. but there are several use cases where user does not want/need them to be forced ...
Its next to impossible to disable updates - even via Group policy editor which is supposed to override everything else.
This too is working fine for me. I have disabled updates using nothing but group policy editor & sometimes I take 2-3 months to apply them. Of course it is not selective install & is either all or no updates to apply at that time.

I am guessing you are using windows home which is quite restrictive or windows pro which is not what it used to be. I suggest to use Education version which is basically an Enterprise version with even lesser ads/pre-installed MS bloatware.
 
It is working flawlessly for me on win 11 on a ryzen 5xxx series laptop.


This too is working fine for me. I have disabled updates using nothing but group policy editor & sometimes I take 2-3 months to apply them. Of course it is not selective install & is either all or no updates to apply at that time.

I am guessing you are using windows home which is quite restrictive or windows pro which is not what it used to be. I suggest to use Education version which is basically an Enterprise version with even lesser ads/pre-installed MS bloatware.
I dont want to sound mean when I say this - and honestly I am saying this in a nice way ....But the definition of flawless can vary significantly.

Unless you actually use multiple systems on multiple OSes side by side on a daily , or at least regular basis, what you perceive as flawless can be seen as dysfunctional and broken by the other person.
Even a hardcore windows fanbase portal like LTT has covered the long standing windows standby issues in detail
Microsoft is Forcing me to Buy MacBooks - Windows Modern ...YouTube · Linus Tech Tips4 Dec 2022

I have been a windows user for more than a quarter century now - so no, I have no confusion between win Home or pro.
I would not reference policy editor for the home version to begin with.

Also, If standby did work as expected, no one would have been building or using distros such as bazzite.gg for purpose built machines like rog Ally built & designed for windows
 
I dont want to sound mean when I say this - and honestly I am saying this in a nice way ....But the definition of flawless can vary significantly.
No problem.

Even a hardcore windows fanbase portal like LTT has covered the long standing windows standby issues in detail
Microsoft is Forcing me to Buy MacBooks - Windows Modern ...YouTube · Linus Tech Tips4 Dec 2022
I did go through that video & it turn out my laptop does support S3 state but still I think the issue was blown out of proportion. Linus himself mentioned that setting the closing lid action to hibernate will effectively solve this issue but his complaint was that it takes "too long". Well I use hibernation quite often on my laptop with multiple browsers & tabs opened all the time so that total memory usage hovers around 15GB out of 16GB installed physical ram & it takes less than 10 seconds on a good dram less NVMe ssd like WD SN770 (SN580 should perform similar) to load hibernated windows.
 
No problem.


I did go through that video & it turn out my laptop does support S3 state but still I think the issue was blown out of proportion. Linus himself mentioned that setting the closing lid action to hibernate will effectively solve this issue but his complaint was that it takes "too long". Well I use hibernation quite often on my laptop with multiple browsers & tabs opened all the time so that total memory usage hovers around 15GB out of 16GB installed physical ram & it takes less than 10 seconds on a good dram less NVMe ssd like WD SN770 (SN580 should perform similar) to load hibernated windows.
YOu may think its blown out of proportion. It isn't. Here is why:
There are several users for whom hibernate does not work out anywhere as well as standby. And use cases for which you necessarily need standby.

What you are doing (or LTT is suggesting) is a completely divergent workaround for a basic problem affecting one of the most core system functionalities - and that is not OK
Standby has been working exactly as expected on MacOS and largely on Linux as well for over 2 decades now.
It used to work fine on windows too till they went into regression sometime circa 2015/2016. Almost 10 years later, it isn't fixed yet

Now you are OK using a workaround to said regression - but that does not mean it is acceptable for other users.

More importantly, i had used standby issues simply as one example to illustrate my primary point which is this:
Not fixing regressions while continuing to add more issues ("features?") - and that to me is what makes the current dev path for windows unacceptable
 
and.. it came back again... i guess its again went back to 9.9.9.9 after virus definition update ..
can someone suggest me how to find permanent solution to this, instead of deleting registry every time.

edit: this time it was only in one location specific to the current adapter under this key,
Code:
\\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\
Until you find the actual culprit and an actual solution, you can use Task Scheduler to run a batch file with Admin privileges, to make the necessary registry settings.

Make it run 1 minute after logging in, and may be once an hour after that

If you want to do it manually, right click on the registry key you modified and select Export. Save the .reg file on the desktop for easy access. Just double click it wherever you want to reapply the change.
 
Not fixing regressions while continuing to add more issues ("features?") - and that to me is what makes the current dev path for windows unacceptable
I understand but like majority of other users I too use windows because of certain software limitations that tie to windows. The harsh truth is that windows is not going anywhere unless apple mac os devices price crash (not gonna happen) or linux become as user friendly/software compatible as windows (even lesser chances of happening). The best one can do is try to live with regressions in windows by using various tricks/methods to minimize their impact as much as possible.
yes just overridden it manually... dont want surprises anymore.
i guess i have to remember this when connecting to any outside network
Forgot to ask earlier, have you also disabled DoH in browser settings as many browsers too nowadays have it enabled by default especially privacy/security focused forks of chromium & firefox.