- added "server" option list to delegate specific subdomains to given upstream servers
authorMarkus Wigge <mwigge@marcant.net>
Tue, 27 Jan 2009 22:58:11 +0000 (22:58 +0000)
committerMarkus Wigge <mwigge@marcant.net>
Tue, 27 Jan 2009 22:58:11 +0000 (22:58 +0000)
SVN-Revision: 14232

package/dnsmasq/files/dhcp.conf
package/dnsmasq/files/dnsmasq.init

index 72d51661a9ba85f45e21d688cddda177f12f503c..837be313ee6fbce46db775cc0d46db659fd2706c 100644 (file)
@@ -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
index 7d32be077efcfbc1b0bb895becd5c8ab5e56eacd..de9b92d52bc73e9e8b8dea3e8673d0a1512c47df 100644 (file)
@@ -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"