Edge: DNS Flush

Valued Contributor

I ran into a persistent "resolving host" issue on one of my computers this weekend and worked my way through the usual resolution steps (W10 DNS flush (ipconfig /flushdns), browser DNS flush and so on) in order to clean up the various DNS caches and start with a clean slate.


It does not appear that Edge DNS flush (edge://net-internals/#dns, similar to chrome://net-internals/#dns or opera://net-internals/#dns) is operative. 


The "Clear host cache" button shows up but doesn't seem to be functioning:




I don't know if this is a bug or a feature, but it is a difference from other Chromium-based browsers I've had the occasion to use.

7 Replies

@tomscharbach Thanks for reaching out, Tom! I brought this back to the team and they didn't have an immediate answer. @ericlaw , do you have any insight into this?


Fawkes (they/them)
Project & Community Manager - Microsoft Edge

@tomscharbach Thanks for the note!

Can you elaborate on your determination that the button doesn't work? What sort of testing did you do?

Notably, the button provides no feedback of completion, and is styled in such a way in Edge that it is more likely to appear that clicking it hasn't actually "pushed" the button. But it does dispatch the clearHostResolverCache call to the browser.

@tomscharbach I found the same "issue" you likely saw. Not only did I need to ipconfig /flushdns and edge://net-internals/#dns but also Ctrl+F5 on the website in questions.

This problem still happens today. flushing the DNS or CTRL+F5 doesn't clear the previously cached DNS entry for a site, but opening an new "private" window does resolve the site at the new DNS/IP location. Returning to the original tab and refeshing still brings up a dead site. Closing all Edge instances and reopening (I didn't check if any Edge background processes kept running), didn't resolve the issue. Went off to make a coffi, hit refresh in same tab as before and all was good. Probably a 5-10 min delay.
I happy to take a look at your NetLog where you found edge://net-internals/#dns was ineffective.

Keep in mind that if you have an active (reusable) connection to the site, I'm not sure that flushing the browser's DNS cache will close that connection.
I had a similar problem and determined that occurred when the target host's ip address changed after it had been resolved by a secondary DNS server. I thiis case I have a split DNS setup and the local DNS server did not respond with the local address for the host. The internet server responded with the domain's public IP address which cannot be used to reach the internal server. Flushing the did not resolve the issue. Closing and reopening Edge also did not resolve the problem. I changed Edge settings so all processes end when you close the app. Closed the app and restarted. At that point the local address was retrieved from the local DNS server and the connection was made.

Based on @ericlaw's comment it would appear that the DNS client is not being consulted even when opening a new window. It's as if Edge has created something that behaves like a cache although it appears that it's reusing connections. The problem is that it doesn't seem to know that the server's address has changed even if the server is currently unreachable.

Perhaps the Edge should lookup the address from time-to-time and avoid reusing of stale addresses.

I have recently been dealing with this when we are testing multiple web front ends for our student information system. 

We change the DNS in our hosts file.

Then we have to run ipconfig /flushdns

Next step is to edge://net-internals/#dns go here and Clear Host Cache

Next go to edge://net-internals/#sockets and Close Idle Sockets and Flush Socket Pools. 

Then we go to the website it will use the IP address from the hosts file.