resolved
If you try to run AdGuardHome on a system where the resolved daemon is started, docker will fail to bind on port 53, because resolved daemon is listening on 127.0.0.53:53. Here’s how you can disable DNSStubListener on your machine:
Deactivate DNSStubListener and update the DNS server address. Create a new file,
/etc/systemd/resolved.conf.d/adguardhome.conf(creating the/etc/systemd/resolved.conf.ddirectory if needed) and add the following content to it:[Resolve] DNS=127.0.0.1 DNSStubListener=noSpecifying
127.0.0.1as the DNS server address is necessary because otherwise the nameserver will be127.0.0.53which doesn’t work withoutDNSStubListener.Activate a new
resolv.conffile:mv /etc/resolv.conf /etc/resolv.conf.backup ln -s /run/systemd/resolve/resolv.conf /etc/resolv.confStop
DNSStubListener:systemctl reload-or-restart systemd-resolved