So I used the command: netsh int ipv4 reset and got error resetting, failed and access is denied, for the last two entries. So upon searching I found that I just needed to give proper admin access to the folder: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi{eb004a00-9b1a-11d4-9123-0050047759bc}" in the registry. But upon going there, I noticed there were multiple instances of the folder: "{eb004a00-9b1a-11d4-9123-0050047759bc}" I did everything I could such as checked there are no local group policies configured, uninstalled/reinstalled the adapters, updated the adapter drivers.
I added these commands in elevated administration in CMD. (Not sure what they do though)
ipconfig /flushdns
nbtstat -R
nbtstat -RR
netsh int ip reset resetlog.txt
netsh int ipv4 reset
netsh int ipv6 reset
netsh winsock reset
I also did the "IP /release", "IP /renew"
I just want to use cloudflare's dns servers for IPV6 and have my data encrypted, everything worked fine for IPV4, can't understand why this is happening. I heard it could be due to malware, and indeed I found malware on my computer a few weeks back and then, I reinstalled my windows 11 yesterday.
Though since I didn't had a clean machine, I was advised by a Microsoft's assistant (Sunny) that it was okay to do the download of the media creation tool, and create it on my infected machine. (I did a system reset before doing that, and disconnected from the internet, also disabled autoplay.) So I downloaded the media creation tool, on my machine and ran it inside my USB, while being on safe mode.
Any help is appreciated, thanks.
***Moved from Windows / Windows 11 / Performance and system failures***