https://medium.com/@niktrix/getting-rid-of-systemd-resolved-consuming-port-53-605f0234f32f

There are cases in which you need to use port 53, like to use dnsmasq, dns server etc. which is used by systemd-resolved. to get rid of systemd-resolved safely

  1. stop systemd-resolved “ sudo systemctl stop systemd-resolved”

  2. edit /etc/systemd/resolved.conf with these

    [Resolve]

    DNS=8.8.8.8 1.1.1.1

    DNSStubListener=no

  1. sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf