15

for a developer that has to update DNS entries to do testing and other tasks, how do you clear the DNS cache in Opera.

Or lower the extremely long cache that get's in your way after editing /etc/hosts file?

gcb
  • 4,764
  • 11
  • 53
  • 73

2 Answers2

9

According to Opera's Senior Developer, Yngve Nysæter Pettersen, the DNS cache in Opera is 10 minutes and there's no means (that he cares to share) to clear it.

That's extremely inconvenient. And my trial and error shows that closing and opening the browser (whole browser, not just tab) successfully cleared the cache immediately.

He's wrong when he says that this is the same on every other browser. This may be true in Chrome as they rip settings every day, but Firefox has network.dnsCacheExpiration with is miliseconds for DNS cache TTL. (This is not documented or shown with the default value when you go to about:config, but still existent.)

galacticninja
  • 6,188
  • 16
  • 78
  • 120
gcb
  • 4,764
  • 11
  • 53
  • 73
  • btw, firefox and chrome now are exactly the same. Firefox used to allow dns ttl to be set via a non-documented user setting. but since i keep losing my notes, i have no idea which one it was... and i'm too lazy to scour the source code again. I just delete my profile and create a new one... sigh. – gcb May 20 '14 at 23:44
  • 5
    In Chrome you can clear dns cache by opening the following url `chrome://net-internals/#dns` and click on the "clear host cache" button. So no need for deleting you profile. – netblognet Jul 23 '15 at 18:21
  • 10
    This works also with Opera (version 33.0): `browser://net-internals/#dns` – GeorgDangl Dec 10 '15 at 09:10
  • 1
    Actually, in Opera 64.0, is: `opera://net-internals/#dns` – T-moty Oct 15 '19 at 13:44
8

@GeorgDangl gives the answer

browser://net-internals/#dns
molavec
  • 181
  • 1
  • 3