Win7 DNS的设置问题
win7的DNS手动设置完了,总会在重新启动或者是更换网络的时候,DNS就被覆盖冲洗掉了。被迫采用下面的这段批处理
======================================================================
::set NIC DNS *wharton
netsh interface ipv4 set dnsserver "Local Area Connection" source=static addr=x.x.x.x
netsh interface ipv4 add dnsserver "Local Area Connection" addr=x.x.x.x index=2
::set wireless NIC DNS *wharton
netsh interface ipv4 set dnsserver "Wireless Network Connection" source=static addr=x.x.x.x
netsh interface ipv4 add dnsserver "Wireless Network Connection" addr=x.x.x.x index=2
pause
======================================================================
这个bat文件写完后,需建立一个shortcut,然后在shortcut的advanced属性里,将Run as Administrator之前的小方块勾上,以取得必要的权限。要么就会有UAC的问题。。
阅读(2526) | 评论(0) | 转发(0) |