diff options
author | Markus Wigge <mwigge@marcant.net> | 2009-01-27 22:58:11 +0000 |
---|---|---|
committer | Markus Wigge <mwigge@marcant.net> | 2009-01-27 22:58:11 +0000 |
commit | b05f64dd068dc2f0aaade8ca15569228aef9dff5 (patch) | |
tree | 665322cb1d94adb491595c98e140ebc0e6390f75 /package/dnsmasq/files | |
parent | 2688dcf275a0ea4c126b509914303cdd01a3fb7f (diff) | |
download | mtk-20170518-b05f64dd068dc2f0aaade8ca15569228aef9dff5.zip mtk-20170518-b05f64dd068dc2f0aaade8ca15569228aef9dff5.tar.gz mtk-20170518-b05f64dd068dc2f0aaade8ca15569228aef9dff5.tar.bz2 |
- added "server" option list to delegate specific subdomains to given upstream servers
SVN-Revision: 14232
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r-- | package/dnsmasq/files/dhcp.conf | 1 | ||||
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dhcp.conf b/package/dnsmasq/files/dhcp.conf index 72d5166..837be31 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 7d32be0..de9b92d 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" |