Solved

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

Posted on 2008-06-18
4
306 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 84

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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