<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have complie dnsmasq version 2.55 on Centos 5.3 and facing problem in max-ttl option.<br><br>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><br>Here is my configuration which I set in my dnsmasq.conf file.<br><br>bogus-priv<br>filterwin2k<br>cache-size=59000<br>no-negcache<br>dns-forward-max=25000 <br>max-ttl=691200<br><br>And here is my testing result.<br><br>[root@cache ~]# ifconfig eth1<br>eth1      Link encap:Ethernet  HWaddr 4C:00:10:3A:62:90  <br>          inet addr:<span style="font-weight: bold;">172.16.173.1</span>  Bcast:172.16.173.255  Mask:255.255.255.0<br>          inet6 addr: fe80::4e00:10ff:fe3a:6290/64 Scope:Link<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>          RX packets:800250915 errors:7 dropped:0 overruns:0 frame:0<br>        
  TX packets:965491461 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:1194681302 (1.1 GiB)  TX bytes:2148168146 (2.0 GiB)<br>          Interrupt:177 Base address:0x2000<br><br>[root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br><br>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>; (1 server found)<br>;; global options:  printcmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 29731<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;v7.lscache4.c.youtube.com.     IN      A<br><br>;; ANSWER SECTION:<br>v7.lscache4.c.youtube.com. 211  IN      A       221.120.218.34<br><br><font size="5"><span style="font-weight: bold;">;; Query time: 18 msec</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; SERVER:
 172.16.173.1#53(172.16.173.1)</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; WHEN: Wed Oct  6 09:37:58 2010</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; MSG SIZE  rcvd: 59</span></font><br><br>[root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br><br>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>; (1 server found)<br>;; global options:  printcmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 8861<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;v7.lscache4.c.youtube.com.     IN      A<br><br>;; ANSWER SECTION:<br>v7.lscache4.c.youtube.com. 178  IN      A       221.120.218.34<br><br><font size="5"><span style="font-weight: bold;">;; Query time: 0 msec</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; SERVER:
 172.16.173.1#53(172.16.173.1)</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; WHEN: Wed Oct  6 09:38:31 2010</span><br style="font-weight: bold;"><span style="font-weight: bold;">;; MSG SIZE  rcvd: 59</span></font><br><br><br>[root@cache ~]# dig @172.16.173.1 v7.lscache4.c.youtube.com<br><br>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1 &lt;&lt;&gt;&gt; @172.16.173.1 v7.lscache4.c.youtube.com<br>; (1 server found)<br>;; global options:  printcmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 60814<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4<br><br>;; QUESTION SECTION:<br>;v7.lscache4.c.youtube.com.     IN      A<br><br>;; ANSWER SECTION:<br>v7.lscache4.c.youtube.com. 300  IN      A       221.120.218.34<br><br>;; AUTHORITY SECTION:<br>youtube.com.            311     IN      NS      ns3.google.com.<br>youtube.com.            311     IN      NS      ns2.google.com.<br>youtube.com.
            311     IN      NS      ns1.google.com.<br>youtube.com.            311     IN      NS      ns4.google.com.<br><br>;; ADDITIONAL SECTION:<br>ns1.google.com.         94146   IN      A       216.239.32.10<br>ns2.google.com.         94146   IN      A       216.239.34.10<br>ns3.google.com.         94146   IN      A       216.239.36.10<br>ns4.google.com.         94146   IN      A       216.239.38.10<br><br>;; Query time: 175 msec<br>;; SERVER: 172.16.173.1#53(172.16.173.1)<br>;; WHEN: Wed Oct  6 09:43:47 2010<br>;; MSG SIZE  rcvd: 202<br><br>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><br>I hope you will understand my question.<br></td></tr></table><br>