Networking Forums

Networking Forums > Computer Networking > Windows Networking > Setting DNS for an interface ?

Reply
Thread Tools Display Modes

Setting DNS for an interface ?

 
 
Polaris
Guest
Posts: n/a

 
      10-07-2005, 07:51 AM
Hello experts:

Is there an API (not WMI) allows me to set DNS for a particular network
interface on Windows-XP ?

Thanks in advance!
Polaris


 
Reply With Quote
 
 
 
 
Wendel Hamilton
Guest
Posts: n/a

 
      10-07-2005, 12:37 PM
Hi I think it is one of those parameters that you can only change in the
registry or WMI
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Services\Tcpi p\Parameters\Interfaces\{Adapter GUID} NameServer=10.10.10.1

"Polaris" wrote:

> Hello experts:
>
> Is there an API (not WMI) allows me to set DNS for a particular network
> interface on Windows-XP ?
>
> Thanks in advance!
> Polaris
>
>
>

 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      10-08-2005, 12:31 PM
In news:%(E-Mail Removed),
Polaris <(E-Mail Removed)> made this post, which I then commented about
below:
> Hello experts:
>
> Is there an API (not WMI) allows me to set DNS for a particular
> network interface on Windows-XP ?
>
> Thanks in advance!
> Polaris


Other than WMI, using a reg file, and/or using regini, you can also use
netsh. Here are some links on it.

242468 - How to Use the Netsh.exe Tool and Command-Line Switches:
http://support.microsoft.com/?id=242468

IP from the Command Prompt:
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

Microsoft Windows XP - Netsh commands for Interface IP:
http://www.microsoft.com/resources/d...-us/netsh.mspx

Chicagotech.net - netsh command:
http://www.chicagotech.net/netsh.htm

Cheers!

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

If this post is viewed at a non-Microsoft community website, and you were to
respond to it through that community's website, I may not see your reply
unless that website posts replies back to the original Microsoft forum.
Therefore, please direct all replies ONLY to the Microsoft public newsgroup
this thread originated in so all can benefit or ensure the web community
posts it back to the original forum.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft Windows MVP - Windows Server - Directory Services
Microsot Certified Trainer
Infinite Diversities in Infinite Combinations.
=================================


 
Reply With Quote
 
Polaris
Guest
Posts: n/a

 
      10-11-2005, 05:13 AM
Thanks guys for your help.
Polaris
"Ace Fekay [MVP]"
<PleaseSubstituteMyActualFirstName&LastNameHere@ho tmail.com> wrote in
message news:(E-Mail Removed)...
> In news:%(E-Mail Removed),
> Polaris <(E-Mail Removed)> made this post, which I then commented
> about below:
>> Hello experts:
>>
>> Is there an API (not WMI) allows me to set DNS for a particular
>> network interface on Windows-XP ?
>>
>> Thanks in advance!
>> Polaris

>
> Other than WMI, using a reg file, and/or using regini, you can also use
> netsh. Here are some links on it.
>
> 242468 - How to Use the Netsh.exe Tool and Command-Line Switches:
> http://support.microsoft.com/?id=242468
>
> IP from the Command Prompt:
> http://www.petri.co.il/configure_tcp_ip_from_cmd.htm
>
> Microsoft Windows XP - Netsh commands for Interface IP:
> http://www.microsoft.com/resources/d...-us/netsh.mspx
>
> Chicagotech.net - netsh command:
> http://www.chicagotech.net/netsh.htm
>
> Cheers!
>
> --
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> If this post is viewed at a non-Microsoft community website, and you were
> to respond to it through that community's website, I may not see your
> reply unless that website posts replies back to the original Microsoft
> forum. Therefore, please direct all replies ONLY to the Microsoft public
> newsgroup this thread originated in so all can benefit or ensure the web
> community posts it back to the original forum.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
> Microsoft Windows MVP - Windows Server - Directory Services
> Microsot Certified Trainer
> Infinite Diversities in Infinite Combinations.
> =================================
>
>



 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      10-11-2005, 10:53 AM
In news:%(E-Mail Removed),
Polaris <(E-Mail Removed)> made this post, which I then commented about
below:
> Thanks guys for your help.
> Polaris


NP

Ace


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting/setting eth frame interface for raw socket boltar2003@yahoo.co.uk Linux Networking 1 09-30-2009 11:54 AM
setting up lax security on one ethernet interface while leaving theother strict dan Linux Networking 8 09-30-2008 12:30 AM
Network interface bandwidth setting Ben B Linux Networking 5 01-05-2004 01:12 PM
Suse 8.2: Setting up an ethernet-interface without an ip-address xantos Linux Networking 3 10-29-2003 01:48 PM
setting an interface for up traffic and a second for down traffic eole Linux Networking 1 07-17-2003 05:31 PM



1 2 3 4 5 6 7 8 9 10 11