Please ensure path in dnsmasq.service points to installed path. It usually points to /usr/sbin/dnsmasq, which should not be where dnsmasq built from source should be installed.
systemctl cat dnsmasq | grep ^Exec Use systemctl edit dnsmasq to change path. On Debian, /etc/init.d/dnsmasq is used to start dnsmasq. At top of that file, DAEMON=/usr/sbin/dnsmasq uses full path to dnsmasq. I guess you would need to change it to /usr/local/sbin/dnsmasq. Please report outputs of these commands: dnsmasq --version which dnsmasq Regards, Petr On 10/11/21 05:33, E wrote: >> What’s the systemd unit file for dnsmasq look like? > I did not touch any systemd file. > > Ok..... here's another attempt > > > # mv /etc/dnsmasq.conf /tmp/dnsmasq.conf > > # apt remove --purge -y dnsmasq > > # mkdir wtf > > # cd wtf > > /wtf# git clone http://thekelleys.org.uk/git/dnsmasq.git > > /wtf# cd dnsmasq > > /wtf/dnsmasq# make > > /wtf/dnsmasq# make install > make[1]: Entering directory '.../wtf/dnsmasq/src' > make[1]: 'dnsmasq' is up to date. > make[1]: Leaving directory '.../wtf/dnsmasq/src' > install -d /usr/local/sbin > install -d /usr/local/share/man/man8 > install -m 644 man/dnsmasq.8 /usr/local/share/man/man8 > install -m 755 src/dnsmasq /usr/local/sbin > > /wtf/dnsmasq# cd ~ > > # rm -r wtf > > # mv /tmp/dnsmasq.conf /etc/dnsmasq.conf > > # service dnsmasq restart > Failed to restart dnsmasq.service: Unit dnsmasq.service not found. > > # dnsmasq --conf-file=/etc/dnsmasq.conf > dnsmasq: unsupported option at line 12 of /etc/dnsmasq.conf > > > W T F > > Reverting!!!!! > > # apt install dnsmasq > > # service dnsmasq restart > Job for dnsmasq.service failed because the control process exited with > error code > > # vi /etc/dnsmasq.conf > (replace filter-AAAA to #filter-AAAA) > > # service dnsmasq restart > > # > > > TLDR: W T F ! ! > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss