更改DNS后的Azure VM断开连接

发布于 2025-01-20 12:57:45 字数 71 浏览 5 评论 0 原文

我有一个运行Windows 10的公共Azure VM实例。我将DNS更改为Google DNS,然后丢失了RDP连接。为什么?

I have an public Azure VM instance running Windows 10 . I changed the DNS to Google DNS and I loose RDP connection. Why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若相惜即相离 2025-01-27 12:57:45

在更改DNS服务器时,请按以下步骤操作:

  • 可以通过 azure portal或powerShell更改DNS服务器。
  • Azure Portal ,导航到VNET,单击DNS服务器并输入DNS Server IPS。
  • 更改DNS后,虚拟机需要 重新启动 。确保重新启动VM。
  • 可以在虚拟机的 NIC上完成此更改 不在OS级别上。
  • 如果重新启动无法恢复连接性,请调整虚拟机 。这应该返回您定义的RDP和DNS条目。
  • 尝试 重新运输 虚拟机。
  • 否则,请尝试重置 远程桌面配置。
  • 尝试检查网络安全组规则。
  • 尝试 为VM重置NIC

要详细了解更多信息,请请参阅下面的链接:

失去与Azure vm的连接性失去与Azure VM的连接性,在更改DNS后自动获得DNS-microsoft-microsoft-microsoft-m microsoft-q q&amp q&amp q&

无法与rdp连接到azure in Windows vm - 虚拟机| Microsoft Docs

While changing the DNS servers, please follow below steps:

  • Changing the DNS servers to Google DNS servers can be done via Azure portal or PowerShell.
  • From Azure Portal, Navigate to your VNET, click on DNS servers and enter the DNS server IPs.
  • After doing changes to DNS, Virtual Machine need a reboot. Make sure to reboot the VM.
  • This change can be done on the NIC of Virtual Machine not on the OS level.
  • Resize the Virtual Machine, if reboot doesn't restore connectivity. This should return the RDP and the DNS entry you defined.
  • Try redeploying the Virtual machine.
  • Otherwise, Try resetting the Remote Desktop configuration.
  • Try Checking the Network Security Group rules.
  • Try Resetting the NIC for the VM.

To know more in detail, please refer below links:

Lost connectivity to Azure VM after changing DNS to automatically obtain DNS - Microsoft Q&A.

Cannot connect with RDP to a Windows VM in Azure - Virtual Machines | Microsoft Docs

VM getting disconnected after changing preferred DNS IP (microsoft.com).

Change VM DNS Servers - Microsoft Q&A.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文