【问题标题】:Join client pc to domain setup in azure vm over vnet通过 vnet 将客户端 pc 加入 azure vm 中的域设置
【发布时间】:2019-02-05 10:43:22
【问题描述】:

我在尝试将我的计算机连接到我在 azure VM 中设置的域时遇到了困难。我花了几天时间在谷歌上搜索答案,但仍然无法加入。我对网络不是很熟悉,所以希望你们中的一个人能引导我朝着正确的方向前进。我正在使用指向站点的 vpn。我可以通过 IP ping AD 服务器,但不能通过主机名。当我尝试加入域时,我收到此错误:

查询的是 _ldap._tcp.dc._msdcs.xxxx.local 的 SRV 记录

此错误的常见原因包括:

  • 为域定位 AD DC 所需的 DNS SRV 记录未在 DNS 中注册。这些记录在 DNS 服务器上注册 将 AD DC 添加到域时自动执行此操作。它们由 AD DC 在设定的时间间隔。此计算机配置为使用 DNS 具有以下 IP 地址的服务器:

192.168.250.6(AD 服务器的 IP)。

ipconfig /all 客户端机器:

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : hsd1.nj.net
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-LM
   Physical Address. . . . . . . . . : C8-5B-76-D0-FA-4D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.119(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, August 28, 2018 4:33:23 PM
   Lease Expires . . . . . . . . . . : Friday, August 31, 2018 8:27:41 AM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

PPP adapter b2wise-vnet-weu:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : xxx-vnet-weu
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.252.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . :
   NetBIOS over Tcpip. . . . . . . . : Enabled

ipconfig /所有广告服务器

Ethernet adapter Ethernet 2:

   Connection-specific DNS Suffix  . : eypda44s54judkzq3onclf52qb.ax.internal.cloudapp.net
   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter #2
   Physical Address. . . . . . . . . : 00-0D-3A-44-50-8B
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.250.6(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, August 30, 2018 12:32:05 PM
   Lease Expires . . . . . . . . . . : Sunday, October 6, 2154 7:29:42 PM
   Default Gateway . . . . . . . . . : 192.168.250.1
   DHCP Server . . . . . . . . . . . : 168.63.129.16
   DNS Servers . . . . . . . . . . . : 127.0.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

我尝试让客户端电脑的 dns 只有广告服务器的 ip,但当我这样做时,我无法访问互联网或网络。

感谢您的帮助和耐心!

【问题讨论】:

  • 你可以在客户端的备用dns服务器中添加广告服务器ip吗? dns服务器的xxxx.local区有A记录吗?
  • @NancyXiong-MSFT - 我将广告服务器的 ip 添加为客户端的备用 dns 服务器,结果相同。我查看了dns,确实看到了A记录。这是dns设置的截图。 ibb.co/c6t6dU(感谢您的帮助!)

标签: dns active-directory azure-virtual-network azure-vpn


【解决方案1】:

可能的原因是 P2S 客户端在 PPP 适配器中没有正确的 DNS 服务器。

网络设置完成后(将 AD 服务器 IP 地址指向 Azure 虚拟网络的 DNS 服务器设置)。您可以移除 VPN 客户端,在门户网站上重新下载 VPN 客户端包,然后重新安装 VPN 客户端。客户端的 DNS 服务器应显示在适配器上。参考this

我的 P2S 客户端输出如下:

更多详情:Azure Point 2 Site VPN: DNS config is wrong

【讨论】:

    【解决方案2】:

    这似乎是 DNS 配置错误。我认为您应该查看您的 VNet 配置。 这个link 可能会有所帮助。 另外,我想提醒您,您需要一个 Site-to-Site VPN 才能让一台计算机加入云上的域。

    但是,Azure 还提供了更多解决方案,在 Azure 上拥有一个域控制器,这称为 Azure Active Directory 域服务(托管域),它不需要 VPN 连接。 Azure Active Directory Domain Services (Managed Domain)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-29
      • 2021-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多