DNS aanpassen via script

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Lekkerbek312
  • Registratie: April 2002
  • Laatst online: 20-09 10:57
Misschien zit ik in het verkeerde deel van het forum, dan bij deze mijn excuus.

Ik probeer een bat file te maken die de DNS settings aanpast. Ik gebruik de volgende code:

netsh interface ip set dns "Wired Ethernet Connection" static 109.123.111.24

Ik krijg dan de foutmelding:

"De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist".

Weet iemand wat ik fout doe?

Doel is om snel te switchen tussen Netflix USA en Netflix lokaal.

Acties:
  • 0 Henk 'm!

  • ictinteresse
  • Registratie: Februari 2011
  • Laatst online: 06-10 22:20
netsh interface ip set address name="Wired Ethernet Connection" source=static addr=192.168.2.12 mask=255.255.255.0 gateway=192.168.2.1

Moet het niet zoiets zijn? IPadressen zijn willekeurig uiteraard

Acties:
  • 0 Henk 'm!

  • LnC
  • Registratie: Juni 2005
  • Laatst online: 03-08 11:16

LnC

The offending line...

Is dit programma: DNS Jumper een goede tweede optie?
Niet zelf getest btw :)

Acties:
  • 0 Henk 'm!

  • Fish
  • Registratie: Juli 2002
  • Niet online

Fish

How much is the fish

en hoe heet je netwerk? dan heet die wel Wired Ethernet Connection? of heet die gewoon "Local Area Connection" oid .

Iperf


Acties:
  • 0 Henk 'm!

  • Brahiewahiewa
  • Registratie: Oktober 2001
  • Laatst online: 30-09-2022

Brahiewahiewa

boelkloedig

C:\Windows\system32>netsh
netsh>int
netsh interface>ip
netsh interface ipv4>set

The following commands are available:

Commands inherited from the netsh context:
set file       - Copy the console output to a file.
set machine    - Sets the current machine on which to operate.
set mode       - Sets the current mode to online or offline.

Commands in this context:
set address    - Sets the IP address or default gateway to an interface.
set compartment - Modifies compartment configuration parameters.
set dnsservers - Sets DNS server mode and addresses.
8< kinpperdeknip >8

QnJhaGlld2FoaWV3YQ==


Acties:
  • 0 Henk 'm!

  • Fish
  • Registratie: Juli 2002
  • Niet online

Fish

How much is the fish

xp

The following commands are available:

Commands inherited from the netsh context:
set file       - Copy the console output to a file.
set machine    - Sets the current machine on which to operate.
set mode       - Sets the current mode to online or offline.

Commands in this context:
set address    - Sets the IP address or default gateway to the specified interface.
set dns        - Sets DNS server mode and addresses.
set wins       - Sets WINS server mode and addresses.

Iperf


Acties:
  • 0 Henk 'm!

  • ImNotnoa
  • Registratie: September 2011
  • Niet online
Aangezien het om netflix gaat :

http://tunlr.net/
https://mediahint.com/
https://hola.org

Vooral Hola en mediahint vind ik fijn werken, Hola heeft mijn voorkeur maar er is wel een account voor nodig

[ Voor 47% gewijzigd door ImNotnoa op 08-01-2014 16:04 ]

Try SCE to Aux


Acties:
  • 0 Henk 'm!

  • Lekkerbek312
  • Registratie: April 2002
  • Laatst online: 20-09 10:57
Dank allen. Het moest uiteindelijk het volgende worden:

netsh int ip set dnsservers "Ethernet" static 109.123.111.24

Je moet hem trouwens wel als administrator runnen anders doet ie het niet.

Mediahint kan inderdaad wel, maar dan moet ik kijken via de browser (en kan ik hem nog steeds niet terugzetten naar NL). Ik gebruik echter de windows 8 tile.

Weet iemand toevallig of je een bestaande tile in windows 8 kan editten? Ik wil eigenlijk 2 tiles hebben:

1: Netflix USA -> start eerst script om DNS aan te passen naar USA, start daarna Netflix
2. Netflix NL -> start eerst script om DNS aan te passen naar DHCP, start daarna Netflix

[ Voor 4% gewijzigd door Lekkerbek312 op 09-01-2014 11:19 ]

Pagina: 1