Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > DNS Server > Re: Switch DNS servers on the fly

Reply
Thread Tools Display Modes

Re: Switch DNS servers on the fly

 
 
Grant Taylor
Guest
Posts: n/a

 
      08-19-2009
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. . . .
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Switch DNS servers on the fly Ace Fekay [MCT] DNS Server 1 08-19-2009 05:07 AM
How to switch servers? Mommio2 Windows Server 4 05-31-2006 07:01 PM
RE: Advice on 3GB switch for file servers Wendel Hamilton Windows Server 0 09-20-2005 12:56 PM
Re: Advice on 3GB switch for file servers Giuseppe Nacci Windows Server 0 09-19-2005 10:09 AM
Servers hang after adding /3GB switch Steve Cody Windows Server 2 03-06-2005 06:51 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59