Tech Support > Microsoft Windows > Networking > Setting DNS for an interface ?
Setting DNS for an interface ?
Posted by Polaris on October 7th, 2005


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


Posted by Wendel Hamilton on October 7th, 2005


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
>
>
>

Posted by Ace Fekay [MVP] on October 8th, 2005


In news:%23khE5PxyFHA.2960@tk2msftngp13.phx.gbl,
Polaris <etpolaris@hotmail.com> 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.
=================================


Posted by Polaris on October 11th, 2005


Thanks guys for your help.
Polaris
"Ace Fekay [MVP]"
<PleaseSubstituteMyActualFirstName&LastNameHere@ho tmail.com> wrote in
message news:uANHCRAzFHA.2072@TK2MSFTNGP14.phx.gbl...
> In news:%23khE5PxyFHA.2960@tk2msftngp13.phx.gbl,
> Polaris <etpolaris@hotmail.com> 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.
> =================================
>
>



Posted by Ace Fekay [MVP] on October 11th, 2005


In news:%23yZKLKizFHA.268@TK2MSFTNGP09.phx.gbl,
Polaris <etpolaris@hotmail.com> made this post, which I then commented about
below:
> Thanks guys for your help.
> Polaris


NP

Ace



Similar Posts