Re-register this computer in Windows DNS (ipconfig /registerdns)
Manually refresh DHCP leases and re-register the machine's DNS records so other hosts can resolve its hostname again after an IP change.
01Command
$ ipconfig /registerdns02What it does
In Active Directory domains, clients register their A/AAAA records in DNS automatically, but stale entries after a DHCP or VPN change can make the machine unreachable by name. /registerdns triggers that registration immediately instead of waiting for the periodic refresh cycle (typically 24 hours). It is the standard fix for 'ping computername fails but ping computername.domain works' after an IP address changed.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ipconfig | Microsoft LearnEvidence: Microsoft documents /registerdns as initiating manual dynamic registration of the DNS names and IP addresses configured on the computer.
- IPCONFIG - Windows CMDEvidence: SS64 lists /registerdns as the switch that refreshes all DHCP leases and re-registers DNS names.
Last verified: 2026-09-17 · Category: Network
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
The modern, scriptable replacement for nslookup: ask for exact record types, hit specific DNS servers, and see TTLs as objects.