Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

DNS changer script - netsh

  • 28-12-2012 08:26PM
    #1
    Banned (with Prison Access) Posts: 890 ✭✭✭


    Hi folks, I'm trying to set up a fool proof way to switch dns server for my parents.

    I found out about netsh and figured the best way to do it would be a bat script on the desktop that could be run with admin rights.

    this is what I've come up with
    netsh dnsclient set dnsservers name="Local Area Connection" source=static address=208.67.222.222
    
    this runs without any errors but it does not have any effect on the dns settings.

    I'm stumped, can anyone tell me what I'm doing wrong?

    thanks for reading.


Comments

Advertisement