using netsh to set LAN dns settings

Posted: 09-15-2008, 12:13 PM

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

Responses to "using netsh to set LAN dns settings"

Robert L. \(MS-MVP\)
Guest
Posts: n/a
 
Re: using netsh to set LAN dns settings
Posted: 09-15-2008, 05:31 PM
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
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
NETSH help freesing Windows XP Embedded 5 04-10-2008 10:04 PM
Netsh and Network Carsten Troeller Windows XP Embedded 1 04-10-2006 09:09 AM
Netsh Errors Richard Windows XP Embedded 3 10-25-2004 01:03 PM
NETSH Sherwood Windows XP Network & Web 1 12-03-2003 01:17 AM
netsh tool ? serge calderara Windows XP Network & Web 1 11-11-2003 07:35 AM