openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

dnsmasq: multiple instances setup not parsed correctly #5354

Closed dosenflieger closed 6 years ago

dosenflieger commented 6 years ago

LEDE: 17.01.4 (lantiq/xway) dnsmasq: 2.78-1

Trying to configure multiple instances of dnsmaq in /etc/config/dhcp according to https://lede-project.org/docs/user-guide/dhcp_configuration fails probably due to a parsing error. Only the first dnsmasq instance is parsed correctly. Further definitions are interpreted as dhcp instances.

Adding a 'set -x' to /etc/init.d/dnsmaq shows that the following setup

config dnsmasq 'main'
   option domainneeded '1'
   ...

config dnsmasq 'tor'
   option domainneeded '1'
   ...

is parsed as:

config dnsmasq 'main'
   option domainneeded '1'
   ...

config dhcp 'tor'
   option domainneeded '1'
   ...

Thanks for taking a look!

hnyman commented 6 years ago

sorry, but dnsmasq is part of the core packages and should be discussed in https://bugs.openwrt.org/