How to Refresh Network Settings with ipconfig
Use release, renew, and flushdns to quickly refresh Windows network settings.
Before you start
Step-by-step instructions
1. Refresh IP address
If you want to refresh the IP address assigned to your computer, run the following command in Command Prompt.
ipconfig /release && ipconfig /renew
It removes the current DHCP IP address first, then requests a new one from the network.
2. Clear DNS cache
If domain or DNS information has changed but your PC still shows old data, clear the DNS cache.
ipconfig /flushdns
This is useful when domain-related settings were changed but your computer still keeps old DNS results in cache.
ipconfig options
/? Show help
/all Show all configuration
/release Remove IP address from adapter
/renew Renew IP address
/flushdns Clear DNS resolver cache
/registerdns Refresh DHCP and register DNS names
/displaydns Show DNS resolver cache
/showclassid Show all DHCP class IDs
/setclassid Set DHCP class ID
General usage format: ipconfig /option
Common issues
This may happen if the DHCP server is unavailable or the adapter is disconnected.
The issue may not be local DNS cache. It could be browser cache, external DNS propagation, or a network-side problem.
If the adapter uses a static IP address instead of DHCP, release and renew may not be useful.