Solved

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

Posted on 2008-06-18
4
304 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 83

Accepted Solution

by:
oBdA earned 225 total points
ID: 21811843
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
ID: 21811861
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
ID: 21812084
The command is
Netsh interface ip add DNS 1.2.3.4
0
 

Author Closing Comment

by:dsterling
ID: 31468296
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Before I go to far, let's explain HA (High Availability) and why you should consider it.  High availability is the mechanism used to provide redundancy to any service at the same site and appears as a single service to the users of that service.  As…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

22 Experts available now in Live!

Get 1:1 Help Now