Dns registration in windows

From UVOO Tech Wiki
Revision as of 23:28, 8 March 2024 by Busk (talk | contribs) (Created page with "``` $dnsRegistrationInterval = Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'RegistrationRefreshInterval' Write-Host "Current DNS Re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$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"