Lose connection when altering container dns server


I must be doing this wrong. :slight_smile: I’ve been trying to install coredns in place of the system-resolved that comes with Ubuntu server 20.04. However, once I remove the symlink to /etc/recolv.conf, lxc loses its connection to the instance. Duh.

I was planning to use coredns to forward dns requests with domain ‘consul’ to a set of consul servers. Is there a simpler way or is there a way to use lxd networking for this?


I’ve solved my own problem. Ubuntu 20.10 now allows the systemd resolved service to assign ports (8600 for consul) in the /etc/resolv.conf file. No need to replace the system dns server at all.