summaryrefslogtreecommitdiff
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-05 17:46:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-07-05 17:46:32 +0000
commit8de3880c028c238b89847670cc0a1a910728e48c (patch)
tree988c04283dc17d2084827bd29c7c95ca20ba42d8 /package/dnsmasq/files
parentcc5187c02495a1d1987c0537ed7e25a3dd7f2b26 (diff)
downloadmtk-20170518-8de3880c028c238b89847670cc0a1a910728e48c.zip
mtk-20170518-8de3880c028c238b89847670cc0a1a910728e48c.tar.gz
mtk-20170518-8de3880c028c238b89847670cc0a1a910728e48c.tar.bz2
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@andy.id.au> openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel SVN-Revision: 32623
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r--package/dnsmasq/files/dnsmasq.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 485a2f7..15228da 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -111,6 +111,7 @@ dnsmasq() {
append_parm "$cfg" "resolvfile" "--resolv-file"
append_parm "$cfg" "tftp_root" "--tftp-root"
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
+ append_parm "$cfg" "local_ttl" "--local-ttl"
config_get DOMAIN "$cfg" domain