>From http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html:

-T, --local-ttl=<time>
    When replying with information from /etc/hosts or the DHCP leases
file dnsmasq by default sets the time-to-live field to zero, meaning
that the requestor should not itself cache the information. This is
the correct thing to do in almost all situations. This option allows a
time-to-live (in seconds) to be given for these replies. This will
reduce the load on the server at the expense of clients using stale
data under some circumstances.

Signed-off-by: Andrew Byrne <[email protected]>

Index: trunk/package/dnsmasq/files/dnsmasq.init
===================================================================
--- trunk/package/dnsmasq/files/dnsmasq.init    (revision 23604)
+++ trunk/package/dnsmasq/files/dnsmasq.init    (working copy)
@@ -95,6 +95,7 @@
        append_parm "$cfg" "resolvfile" "-r"
        append_parm "$cfg" "tftp_root" "--tftp-root"
        append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
+       append_parm "$cfg" "local_ttl" "-T"

        config_get DOMAIN "$cfg" domain
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to