Changeset 32623


Ignore:
Timestamp:
2012-07-05T19:46:32+02:00 (6 years ago)
Author:
jow
Message:

Add local TTL option to dnsmasq

-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.

[jow: change -T to --local--ttl to conform with the other options]

Signed-off-by: Andrew Byrne <openwrt@…>

openwrt-devel mailing list
openwrt-devel@…
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r32570 r32623  
    112112        append_parm "$cfg" "tftp_root" "--tftp-root" 
    113113        append_parm "$cfg" "dhcp_boot" "--dhcp-boot" 
     114        append_parm "$cfg" "local_ttl" "--local-ttl" 
    114115 
    115116        config_get DOMAIN "$cfg" domain 
Note: See TracChangeset for help on using the changeset viewer.