<br>&gt; Yap it works, when dnsmasq overrides from /etc/hosts, it should attrib some<br>&gt; TTL to the it, it stays with zero TTL.<br>&gt; Just to avoid this:<br>&gt; ---<br>&gt; Peixe:~# host -v -t a <a href="http://mail.domain.pt">mail.domain.pt</a><br>
&gt; Query about <a href="http://mail.domain.pt">mail.domain.pt</a> for record types A<br>&gt; Trying <a href="http://mail.domain.pt">mail.domain.pt</a> ...<br>&gt; Query done, 1 answer, authoritative status: no error<br>
&gt; <a href="http://mail.decimal.pt">mail.decimal.pt</a>         0       IN      A       192.168.1.222<br>&gt;  !!! <a href="http://mail.domain.pt">mail.domain.pt</a> A record has zero ttl<br>&gt; Peixe:~#<br>&gt; ---<br>
<br><br>And now you DO get pointed to the man page:<br><br>-T, --local-ttl=&lt;time&gt;<br>When replying with information<i> </i><b><i>from /etc/hosts</i></b> or the DHCP leases file dnsmasq <b><i>by default sets the time-to-live field to zero</i></b>, meaning that the requestor should not itself cache the information. This is the correct thing to do in almost all situations. <b><i>This option allows a time-to-live (in seconds) to be given for these replies</i></b>. This will reduce the load on the server at the expense of clients using stale data under some circumstances.<br>
<br><div><a href="http://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html">http://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html</a></div><div><br><br></div>