Package: dnsmasq Version: 2.76-5+rpt1+deb9u1 Severity: normal Dear Maintainer,
* What led up to the situation? Trying to run multiple instances of dnsmasq on separate IP addresses. The systemd service and init.d script do not support multiple instances. systemd instantiated units [1] seems to be the way to go by renaming /lib/systemd/system/dnsmasq.service to dnsmasq@.service (at symbol) plus passing the instance name (via %i) to the init.d script and using that script parameter to differeniate the dnsmasq configurations. New instances would use: /etc/default/dnsmasq.<instance name> /etc/dnsmasq.<instance name>.conf /etc/dnsmasq.<instance name>.d/ `systemctl enable dnsmasq@<instance name>` The default instance could be for example 50, so that other instances can be started before or after the "default" instance. The original folder structure could still be used by using symbol links to them: /etc/default/dnsmasq.50 --> dnsmasq /etc/dnsmasq.50.conf --> dnsmasq.conf /etc/dnsmasq.50.d/ --> dnsmasq.d/ Other possibility would be, that instances only use /etc/default/dnsmasq.<instance name> to set an alternate config file and folders via DNSMASQ_OPTS and CONFIG_DIR. Add instance name to NAME variable in init.d script to use separate pid files and lo devices plus display instance in log. One thing I'm not sure about is how multiple instances would affect resolv.conf handling and what's "The Right Way (tm)" to do. My guess would be a new variable in /etc/default/dnsmasq.<instance name> if that instance should affect resolv.conf. For example only the main instance runs as local nameserver and sets /etc/resolv.conf to nameserver 127.0.0.1 Thanks for reading Maddes [1] https://www.freedesktop.org/software/systemd/man/systemd.unit.html -- System Information: Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch Architecture: armv7l Kernel: Linux 4.14.82-v7+ (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dnsmasq depends on: ii dnsmasq-base 2.76-5+rpt1+deb9u1 ii init-system-helpers 1.48 ii netbase 5.4 dnsmasq recommends no packages. Versions of packages dnsmasq suggests: ii openresolv [resolvconf] 3.8.0-1 -- Configuration Files: /etc/default/dnsmasq changed [not included] -- no debconf information