add option to cache local queries, from sn9
SVN-Revision: 12485
This commit is contained in:
parent
fbdb8046c2
commit
347913a53c
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue