<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dns cache]]></title><description><![CDATA[<p dir="auto">where can i change the default dns cache time out?</p>
<p dir="auto">how about squid? does squid also use same dns cache?<br />
or does it have its own dns cache? where it's set?</p>
<p dir="auto">tnx&amp;rgds<br />
rex</p>
]]></description><link>https://forum.netgate.com/topic/930/dns-cache</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:39:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/930.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Apr 2006 06:30:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dns cache on Thu, 27 Apr 2006 17:15:53 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, that is true.  Kinda a catch-22 in that regard, I guess.</p>
]]></description><link>https://forum.netgate.com/post/136389</link><guid isPermaLink="true">https://forum.netgate.com/post/136389</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Thu, 27 Apr 2006 17:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to Dns cache on Thu, 27 Apr 2006 06:12:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sullrich">@<bdi>sullrich</bdi></a>:</p>
<blockquote>
<p dir="auto">Setting 127.0.0.1 in the general screen has the same effect.</p>
</blockquote>
<p dir="auto">would that make dnsmasq use 127.0.0.1 as the name server seeing that it reads /etc/resolv.conf for the upstream servers?. I think what he is suggesting is that an alternate file be used to tell dnsmasq the name server(s) to use, while telling all other processes on the firewall (except dnsmasq) to use 127.0.0.1 via  /etc/resolv.conf. In other words change dnsmasq resolve file to something else other than the default.</p>
]]></description><link>https://forum.netgate.com/post/136370</link><guid isPermaLink="true">https://forum.netgate.com/post/136370</guid><dc:creator><![CDATA[Leoandru]]></dc:creator><pubDate>Thu, 27 Apr 2006 06:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to Dns cache on Thu, 27 Apr 2006 04:21:55 GMT]]></title><description><![CDATA[<p dir="auto">Setting 127.0.0.1 in the general screen has the same effect.</p>
]]></description><link>https://forum.netgate.com/post/136369</link><guid isPermaLink="true">https://forum.netgate.com/post/136369</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Thu, 27 Apr 2006 04:21:55 GMT</pubDate></item><item><title><![CDATA[Reply to Dns cache on Thu, 27 Apr 2006 03:48:21 GMT]]></title><description><![CDATA[<p dir="auto">imho,<br />
a better way using dns cache is telling pfsense that localhost will serve all dns request.<br />
including request by squid and its own use.</p>
<p dir="auto">right now, if you ssh into pfsense and type (say,) ping yahoo.com<br />
pfsense will use /etc/resolv.conf to resolve the ip address.<br />
that mean it goes directly to assigned dns server.</p>
<p dir="auto">so, imho, /etc/resolve should have this entry instead:<br />
nameserver 127.0.0.1</p>
<p dir="auto">this way, instead of go directly to dns server, it try to resolve through dnsmasq cache.</p>
<p dir="auto">then when it's not in cache, dnsmasq should try to go directly to dns server.<br />
so, we should have entry in dnsmasq.conf something like this:<br />
resolv-file=/etc/realdnsservers</p>
<p dir="auto">and the /etc/realdnsservers file should contain the dns server obtain from dhcp.</p>
<p dir="auto">rgds,<br />
dny.</p>
<p dir="auto">refs:<br />
http://thekelleys.org.uk/dnsmasq/docs/setup.html</p>
]]></description><link>https://forum.netgate.com/post/136367</link><guid isPermaLink="true">https://forum.netgate.com/post/136367</guid><dc:creator><![CDATA[rexster]]></dc:creator><pubDate>Thu, 27 Apr 2006 03:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to Dns cache on Fri, 07 Apr 2006 13:05:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rexster">@<bdi>rexster</bdi></a>:</p>
<blockquote>
<p dir="auto">where can i change the default dns cache time out?</p>
<p dir="auto">how about squid? does squid also use same dns cache?<br />
or does it have its own dns cache? where it's set?</p>
<p dir="auto">tnx&amp;rgds<br />
rex</p>
</blockquote>
<p dir="auto">you can't change the default ttl on dns records in dnsmasq. I have checked. as for squid it reads resolve.conf for name servers so its uses the same upstream server as dnsmasq. it also creates up to five processes for dnslookup (so yes it has its own cache). In transparent mode a dns lookup is twice as expensive, since its done once by the browser and once again by squid. If you want squid to use dns on the firewall you need to specify that in the squid config with the dns_nameservers option. That way since dnsmasq caches lookups, squid will hit that cache on the next lookup. I verified this by the way and modified my squid_ng.inc to include the option. I should be able to make this an option in the gui provided I get the time this weekend, work has been really demanding of late, don't even have time for myself.</p>
]]></description><link>https://forum.netgate.com/post/135862</link><guid isPermaLink="true">https://forum.netgate.com/post/135862</guid><dc:creator><![CDATA[Leoandru]]></dc:creator><pubDate>Fri, 07 Apr 2006 13:05:08 GMT</pubDate></item></channel></rss>