How to alter DNS with CMD command?

  • Thread starter Thread starter An
  • Start date Start date
I may give it a try. I have a copy thru my MSDN subscription.

I thought you might -- not sure if it is worth $100 yet (but then
if it does what I want it is worth at least $500.)
The only thing
I don't like its that it's another app running in the background.

Well, it is really just another running ap as it is something that
stays up like Outlook and Excel, although it has some popup
hotkey stuff (I don't use that much, probably should.)
Obi
mentioned one awhile back that integrates with IE, but I can't remember what
it's called. I'm building a new dual Xeon with a Raid5 1.2 terabytes of
storage (need it to store my classroom Ghost images and be able to run
multiple VPCs without taxing the system too much). I may go with OneNote
when I get that completed.

It is a great way to record and store all those odd pieces of data
we run into on the web and in email.

If you can find something better then I will try it.

This is one of those apps that no one 'gets' until they use it --
then like Excel (remember: "What's a spreadsheet for?") or
email (I can just call them...), or even IE and the web itself
people cannot live without them. said:
In the meantime, I'll just keep chugging along with this old flathead V8
(Bonnie and Clyde's choice)...

Hey, I still have a couple of machines I LIKE that run processors
measured in 100's of Mhz.

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]

"Ace Fekay [MVP]"
 
It should be the same one shown by IPConfig /all when
the Dial is connected, and maybe Network and Dialup
Connections shows it correctly too.

Don't know about the error unless it is something
stupid like the command prompt not understanding your
non-English characters....
 
What is the interface name?
This is the IPConfig /all reply:
---------------------------------------------------------------------------
Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : bzmc-01
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

PPP adapter 6413:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 211.64.56.243
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.64.56.243
DNS Servers . . . . . . . . . . . : 211.64.56.1
211.64.57.1
NetBIOS over Tcpip. . . . . . . . : Disabled
 
What is the interface name?
PPP adapter 6413:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface

"WAN (PPP/SLIP) Interface"

When you use it on the command line it will require
quotes since it has spaces and parens.
 
I have tried many of the posible names,all with quotes.
"WAN (PPP/SLIP) Interface","6413",etc.
They are all invalid interface names.
 
There is only one exception, use NULL name:
add dns "" 211.64.56.2
The reply is "Error when get configuration from interface "
Just like the error message from DUMP command.
---------------------------------------------------------
 
Have you dumped it while the connection is ACTIVE?

The name it uses in the dump is the one it expects when you exec.
 
Herb said:
I thought you might -- not sure if it is worth $100 yet (but then
if it does what I want it is worth at least $500.)


Well, it is really just another running ap as it is something that
stays up like Outlook and Excel, although it has some popup
hotkey stuff (I don't use that much, probably should.)


It is a great way to record and store all those odd pieces of data
we run into on the web and in email.

If you can find something better then I will try it.

This is one of those apps that no one 'gets' until they use it --
then like Excel (remember: "What's a spreadsheet for?") or
email (I can just call them...), or even IE and the web itself


Hey, I still have a couple of machines I LIKE that run processors
measured in 100's of Mhz.

I still have a couple laying around. I just threw out literally in the
trash, an old Dell GXA 166mhz. I'm sure someone snagged it driving by!

If I find something different, I'll let you know.
 
An said:
What is the interface name?
This is the IPConfig /all reply:
---------------------------------------------------------------------------
Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : bzmc-01
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

PPP adapter 6413:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 211.64.56.243
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.64.56.243
DNS Servers . . . . . . . . . . . : 211.64.56.1
211.64.57.1
NetBIOS over Tcpip. . . . . . . . : Disabled

----------------------------------------------------------------------------

I would think it's "PPP adapter 6413", but not sure with dialup adapters.
When I ran a dump, it told me "Local Area Connection", which is my
connection name, which happens to be the default. It's what you call it in
Network & Dialup Connections window. But like I said, not sure about
dialup/ppp connections.

Ace
 
An said:
Thank you,Ace and Herb,for your answer to my question.
I have found it pretty good to "talk" to you.Now there
is a new question here.

My pleasure!

Ace
 
I would think it's "PPP adapter 6413", but not sure with dialup adapters.
When I ran a dump, it told me "Local Area Connection", which is my
connection name, which happens to be the default. It's what you call it in
Network & Dialup Connections window. But like I said, not sure about
dialup/ppp connections.

You are correct -- I went through this before and forgot.

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]

"Ace Fekay [MVP]"
 
"PPP adapter 6413" is my second trying name,invalid.
May be it is a bug.
-----------------------------------------------------
 
An said:
"PPP adapter 6413" is my second trying name,invalid.
May be it is a bug.

What software is creating that adapter?

Usually MS dial/vpn's have a NDIS_WAN in the name
(the last time I looked.)

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]
 
An said:
"PPP adapter 6413" is my second trying name,invalid.
May be it is a bug.

What software is creating that adapter?

Usually MS dial/vpn's have a NDIS_WAN in the name
(the last time I looked.)

Show me the "netsh interface ip dump >t.txt" file --
paste it in from the file; please don't type it or change
it, or use a graphic.

Do this while connected.

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]
 
"netsh interface ip dump >t.txt" result:

# ----------------------------------
# ½Ó¿Ú IP ÅäÖÃ
# ----------------------------------
pushd interface ip

´Ó½Ó¿Ú {93856A9A-802A-427A-A2FF-777CF57974FE} »ñÈ¡ÅäÖÃʱ³öÏÖ´íÎó¡£



popd
# ½Ó¿Ú IP ÅäÖýáÊø
 
"netsh interface ip dump >t.txt" result:
# ----------------------------------
# ½Ó¿Ú IP ÅäÖÃ
# ----------------------------------
pushd interface ip

´Ó½Ó¿Ú {93856A9A-802A-427A-A2FF-777CF57974FE} »ñÈ¡ÅäÖÃʱ³öÏÖ´íÎó¡£



popd
# ½Ó¿Ú IP ÅäÖýáÊø

What's you Encoding? Or national language so I can guess
the encoding maybe....

All I saw above was 'letter salad' so I need to pull down the
menu Format->Encoding and choose something to let me see
this.

You may have a character set bug too. Something about your
national version of Windows and the command line tools.
 
An said:
The Windows2000 Version is Simplified Chinese.

My experience (in addition to the English version)
is mostly with the MUI, and that mostly in French,
German, and Arabic so there isn't much I can say
to help if I cannot read the output.

I am sorry.

Does the NetSH dump give something that makes sense
to YOU (or other Chinese speakers)?

If so, does it work to just Exec it back into the machine?

If not, it is a bug -- you can report it that way.

Dump and Exec should work together even if you cannot
edit the intermediate file.

Set it up manually for one network, dump it. Set it up
for the other(s) and dump it(them).

Now you can exec the machine back to any previous
state.
 
Thanks,that's enough.My main purpose is to know the comman
format,being able to use it in broadband connection is much
better than in dial connection.I have learned a lot.
Thanks once more in our chinese way!
 
No, but I've been thinking about other ways to organize this mess. I have
over 5500 favorites. I use CopyURL to copy/paste the links to text (such as
in a post), but it's cumbersome having that many. Sometimes I think the
system gets hung when parsing them sometimes.

Thanks for the suggestion -- already found some lost nuggets
of gold due to your suggestion and using the program.

NoNags (I haven't used them in months, maybe years.)

--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]

"Ace Fekay [MVP]"
 
Back
Top