aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorMarkus Wigge <markus@cultcom.de>2009-01-27 22:58:11 +0000
committerMarkus Wigge <markus@cultcom.de>2009-01-27 22:58:11 +0000
commit2f7b697f090c9d038dc27b4cc8f0a87eb3be2127 (patch)
treed170134a50300deae7b4e61d894042bacb5dc081 /package/dnsmasq
parent48f37d19dadc1c193ec3f7358676b4ed63b1bacf (diff)
downloadupstream-2f7b697f090c9d038dc27b4cc8f0a87eb3be2127.tar.gz
upstream-2f7b697f090c9d038dc27b4cc8f0a87eb3be2127.tar.bz2
upstream-2f7b697f090c9d038dc27b4cc8f0a87eb3be2127.zip
- 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
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dhcp.conf1
-rw-r--r--package/dnsmasq/files/dnsmasq.init5
2 files changed, 6 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dhcp.conf b/package/dnsmasq/files/dhcp.conf
index 72d51661a9..837be313ee 100644
--- a/package/dnsmasq/files/dhcp.conf
+++ b/package/dnsmasq/files/dhcp.conf
@@ -11,6 +11,7 @@ config dnsmasq
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
+ #list server '/mycompany.local/1.2.3.4'
config dhcp lan
option interface lan
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 7d32be077e..de9b92d52b 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -36,6 +36,10 @@ append_parm() {
append args "$switch $_loctmp"
}
+append_server() {
+ append args "-S $1"
+}
+
dnsmasq() {
local cfg="$1"
append_bool "$cfg" authoritative "-K"
@@ -62,6 +66,7 @@ dnsmasq() {
append_parm "$cfg" "queryport" "-Q"
append_parm "$cfg" "domain" "-s"
append_parm "$cfg" "local" "-S"
+ config_list_foreach "$cfg" "server" append_server
append_parm "$cfg" "leasefile" "-l"
append_parm "$cfg" "resolvfile" "-r"
append_parm "$cfg" "tftp_root" "--tftp-root"