Difference between revisions of "CentOS 7.x Disable Firefox DNS cache"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_Firefox|CentOS 7.x Firefox</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Desktop tools or applications|Desktop tools or applications]] > [[CentOS 7.x Firefox]] > [[CentOS 7.x Disable Firefox DNS cache]]
=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:
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:
Line 15: Line 14:
Refer:
Refer:
* http://ccm.net/faq/555-disabling-the-dns-cache-in-mozilla-firefox
* http://ccm.net/faq/555-disabling-the-dns-cache-in-mozilla-firefox
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Desktop tools or applications|Desktop tools or applications]] > [[CentOS 7.x Firefox]] > [[CentOS 7.x Disable Firefox DNS cache]]

Latest revision as of 10:04, 25 August 2022

Home > CentOS > CentOS 7.x > Desktop tools or applications > CentOS 7.x Firefox > 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:



Home > CentOS > CentOS 7.x > Desktop tools or applications > CentOS 7.x Firefox > CentOS 7.x Disable Firefox DNS cache