Closed utkonos closed 3 years ago
The reason it does not start is that systemd-resolved
is running on port 53 of lo
:
# ss -tulwn | grep LISTEN
tcp LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:*
One solution is to adjust the Corefile to have the service specifically bind to the NIC with the IP address that one wants CoreDNS to listen on. This is described in the documentation here:
https://coredns.io/manual/toc/#server-blocks
This uses the bind
plugin:
https://coredns.io/plugins/bind/
Alterniatively, if one wants to replace systemd-resolved
, the following needs to be changed:
systemctl disable systemd-resolved
systemctl stop systemd-resolved
Then adjust the contents of /etc/NetworkManager/NetworkManager.conf
adding:
dns=default
Finally:
rm /etc/resolv.conf
systemctl restart NetworkManager
I don't think replacing the system's DNS resolver is a good idea, however. Just binding to the outside interface is probably the best thing to do.
Using the package generated in issue #256 steps to reproduce, the resulting package installs a service that fails to start.
Steps to reproduce:
Output: