我的域控制器的反向查找不起作用。
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Install-WindowsFeature DNS -IncludeManagementTools}
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Add-DnsServerPrimaryZone -Name gj2corp.com -ZoneFile 'gj2corp.com.dns'}
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Add-DnsServerPrimaryZone -NetworkID 192.168.64.0/24 -ZoneFile '64.168.192.in-addr.arpa.dns'}
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Add-DnsServerForwarder -IPAddress 8.8.8.8 -PassThru}
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Set-DnsServerPrimaryZone -Name gj2corp.com -DynamicUpdate 'NonsecureAndSecure' -PassThru}
Invoke-Command -Credential $Cred -VMName $vmname -ScriptBlock {Set-DnsServerPrimaryZone -Name '64.168.192.in-addr.arpa' -DynamicUpdate 'NonsecureAndSecure' -PassThru}
如果我手动为其添加 PTR 记录,那么它就可以正常工作。我是否必须手动添加它?
在 Windows 2016 和 2019 上尝试过