add option to cache local queries, from sn9
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 2 Sep 2008 01:37:06 +0000 (01:37 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 2 Sep 2008 01:37:06 +0000 (01:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12485 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/dnsmasq/files/dnsmasq.init

index 60ffc8c..79e57d5 100644 (file)
@@ -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"
        }
 
This page took 0.030667 seconds and 4 git commands to generate.