We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
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 tracker again+ Octopus Intelligent Flux leccy
CEC Email energyclub@moneysavingexpert.com0 -
Why does an adblocker not work for you?
Some sites detect the adblocker and keep popping up pop-ups.
I read it in a magazine and thought it might be better than an adblocker.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
- 353.5K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards
