我的一个用户带着他的笔记本电脑进出办公室。 在办公室,我们必须指定DNS才能正确访问服务器。
有没有一个简单的方法来切换不同的DNS设置,而我的用户不得不记得如何更改DNS设置?
用户正在使用Windows 7连接到Windows Server 2003的域
您的DHCP服务器应configuration为提供您的DNS服务器的地址,当它响应一个IP请求。
用户的笔记本电脑应configuration为自动获取DNS(从DHCP)。
为用户创build两个batch file,以便在需要使用以下方法更改DNS设置时运行:
> netsh interface ip set dns name="[name of network connection]" static [DNS IP address] > netsh interface ip set dns name="[name of network connection]" static [second DNS IP address] index=2