Difference between revisions of "Dns registration in windows"
Jump to navigation
Jump to search
(Created page with "``` $dnsRegistrationInterval = Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'RegistrationRefreshInterval' Write-Host "Current DNS Re...") |
(No difference)
|
Latest revision as of 23:28, 8 March 2024
$dnsRegistrationInterval = Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'RegistrationRefreshInterval' Write-Host "Current DNS Registration Interval: $($dnsRegistrationInterval.RegistrationRefreshInterval) seconds"
Set to 1 hour instead of 1 day default
$newInterval = 3600 Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'RegistrationRefreshInterval' -Value $newInterval Write-Host "DNS Registration Interval updated to $newInterval seconds"