From b7f2adbdd3ed76e9c844b99d0171c9bfe5809cba Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 20 Feb 2019 18:09:50 +0100 Subject: package/dnsmasq: add max_ttl/min_cache_ttl/max_cache_ttl max_ttl - limit the ttl in the dns answer if greater as $max_ttl min_cache_ttl - force caching of dns answers even the ttl in the answer is lower than the $min_cache_ttl max_cache_ttl - cache only dns answer for $max_cache_ttl. Signed-off-by: Alexander Couzens --- package/network/services/dnsmasq/files/dnsmasq.init | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/network/services/dnsmasq/files') diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 4ae71e438b..93a8f9a108 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -860,6 +860,9 @@ dnsmasq_start() append_parm "$cfg" "tftp_root" "--tftp-root" append_parm "$cfg" "dhcp_boot" "--dhcp-boot" append_parm "$cfg" "local_ttl" "--local-ttl" + append_parm "$cfg" "max_ttl" "--max-ttl" + append_parm "$cfg" "min_cache_ttl" "--min-cache-ttl" + append_parm "$cfg" "max_cache_ttl" "--max-cache-ttl" append_parm "$cfg" "pxe_prompt" "--pxe-prompt" config_list_foreach "$cfg" "pxe_service" append_pxe_service config_get DOMAIN "$cfg" domain -- cgit v1.2.3