Ubuntu systemd starts native dnsmasq preventing pihole from starting up issues

I am having an issue with pihole starting up after I reboot my Ubuntu server.

I am running Ubuntu 16.04.6 LTS. It uses systemd I get the following.
root@storage2:/run/systemd# systemctl is-active dnsmasq
active

root@storage2:/run/systemd# systemctl is-enabled dnsmasq
disabled

When I stop dnsmasq, everything is peachy and pihole starts up just fine. I just want to prevent systemd from starting up dnsmasq by default and I am just struggling with it.

Any thoughts on what I am doing wrong?

Thanks!
T

Have you tried

sudo systemctl stop dnsmasq
sudo systemctl disable dnsmasq

I did, the stop does work and I have already disabled it, but it just comes right back up whenever I reboot.

Remove dnsmasq completely.

sudo apt-get remove dnsmasq-base

Mask the service.

1 Like

I removed it as @jfb suggested and hopefully that should work, but can you clarify what masking means?

1 Like