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