mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 00:40:15 +02:00
- added "server" option list to delegate specific subdomains
to given upstream servers git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14232 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8895980ca5
commit
85e49e4898
@ -11,6 +11,7 @@ config dnsmasq
|
|||||||
option readethers 1
|
option readethers 1
|
||||||
option leasefile '/tmp/dhcp.leases'
|
option leasefile '/tmp/dhcp.leases'
|
||||||
option resolvfile '/tmp/resolv.conf.auto'
|
option resolvfile '/tmp/resolv.conf.auto'
|
||||||
|
#list server '/mycompany.local/1.2.3.4'
|
||||||
|
|
||||||
config dhcp lan
|
config dhcp lan
|
||||||
option interface lan
|
option interface lan
|
||||||
|
@ -36,6 +36,10 @@ append_parm() {
|
|||||||
append args "$switch $_loctmp"
|
append args "$switch $_loctmp"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
append_server() {
|
||||||
|
append args "-S $1"
|
||||||
|
}
|
||||||
|
|
||||||
dnsmasq() {
|
dnsmasq() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
append_bool "$cfg" authoritative "-K"
|
append_bool "$cfg" authoritative "-K"
|
||||||
@ -62,6 +66,7 @@ dnsmasq() {
|
|||||||
append_parm "$cfg" "queryport" "-Q"
|
append_parm "$cfg" "queryport" "-Q"
|
||||||
append_parm "$cfg" "domain" "-s"
|
append_parm "$cfg" "domain" "-s"
|
||||||
append_parm "$cfg" "local" "-S"
|
append_parm "$cfg" "local" "-S"
|
||||||
|
config_list_foreach "$cfg" "server" append_server
|
||||||
append_parm "$cfg" "leasefile" "-l"
|
append_parm "$cfg" "leasefile" "-l"
|
||||||
append_parm "$cfg" "resolvfile" "-r"
|
append_parm "$cfg" "resolvfile" "-r"
|
||||||
append_parm "$cfg" "tftp_root" "--tftp-root"
|
append_parm "$cfg" "tftp_root" "--tftp-root"
|
||||||
|
Loading…
Reference in New Issue
Block a user