dnsmasq: multiple instances setup not parsed correctly
Username: nONe
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1767
[Initially reported on
https://github.com/openwrt/packages/issues/5354
]
LEDE: 17.01.5 (mvebu/generic)
dnsmasq: 2.78-6
Trying to configure multiple instances of dnsmaq in /etc/config/dhcp according to
https://lede-project.org/docs/user-guide/dhcp_configuration
[now
] 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!