diff options
author | thepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-02 01:37:06 +0000 |
---|---|---|
committer | thepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-02 01:37:06 +0000 |
commit | a47a7d1cc91bf6ee252b75e506b987999d38495d (patch) | |
tree | 4d10404286c1b86c877b66ed97a1d67f183359e3 /package/dnsmasq/files | |
parent | 5ea5da8a9841cd9730607a4a4194654cc9625d24 (diff) |
add option to cache local queries, from sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq/files')
-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 60ffc8c7a..79e57d5f3 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" } |