Setting DNS for an interface ?

  • Thread starter Thread starter Polaris
  • Start date Start date
P

Polaris

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
 
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\Tcpip\Parameters\Interfaces\{Adapter GUID} NameServer=10.10.10.1
 
In
Polaris said:
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/documentation/windows/xp/all/proddocs/en-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.
=================================
 
Back
Top