<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Now what should I do to resolve this problem, is there I am missing in my configuration ? I want to override its expire time to 8 days.<br><br><br><br>--- On <b>Tue, 10/5/10, SamLT <i>&lt;samuel.lethiec@intelunix.fr&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: SamLT &lt;samuel.lethiec@intelunix.fr&gt;<br>Subject: Re: [Dnsmasq-discuss] max-ttl Problem<br>To: "Mohammad Shakir" &lt;s_barkati@yahoo.com&gt;<br>Cc: dnsmasq-discuss@lists.thekelleys.org.uk<br>Date: Tuesday, October 5, 2010, 11:21 PM<br><br><div class="plainMail">On Tue, Oct 05, 2010 at 11:09:03PM -0700, Mohammad Shakir wrote:<br>&gt; I have checked the upstream server give 4min for v7.lscache4.c.youtube.com site so my dns should override its expire time and gives it 8 days which I have defined in my configuration but
 its not working.<br>&gt; <br>&gt; <br><br>upstream-ttl = 4min<br>max-ttl = 8days<br><br>max-ttl &gt; upstream-ttl<br><br><br>&gt; --- On Tue, 10/5/10, SamLT &lt;<a ymailto="mailto:samuel.lethiec@intelunix.fr" href="/mc/compose?to=samuel.lethiec@intelunix.fr">samuel.lethiec@intelunix.fr</a>&gt; wrote:<br>&gt; <br>&gt; From: SamLT &lt;<a ymailto="mailto:samuel.lethiec@intelunix.fr" href="/mc/compose?to=samuel.lethiec@intelunix.fr">samuel.lethiec@intelunix.fr</a>&gt;<br>&gt; Subject: Re: [Dnsmasq-discuss] max-ttl Problem<br>&gt; To: "Mohammad Shakir" &lt;<a ymailto="mailto:s_barkati@yahoo.com" href="/mc/compose?to=s_barkati@yahoo.com">s_barkati@yahoo.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" href="/mc/compose?to=dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>&gt; Date: Tuesday, October 5, 2010, 10:33 PM<br>&gt; <br>&gt; On Tue, Oct 05, 2010 at 10:21:17PM -0700, Mohammad
 Shakir wrote:<br>&gt; &gt; I have complie dnsmasq version 2.55 on Centos 5.3 and facing problem in max-ttl option.<br>&gt; &gt; <br>&gt; &gt; I set max-ttl=691200 and try to check it, I think its not working. I want if any request goes through my dns its store for 8 days.<br>&gt; <br>&gt; <br>&gt; From the manual:<br>&gt;&nbsp; The specified maximum TTL will be given to clients instead of the true TTL<br>&gt;&nbsp; value if it is lower<br>&gt; <br>&gt; <br>&gt; It may be confusing a little but it's "if the maximum TTL (max-ttl) is lower<br>&gt; than the true TTL given by the upstream servers<br>&gt; <br>&gt; <br>&gt; <br>&gt; &gt; <br>&gt; &gt; Here is my configuration which I set in my dnsmasq.conf file.<br>&gt; &gt; <br>&gt; &gt; bogus-priv<br>&gt; &gt; filterwin2k<br>&gt; &gt; cache-size=59000<br>&gt; &gt; no-negcache<br>&gt; &gt; dns-forward-max=25000 <br>&gt; &gt; max-ttl=691200<br>&gt; &gt; <br>&gt; &gt; And here is my testing result.<br>&gt; &gt;
 <br>&gt; &gt; [root@cache ~]# ifconfig eth1<br>&gt; &gt; eth1&nbsp; &nbsp; &nbsp; Link encap:Ethernet&nbsp; HWaddr 4C:00:10:3A:62:90&nbsp; <br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;inet addr:172.16.173.1&nbsp; Bcast:172.16.173.255&nbsp; Mask:255.255.255.0<br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;inet6 addr: fe80::4e00:10ff:fe3a:6290/64 Scope:Link<br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;UP BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1<br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;RX packets:800250915 errors:7 dropped:0 overruns:0 frame:0<br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;TX packets:965491461 errors:0 dropped:0 overruns:0 carrier:0<br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:1000 <br>&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;RX bytes:1194681302 (1.1 GiB)&nbsp; TX bytes:2148168146 (2.0 GiB)<br>&gt;
 &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Interrupt:177 Base address:0x2000<br>&gt; &gt; <br>&gt; &gt; [root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; <br>&gt; &gt; ; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; ; (1 server found)<br>&gt; &gt; ;; global options:&nbsp; printcmd<br>&gt; &gt; ;; Got answer:<br>&gt; &gt; ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 29731<br>&gt; &gt; ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0<br>&gt; &gt; <br>&gt; &gt; ;; QUESTION SECTION:<br>&gt; &gt; ;v7.lscache4.c.youtube.com.&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A<br>&gt; &gt; <br>&gt; &gt; ;; ANSWER SECTION:<br>&gt; &gt; v7.lscache4.c.youtube.com. 211&nbsp; IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;221.120.218.34<br>&gt; &gt; <br>&gt; &gt; ;; Query time: 18 msec<br>&gt; &gt; ;; SERVER:
 172.16.173.1#53(172.16.173.1)<br>&gt; &gt; ;; WHEN: Wed Oct&nbsp; 6 09:37:58 2010<br>&gt; &gt; ;; MSG SIZE&nbsp; rcvd: 59<br>&gt; &gt; <br>&gt; &gt; [root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; <br>&gt; &gt; ; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; ; (1 server found)<br>&gt; &gt; ;; global options:&nbsp; printcmd<br>&gt; &gt; ;; Got answer:<br>&gt; &gt; ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 8861<br>&gt; &gt; ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0<br>&gt; &gt; <br>&gt; &gt; ;; QUESTION SECTION:<br>&gt; &gt; ;v7.lscache4.c.youtube.com.&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A<br>&gt; &gt; <br>&gt; &gt; ;; ANSWER SECTION:<br>&gt; &gt; v7.lscache4.c.youtube.com. 178&nbsp; IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;221.120.218.34<br>&gt; &gt; <br>&gt; &gt; ;; Query time: 0 msec<br>&gt; &gt; ;;
 SERVER: 172.16.173.1#53(172.16.173.1)<br>&gt; &gt; ;; WHEN: Wed Oct&nbsp; 6 09:38:31 2010<br>&gt; &gt; ;; MSG SIZE&nbsp; rcvd: 59<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; [root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; <br>&gt; &gt; ; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>&gt; &gt; ; (1 server found)<br>&gt; &gt; ;; global options:&nbsp; printcmd<br>&gt; &gt; ;; Got answer:<br>&gt; &gt; ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 60814<br>&gt; &gt; ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4<br>&gt; &gt; <br>&gt; &gt; ;; QUESTION SECTION:<br>&gt; &gt; ;v7.lscache4.c.youtube.com.&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A<br>&gt; &gt; <br>&gt; &gt; ;; ANSWER SECTION:<br>&gt; &gt; v7.lscache4.c.youtube.com. 300&nbsp; IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;221.120.218.34<br>&gt; &gt; <br>&gt; &gt; ;; AUTHORITY
 SECTION:<br>&gt; &gt; youtube.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 311&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; NS&nbsp; &nbsp; &nbsp; ns3.google.com.<br>&gt; &gt; youtube.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 311&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; NS&nbsp; &nbsp; &nbsp; ns2.google.com.<br>&gt; &gt; youtube.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 311&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; NS&nbsp; &nbsp; &nbsp; ns1.google.com.<br>&gt; &gt; youtube.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 311&nbsp; &nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; NS&nbsp; &nbsp; &nbsp; ns4.google.com.<br>&gt; &gt; <br>&gt; &gt; ;; ADDITIONAL SECTION:<br>&gt; &gt; ns1.google.com.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;94146&nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;216.239.32.10<br>&gt; &gt; ns2.google.com.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;94146&nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A&nbsp;
 &nbsp; &nbsp;&nbsp;&nbsp;216.239.34.10<br>&gt; &gt; ns3.google.com.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;94146&nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;216.239.36.10<br>&gt; &gt; ns4.google.com.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;94146&nbsp;&nbsp;&nbsp;IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;216.239.38.10<br>&gt; &gt; <br>&gt; &gt; ;; Query time: 175 msec<br>&gt; &gt; ;; SERVER: 172.16.173.1#53(172.16.173.1)<br>&gt; &gt; ;; WHEN: Wed Oct&nbsp; 6 09:43:47 2010<br>&gt; &gt; ;; MSG SIZE&nbsp; rcvd: 202<br>&gt; &gt; <br>&gt; &gt; In first query to v7.lscache4.c.youtube.com its take 18msec in second query its take 0msec but in third query its take 175msec.<br>&gt; &gt; <br>&gt; &gt; I hope you will understand my question.<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; Dnsmasq-discuss
 mailing list<br>&gt; &gt; <a ymailto="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" href="/mc/compose?to=Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>&gt; &gt; <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br></div></blockquote></td></tr></table><br>