Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

using netsh to set LAN dns settings

microsoft.public.windows.vista.networking sharing






Speedup My PC
Reply
  #1 (permalink)  
Old 09-15-2008
 

Join Date: May 2008
Posts: 15
VistaVirgin is on a distinguished road
Thanks: 0
Thanked 1 Time in 1 Post
using netsh to set LAN dns settings
Hi, out there,

I am an installer of wireless high speed systems and have to set IP and DNS addresses to configure these systems.

Does anyone have a usable script to set DNS addresses using netsh. I am currently using netsh to set ip addresses but have yet to be successful setting the DNS addresses.

My current script for IP addresses goes like this:

netsh interface ip set address name="LAN" static xxx.xxx.xxx.xxx 255.255.255.xxx xxx.xxx.xxx.xxx 1

and it seems to work properly. Now I need to know how to set DNS addresses as well.

Any help would be greatly appreciated.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-15-2008
Robert L. \(MS-MVP\)
 

Posts: n/a
Re: using netsh to set LAN dns settings
You may try to use add instead of set. This search result may help

The example of using netsh to configure TCP/IP
http://www.chicagotech.net/Networking/netshexample.htm

--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
"VistaVirgin" <VistaVirgin.3fs104@no-mx.forums.vistaheads.com> wrote in
message news:VistaVirgin.3fs104@no-mx.forums.vistaheads.com...
>
> Hi, out there,
>
> I am an installer of wireless high speed systems and have to set IP and
> DNS addresses to configure these systems.
>
> Does anyone have a usable script to set DNS addresses using netsh. I am
> currently using netsh to set ip addresses but have yet to be successful
> setting the DNS addresses.
>
> My current script for IP addresses goes like this:
>
> netsh interface ip set address name="LAN" static xxx.xxx.xxx.xxx
> 255.255.255.xxx xxx.xxx.xxx.xxx 1
>
> and it seems to work properly. Now I need to know how to set DNS
> addresses as well.
>
> Any help would be greatly appreciated.
>
>
> --
> VistaVirgin
> Posted via http://www.vistaheads.com
>


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

vB 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
netsh and dns settings VistaVirgin Windows Vista Home Premium 0 09-15-2008 12:01
netsh : commande portopening netsh add portopening was not found . Amazighen microsoft.public.fr.windows.vista.securite 0 07-02-2007 16:28
netsh : commande portopening netsh add portopening was not found . Amazighen microsoft.public.fr.windows.vista.reseau 0 07-02-2007 15:52
Clearing IP settings: duplicate ip settings and blank ip settings Tech_vs_Life microsoft.public.windows.vista.general 3 02-28-2007 20:37
Clearing IP settings: duplicate ip settings and blank ip settings Tech_vs_Life microsoft.public.windows.vista.networking sharing 3 12-17-2006 03:42




All times are GMT +1. The time now is 13:52.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120