Changeset 12485


Ignore:
Timestamp:
2008-09-02T03:37:06+02:00 (8 years ago)
Author:
thepeople
Message:

add option to cache local queries, from sn9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r11967 r12485  
    6767        config_get leasefile $cfg leasefile 
    6868        [ -e "$leasefile" ] || touch "$leasefile" 
     69        config_get_bool cachelocal "$cfg" cachelocal 1 
    6970} 
    7071 
     
    203204 
    204205        config_get dnsserver "$net" dns 
    205         [ -n "$dnsserver" ] && { 
     206        [ "$cachelocal" = "0" -a -n "$dnsserver" ] && { 
    206207                DNS_SERVERS="$DNS_SERVERS $dnsserver" 
    207208        } 
Note: See TracChangeset for help on using the changeset viewer.