We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
Changing DNS Server Addresses

st999
Posts: 1,574 Forumite


in Techie Stuff
In Internet Protocol Version 4 DNS server addresses I use 176.103.103.130 and 176.103.103.131 to stop adverts appearing on web pages instead of adblock or other programs in web browsers.
However I occasionally have to go back to Virgins DNS servers as some click adverts cannot be found.
Is there a way to automate the switching on or off of DNS server addresses using a batch file or something similar?
This is in Windows 10.
Control Panel
Network and Sharing Centre
Change Adapter Settings
Properties
Internet Protocol Version 4 (TCP/IPv4)
However I occasionally have to go back to Virgins DNS servers as some click adverts cannot be found.
Is there a way to automate the switching on or off of DNS server addresses using a batch file or something similar?
This is in Windows 10.
Control Panel
Network and Sharing Centre
Change Adapter Settings
Properties
Internet Protocol Version 4 (TCP/IPv4)
0
Comments
-
Why does an adblocker not work for you? Changing the DNS seems overkill. What are you using at the moment? Tried another ad blocker?0
-
You can do it using PowerShell in admin mode eg
Get-DnsClient | Set-DnsClientServerAddress -ServerAddresses ("8.8.8.8","8.8.4.4"
and to reset backGet-DnsClient | Set-DnsClientServerAddress -ResetServerAddresses
Or look here lifewire.com / how-to-change-dns-servers-in-windows-2626242
and remove the spaces4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 + Octopus Intelligent Flux leccy0 -
Why does an adblocker not work for you?
Some sites detect the adblocker and keep popping up pop-ups.Changing the DNS seems overkill.0 -
debitcardmayhem wrote: »You can do it using PowerShell in admin mode eg
Get-DnsClient | Set-DnsClientServerAddress -ServerAddresses ("8.8.8.8","8.8.4.4"
and to reset backGet-DnsClient | Set-DnsClientServerAddress -ResetServerAddresses
Or look here lifewire.com / how-to-change-dns-servers-in-windows-2626242
and remove the spaces
That works perfectly, now to automate it so all I need to do is to click a bat file0 -
If you want to get creative ... make a single BAT file and have 2 desktop shortcuts, whereby each shortcut passes a parameter to the BAT file. The BAT file checks the parameter value then executes the appropriate code.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 349.8K Banking & Borrowing
- 252.6K Reduce Debt & Boost Income
- 453K Spending & Discounts
- 242.8K Work, Benefits & Business
- 619.6K Mortgages, Homes & Bills
- 176.4K Life & Family
- 255.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 15.1K Coronavirus Support Boards