diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-09-02 01:37:06 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-09-02 01:37:06 +0000 |
commit | 347913a53c61cfcf0e5222fdbb735df9c4039aa3 (patch) | |
tree | cc7789678ba1d6582ed9bb9389701b44bd78041e | |
parent | fbdb8046c27dcec1988f04c2e227015159735b68 (diff) | |
download | mtk-20170518-347913a53c61cfcf0e5222fdbb735df9c4039aa3.zip mtk-20170518-347913a53c61cfcf0e5222fdbb735df9c4039aa3.tar.gz mtk-20170518-347913a53c61cfcf0e5222fdbb735df9c4039aa3.tar.bz2 |
add option to cache local queries, from sn9
SVN-Revision: 12485
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 60ffc8c..79e57d5 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -66,6 +66,7 @@ dnsmasq() { config_get leasefile $cfg leasefile [ -e "$leasefile" ] || touch "$leasefile" + config_get_bool cachelocal "$cfg" cachelocal 1 } dhcp_subscrid_add() { @@ -202,7 +203,7 @@ dhcp_add() { [ -n "$ifname" ] || return 0 config_get dnsserver "$net" dns - [ -n "$dnsserver" ] && { + [ "$cachelocal" = "0" -a -n "$dnsserver" ] && { DNS_SERVERS="$DNS_SERVERS $dnsserver" } |