Explorar el Código

- added "server" option list to delegate specific subdomains to given upstream servers

SVN-Revision: 14232
Markus Wigge hace 17 años
padre
commit
b05f64dd06
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  1. 1 0
      package/dnsmasq/files/dhcp.conf
  2. 5 0
      package/dnsmasq/files/dnsmasq.init

+ 1 - 0
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

+ 5 - 0
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"