3

I use this as main DNS setting for all my internet connections:

enter image description here

One specific Wifi network doesn't accept me if I use this DNS, it only works if I use "Obtain DNS server address automatically".

enter image description here

How to configure DNS setting for one specific Wifi connection?

  • I don't think it's possible unless you try the "Alternate configuration" tab or you write a script that you double click when you connect to this particular network to set the DNS to "auto". – Kinnectus Sep 12 '16 at 9:16
5

You can use PowerShell to configure your network. You can use these combinations to manually set addresses and reset them to automatic:

Get-NetAdapter -Name "Your_Network_Adapter_Name" | Set-DnsClientServerAddress -ServerAddresses 8.8.8.8,8.8.4.4

Get-NetAdapter -Name "Your_Network_Adapter_Name" | Set-DnsClientServerAddress -ResetServerAddresses

You should add some conditional statements to determine which network you're connecting to.

How to run them automatically when you connect? You can use system events log and Windows scheduler. I can't provide you every needed information (whole solution) but I can give you some starting points.

This is how you run PowerShell scripts with Windows scheduler.

This is how you determine if you connected to network using events log.

You should setup scheduler job to run when triggered by event.

I'm assuming that you have intermediate knowledge about computers, because you're changing DNS settings for your needs. If you don't, just change adapter settings to "automatic".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.