通过vnet将客户端PC加入到Azure虚拟机中的域设置中

时间:2018-08-30 13:04:53

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

尝试将计算机连接到在Azure虚拟机中设置的域时遇到了非常困难的时间。我花了几天时间搜寻答案,但仍然无法加入。我对网络不是很熟悉,因此希望你们中的一个可以引导我朝着正确的方向发展。我正在使用指向站点VPN的点。我可以通过IP ping AD服务器,但不能通过主机名ping通。当我尝试加入域时,出现此错误:

  

查询用于_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 /所有客户端计算机:

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

我尝试使客户端PC的dns仅具有广告服务器的ip,当我这样做时,我无法访问Internet或网络。

感谢您的帮助和耐心!

2 个答案:

答案 0 :(得分:2)

这似乎是DNS错误配置。我认为您应该查看您的VNet配置。 这个link可能会有所帮助。 另外,我想提醒您,您需要站点到站点VPN才能将计算机加入到云中的域中。

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

答案 1 :(得分:0)

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

一旦网络完全设置好(将AD服务器IP地址指向Azure虚拟网络的DNS服务器设置)。您可以删除VPN客户端,在门户上重新下载VPN客户端软件包,然后重新安装VPN客户端。客户端的DNS服务器应显示在适配器上。请参阅this

我的P2S客户端输出如下: enter image description here

更多详细信息:Azure Point 2 Site VPN: DNS config is wrong

相关问题