Use ipconfig /flushdns for name lookup problems and ipconfig /renew for DHCP address problems. The first command clears Windows’ local DNS resolver cache, while the second asks the DHCP server for fresh network lease settings, such as an IP address, gateway, and DNS servers. Microsoft documents both switches under the Windows ipconfig command, with /flushdns purging the DNS resolver cache and /renew renewing adapter DHCP configuration [source: Microsoft].
TLDR: ipconfig /flushdns is best when a website, app, or internal server points to the wrong place after a DNS change. ipconfig /renew is best when a Windows PC has a bad IP address, no gateway, or cannot get proper network settings from DHCP. For example, if 6 out of 40 office laptops still open an old intranet server after a DNS update, flushing DNS is the faster first test. If those laptops show a 169.254.x.x address, renewing DHCP is the better move.
What ipconfig /flushdns Actually Does
ipconfig /flushdns clears the local DNS resolver cache on a Windows machine. That cache stores recent domain name lookups. It helps speed things up because Windows does not need to ask a DNS server every single time a familiar domain is opened.
The problem is stale data. A domain might move to a new IP address. An internal hostname might be changed by IT. A VPN might add different DNS rules. Windows may still cling to the old answer. Honestly, it feels like the machine is being stubborn for no reason, especially when every other device opens the correct site.
This command does not change the computer’s IP address. It does not restart the router. It does not fix a broken DNS server. It only clears cached DNS results on that local PC.
Common signs that ipconfig /flushdns may help:
- A website was recently moved to a new server.
- An internal app opens the wrong or old address.
- A browser says a domain cannot be found, but other devices open it.
- A VPN connection changed DNS behavior.
- After malware cleanup, strange redirects still appear.
What ipconfig /renew Actually Does
ipconfig /renew asks the DHCP server to renew the network lease for a Windows adapter. DHCP is the system that hands out IP addresses and related settings on most home and office networks.
When renewal works, the PC may receive a fresh IP address, subnet mask, default gateway, and DNS server list. In many cases, it keeps the same IP address but refreshes the lease. That is normal.
This command is useful when the machine has poor or missing network configuration. A classic example is an address that starts with 169.254. That usually means Windows assigned itself an automatic private address because it did not get a valid lease from DHCP.
Common signs that ipconfig /renew may help:
- The PC has no internet access after waking from sleep.
- The adapter shows a
169.254.x.xaddress. - The default gateway is missing.
- The DNS server list is wrong because DHCP gave bad settings earlier.
- The user moved between office Wi Fi, home Ethernet, and VPN networks.
The Main Difference
The difference is simple. ipconfig /flushdns fixes cached name lookup data. ipconfig /renew refreshes IP lease settings. They touch different layers of the connection.
| Command | Main Job | Best Used When |
|---|---|---|
ipconfig /flushdns |
Clears local DNS cache | A domain or hostname resolves incorrectly |
ipconfig /renew |
Renews DHCP lease settings | The PC has bad or missing IP configuration |
A simple way to remember it: flush DNS when names are wrong; renew DHCP when numbers are wrong. Names mean domains such as app.company.local. Numbers mean addresses such as 192.168.1.34, gateway values, and DNS server IPs.
How to Run the Commands
Both commands run from Command Prompt or Windows Terminal. Administrator rights are not always required for checking basic settings, but elevated rights can prevent annoying permission errors in locked-down business machines.
- Open the Start menu.
- Type cmd.
- Select Run as administrator.
- Run the needed command.
To flush the DNS cache:
ipconfig /flushdns
Windows should return a message similar to:
Successfully flushed the DNS Resolver Cache.
To renew the DHCP lease:
ipconfig /renew
If the computer has multiple adapters, Windows may try to renew all eligible adapters. To target a specific one, the adapter name can be included, though exact names vary by machine.
When Both Commands Should Be Used
Sometimes both commands make sense. A laptop might have received a new DNS server through DHCP, but still hold old DNS entries in its resolver cache. In that case, renewal updates the network settings, and flushing clears stale lookup results.
A practical sequence is:
ipconfig /renewipconfig /flushdnsipconfig /displaydnsif cached results need checkingnslookup example.comto test DNS resolution
The catch is that Windows can make this feel slower than it should. A renewal may hang for 20 to 60 seconds if the DHCP server is unreachable, the Wi Fi signal is weak, or the adapter is half-connected. That delay does not mean the command is broken. It often means the network path to DHCP is the real issue.
What These Commands Cannot Fix
Neither command is magic. If the router is offline, the ISP has an outage, or the company DNS server is misconfigured, these commands may only prove that the local PC is not the main problem.
ipconfig /flushdns will not fix:
- A DNS record that was entered incorrectly by an admin.
- A public DNS change still waiting on normal TTL expiry elsewhere.
- A browser cache that is holding old redirects.
- A firewall blocking access to the destination.
ipconfig /renew will not fix:
- A dead router or unplugged Ethernet cable.
- A DHCP scope with no free addresses left.
- A blocked device on a managed network.
- A faulty network adapter driver.
Best Troubleshooting Order
For most users, the best order depends on the symptom. If only one site or one internal hostname fails, ipconfig /flushdns should come first. It is quick and low risk. It usually takes less than a second.
If the whole connection is broken, ipconfig /renew is the better starting point. Before running it, a technician may check the current configuration with:
ipconfig /all
This shows the adapter’s IP address, gateway, DNS servers, DHCP status, and lease times. If DHCP is disabled on an adapter using a static IP, ipconfig /renew will not behave like it does on a DHCP adapter.
FAQ
Does ipconfig /flushdns disconnect the internet?
No. It only clears local DNS cache entries. Active connections usually stay open. New domain lookups are requested again from configured DNS servers.
Does ipconfig /renew change the IP address?
It can, but it may not. The DHCP server may give the same address again if the lease is still valid and available.
Should a user run ipconfig /release before ipconfig /renew?
Sometimes. ipconfig /release drops the current DHCP lease, then ipconfig /renew asks for one again. It can help with stubborn DHCP issues, but it may briefly cut network access.
Is flushing DNS safe?
Yes. Windows rebuilds the cache as domains are visited again. The first visit to a site may take a tiny bit longer.
Which command fixes “DNS server not responding”?
ipconfig /flushdns may help if cached entries are bad. If the DNS server address itself is wrong, ipconfig /renew may help by pulling fresh DNS server settings from DHCP.
What is the fastest first step?
For one broken website, run ipconfig /flushdns. For no network access at all, check ipconfig /all, then try ipconfig /renew.

