每次重新启动后计算机都退出域

-1 networking windows active-directory domain-name windows-server-2012-r2

这是我的配置:

controller.mydomain.local (Domain Controller)
     IP Address   : 192.168.1.1/24

computer1.mydomain.local
     IP Address   : 192.168.1.2/24 
     DNS Server 1 : 192.168.1.1 
     DNS Server 2 : 8.8.8.8 

computer2.mydomain.local
     IP Address   : 192.168.1.3/24 
     DNS Server 1 : 192.168.1.1 
     DNS Server 2 : 8.8.8.8
Run Code Online (Sandbox Code Playgroud)

所有这些计算机都有相同的用户名和密码。每次重新启动后,我无法 ping computer2.mydomain.localor computer1.mydomain.localor controller.mydomain.localfrom computer1and computer2。我需要禁用和启用网络适配器 2 或 3 次,有时我需要重新启动一次才能 ping 域名或计算机名称。

Esa*_*nen 5

不,您的计算机不会退出域,即从您的 Active Directory 中消失。这里问题仅与您的 DNS 配置有关。我相信这ipconfig /all表明:

Ethernet adapter Local Area Network:

   Connection-specific DNS Suffix  . : mydomain.local
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.???
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 192.168.1.1
                                       8.8.8.8
   NetBIOS over Tcpip. . . . . . . . : Enabled
Run Code Online (Sandbox Code Playgroud)

这里的问题是您的 DHCP 服务器将Google 公共 DNS 8.8.8.8作为第二个 DNS 服务器。Google 公共 DNS 对您的本地 DNS 名称一无所知。每次客户端计算机尝试computer2.mydomain.local从那里查找时,它都注定要失败。每当来自第一个 DNS 服务器的响应时间超过一秒时,就会发生这种情况。

每次您重新启动/禁用和启用适配器/拔出和插入电缆时,它都会刷新 DNS 缓存,这使您相信它解决了问题,而客户端只是暂时获得了这两者中更好的条件,即唯一具有mydomain.local区。

转到 管理工具> DHCP > controller.mydomain.local>适用范围 [192.168.1.0]>范围选项,并删除 8.8.8.8006 DNS Servers。(您还应该在那里添加另一个域控制器,因为您始终应该至少有两个域控制器。)

然后,如果您希望在8.8.8.8某处使用,请将其添加为DNS 服务器中转发器