Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-18
4
Medium Priority
?
315 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 85

Accepted Solution

by:
oBdA earned 900 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 900 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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
#Citrix #Netscaler #MSSQL #Load Balance
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
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…
Suggested Courses

926 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