通过 vnet 将客户端电脑加入到 azure vm 中的域设置
Join client pc to domain setup in azure vm over vnet
我很难尝试将我的计算机连接到我在 Azure VM 中设置的域。我花了几天时间在谷歌上搜索答案,但仍然无法加入。我对网络不是很熟悉,所以希望你们中的一位能指导我朝着正确的方向前进。我正在使用点到站点 vpn。我可以通过 IP 但不能通过主机名 ping AD 服务器。当我尝试加入域时出现此错误:
The query was for the SRV record for _ldap._tcp.dc._msdcs.xxxx.local
Common causes of this error include the following:
- The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server
automatically when a AD DC is added to a domain. They are updated by
the AD DC at set intervals. This computer is configured to use DNS
servers with the following IP addresses:
192.168.250.6 (IP of AD server).
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
我尝试让客户端电脑的 dns 只有广告服务器的 ip,当我这样做时我无法访问互联网或网络。
感谢您的帮助和耐心等待!
可能的原因是P2S客户端在PPP适配器中没有正确的DNS服务器。
网络设置完成后(您将 AD 服务器 IP 地址指向 Azure 虚拟网络的 DNS 服务器设置)。您可以删除VPN客户端,在门户网站重新下载VPN客户端包,重新安装VPN客户端。客户端的 DNS 服务器应显示在适配器上。参考this.
我的P2S客户端输出如下:
这似乎是 DNS 配置错误。我认为您应该查看您的 VNet 配置。
link 可能会有帮助。
另外,我想提醒您,您需要一个 Site-to-Site VPN 才能让计算机加入云上的域。
但是,Azure 还提供了更多解决方案,在 Azure 上拥有一个域控制器,称为 Azure Active Directory 域服务(托管域),它不需要 VPN 连接。
Azure Active Directory Domain Services (Managed Domain)
我很难尝试将我的计算机连接到我在 Azure VM 中设置的域。我花了几天时间在谷歌上搜索答案,但仍然无法加入。我对网络不是很熟悉,所以希望你们中的一位能指导我朝着正确的方向前进。我正在使用点到站点 vpn。我可以通过 IP 但不能通过主机名 ping AD 服务器。当我尝试加入域时出现此错误:
The query was for the SRV record for _ldap._tcp.dc._msdcs.xxxx.local
Common causes of this error include the following:
- The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses:
192.168.250.6 (IP of AD server).
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
我尝试让客户端电脑的 dns 只有广告服务器的 ip,当我这样做时我无法访问互联网或网络。
感谢您的帮助和耐心等待!
可能的原因是P2S客户端在PPP适配器中没有正确的DNS服务器。
网络设置完成后(您将 AD 服务器 IP 地址指向 Azure 虚拟网络的 DNS 服务器设置)。您可以删除VPN客户端,在门户网站重新下载VPN客户端包,重新安装VPN客户端。客户端的 DNS 服务器应显示在适配器上。参考this.
我的P2S客户端输出如下:
这似乎是 DNS 配置错误。我认为您应该查看您的 VNet 配置。 link 可能会有帮助。 另外,我想提醒您,您需要一个 Site-to-Site VPN 才能让计算机加入云上的域。
但是,Azure 还提供了更多解决方案,在 Azure 上拥有一个域控制器,称为 Azure Active Directory 域服务(托管域),它不需要 VPN 连接。 Azure Active Directory Domain Services (Managed Domain)