Solved

Configure a NIC with a Static DNS IP and Alternate DNS IP from the dos prompt?

Posted on 2008-06-18
4
303 Views
Last Modified: 2013-11-09
Configure a MIC card with a Static Primarary DNS IP and Alternate DNS IP from the dos prompt? I know that using the netsh command I can configure a Static IP, Subnet Mask and default gateway, but I don't know how to configure a Static Priminary DNS IP, can anyone help?

I want to be able to do this on a Server 2003 system and XP Pro systems.

Below is the command I used to configure the Static IP from dos:
netsh>interface ip set address name ="Local Area Connection" static 168.1.1.25 255.255.255.0 168.1.1.1
I would think that there is a similiar way to do this for a Static DNS ip also?

Thank you,
DSterling
0
Comment
Question by:dsterling
4 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 225 total points
Comment Utility
To define the first DNS server:
netsh interface ip set dns "Local Area Connection" static 1.2.3.4
To define additional DNS servers:
netsh interface ip add dns "Local Area Connection" 1.2.3.5
0
 
LVL 25

Assisted Solution

by:slam69
slam69 earned 225 total points
Comment Utility
type


1.netsh
2.interface ip add dns "local area connection" <IP address of a DNS server>
0
 
LVL 3

Assisted Solution

by:Monaji
Monaji earned 50 total points
Comment Utility
The command is
Netsh interface ip add DNS 1.2.3.4
0
 

Author Closing Comment

by:dsterling
Comment Utility
interface ip add dns "local area connection"  worked great, I could not add an alternate with it, but thats fine for now.  All answers given would work
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now