CentOS 7.x Disable Firefox DNS cache

From Notes_Wiki
Revision as of 15:35, 30 December 2017 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_Firefox|CentOS 7.x Firefox</yambe:breadcrumb> =CentOS 7.x Disable Firefox DNS cache= If you open a site and it fails due to DNS issues. Then if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_Firefox|CentOS 7.x Firefox</yambe:breadcrumb>

CentOS 7.x Disable Firefox DNS cache

If you open a site and it fails due to DNS issues. Then if you update OS DNS (/etc/resolv.conf in Linux) then refreshing firefox does not solves the problem, although "ping hostname" in OS works fine. This is because firefox caches DNS entries and also perhaps DNS server location. To disable this behavior use:

  1. Open about:config
  2. Set following values:
    • network.dnsCacheExpiration :: 0
    • network.dnsCacheExpirationGracePeriod :: 0
    • network.dnsCacheEntries :: 0
    • network.dns.disablePrefetch :: true

This should make DNS work directly based on current OS settings

Refer: