user3448600
user3448600

Reputation: 4028

How long google chrome and firefox cache DNS records

For how long Firefox and Chrome cache DNS records in its own(browser) DNS cache ? Do they respect TTL ?

Upvotes: 9

Views: 24577

Answers (2)

Zedorg
Zedorg

Reputation: 180

I think its a duplication of Firefox invalidate dns cache

There are two configuration values for it in Firefox: network.dnsCacheExpiration and network.dnsCacheExpirationGracePeriod with a default of 60 seconds (v45).

More info: http://kb.mozillazine.org/Network.dnsCacheExpiration

In Chrome: chrome://net-internals/#dns It seems the default is ~1minute (v66).

Don't forget about your system DNS cache. The browser does not talk with the DNS server directly, but rather your system resolver, so TTL is irrelevant here.

Upvotes: 15

Matteo Conta
Matteo Conta

Reputation: 1449

Try also this solution, it uses the "hidden" top right black arrow in the chrome net-internals page. It works immediately.

Prevent Chrome from caching a site's DNS records

Upvotes: 0

Related Questions