On 8/17/2009 7:18 PM, Jordan wrote:
> How can I change my primary DNS server with a batch file or something
> so instead of pointing to my home ISPs DNS server first it will point
> to the DNS server of my VPN connection?
Use a command like the following in a batch / command file:
netsh interface ip set dns "Local Area Connection" static a.b.c.d
You can return your system to use DHCP for DNS with the following command:
netsh interface ip set dns "Local Area Connection" dynamic
Of course, adjust "Local Area Connection" to reflect the interface you
want to change.
Grant. . . .
|