If the key is unspecified, default is used, unless /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf, /run/systemd/resolve/resolv.conf, /lib/systemd/resolv.conf or /usr/lib/systemd/resolv.conf. In that case, systemd-resolved is chosen automatically.
default: NetworkManager will update /etc/resolv.conf to reflect the nameservers provided by currently active connections.
dnsmasq: NetworkManager will run dnsmasq as a local caching nameserver, using "Conditional Forwarding" if you are connected to a VPN, and then update resolv.conf to point to the local nameserver. It is possible to pass custom options to the dnsmasq instance by adding them to files in the "/etc/NetworkManager/dnsmasq.d/" directory. Note that when multiple upstream servers are available, dnsmasq will initially contact them in parallel and then use the fastest to respond, probing again other servers after some time. This behavior can be modified passing the 'all-servers' or 'strict-order' options to dnsmasq (see the manual page for more details).
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.19-1~deb10u1
[i] Repair option selected
[✓] Disk space check
[✓] Checking apt-get for upgraded packages... 12 updates available
[i] It is recommended to update your OS after installing the Pi-hole!
[i] Installer Dependency checks...
[i] Checking for dhcpcd5 (will be installed)
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[✓] Checking for dnsutils
[i] Processing apt-get install(s) for: dhcpcd5, please wait...
------------------------------------------------------------------------------------------------------------------------
E: Package 'dhcpcd5' has no installation candidate
pi@raspberrypi:~ $ sudo systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; disabled; vendor preset:
Active: inactive (dead)
lines 1-3/3 (END)
So NM is still in charge, that is good. But pihole is still relying on dhcpcd?
However, pihole is still not running:
DNS service not running
and
FTL offline
As for dnsmasq and NM, I have added the dns=none in NM's conf and can no longer exit to the internet (because my VNC says that I am in Service mode so it does not resolve)
pi@ph5:~ $ man systemctl
[..]
mask UNIT...
Mask one or more units, as specified on the command line.
This will link these unit files to /dev/null, making it
impossible to start them. This is a stronger version of
disable, since it prohibits all kinds of activation of the
unit, including enablement and manual activation. Use this
option with care. This honors the --runtime option to only
mask temporarily until the next reboot of the system. The
--now option may be used to ensure that the units are also
stopped. This command expects valid unit names only, it
does not accept unit file paths.
unmask UNIT...
Unmask one or more unit files, as specified on the command
line. This will undo the effect of mask. This command
expects valid unit names only, it does not accept unit file
paths.
[..]