选择本地连接=>>自动获取DNS服务器地址 [英] select Local Area Connection =>> Obtain DNS Server addresses automatically
本文介绍了选择本地连接=>>自动获取DNS服务器地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在本地连接中选择自动获取DNS服务器地址...
http://upcity.ir/images/83069313380920944438.png [ ^ ]
select "Obtain DNS Server addresses automatically" in Local Area Connection...
http://upcity.ir/images/83069313380920944438.png[^]
推荐答案
您可以使用WMI。有关常规界面设置操作,请参阅此文章:配置TCP / IP设置使用WMI和C# [ ^ ]。使用 EnableDHCP [ ^ ]方法。
[更新]
如果你不想写这样复杂的代码,你也可以打电话给NETSH。请参阅: http://visibleprocrastinations.wordpress .com / 2007/04/20 / using-netsh-to-change-between-dhcp-and-static-ips / [ ^ ]
You can use WMI for that. See this article for general interface settings manipulation: Configuring TCP/IP Settings using WMI and C#[^]. Use EnableDHCP[^] method.
[update]
If you don''t want to write such "complicated" code, you can also call NETSH. See: http://visibleprocrastinations.wordpress.com/2007/04/20/using-netsh-to-change-between-dhcp-and-static-ips/[^]
这篇关于选择本地连接=>>自动获取DNS服务器地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文