登錄 PTR 記錄 的登錄值 RegisterReverseLookup電腦HKLM\Software\Policies\Microsoft\Windows NT\DNSClient

原則 ID
DNS_RegisterReverseLookup
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Server 2003 作業系統或 Windows XP Professional
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
網路 › DNS 用戶端

登錄

RegisterReverseLookup

REG_DWORD電腦
啟用時的值
取決於選項值
元素
登錄 PTR 記錄:
選項
項目儲存的值
只在 A 記錄登錄成功時才進行登錄2
登錄1
不要登錄0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient]

; 選項 (只使用其中一個)
; 只在 A 記錄登錄成功時才進行登錄
"RegisterReverseLookup"=dword:00000002
; 登錄
"RegisterReverseLookup"=dword:00000001
; 不要登錄
"RegisterReverseLookup"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 只在 A 記錄登錄成功時才進行登錄
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "RegisterReverseLookup" /t REG_DWORD /d 2 /f
:: 登錄
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "RegisterReverseLookup" /t REG_DWORD /d 1 /f
:: 不要登錄
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "RegisterReverseLookup" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# 選項 (只使用其中一個)
# 只在 A 記錄登錄成功時才進行登錄
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'RegisterReverseLookup' -PropertyType DWord -Value 2 -Force | Out-Null
# 登錄
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'RegisterReverseLookup' -PropertyType DWord -Value 1 -Force | Out-Null
# 不要登錄
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'RegisterReverseLookup' -PropertyType DWord -Value 0 -Force | Out-Null