Use dnsmasq as system DNS service
Solution 1:
I don't know why you're trying to replace systemd-resolved, but if you need to run them at the same time...
Regarding dnsmasq
and systemd-resolved
...
Do a ps auxc | grep -i dns
and ps auxc | grep -i resolv
and look for dnsmasq
and systemd-resolved
, and if both are running, you need to disable the DNS part of systemd-resolved
by editing /etc/systemd/resolved.conf
and...
change:
#DNSStubListener=yes
to:
DNSStubListener=no
then restart systemd-resolve and dnsmasq, or reboot.
You need to reset the symlink that is /etc/resolv.conf
sudo mv /etc/resolv.conf /etc/resolv.conf.OLD
# save the old symlink
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf