I am building a pihole appliance for a friend, the service runs on port 53.
Ubuntu Core 18 comes with systemd-resolved
running, and I’m looking for a way to turn it off so that pihole’s dnsmasq can run on that port.
Things I’ve tried:
- Setting
DNSStubListener=no
in/dev/systemd/resolved.conf
results in the host unable to resolve DNS for itself.- Also tried setting a
DNS=
andFallbackDNS=
entry here with no success
- Also tried setting a
- Can’t mess with the
/etc/resolv.conf
symlink because the fs is read only. -
/run/systemd/resolve/stub-resolv.conf
is where the resolv.conf symlink ends up. Chaning it here works but I am unsure how I can make this setting stick through a reboot. - Adding an entry in
/etc/netplan/00-snapd-config.yaml
and then generating/applying also doesn’t seem to work and survive reboots. Running console-conf manually doesn’t even ask me to set a DNS server.
Any tips/ideas? Thanks in advance!