Specific DNS setting for one Wifi connection

3

4

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?

Basj

Posted 2016-09-12T08:54:42.220

Reputation: 1 356

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 – 2016-09-12T09:16:34.790

Answers

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".

hagier

Posted 2016-09-12T08:54:42.220

Reputation: 197