Solved

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

Posted on 2008-06-18
4
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Network Switches Keep Failing 8 104
Receiving wifi on an underground station 22 124
cannot reinstall windows xp from cd on dell e520 cpu. 13 61
SSIS Paramater on start 2 22
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

763 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