Use host's DNS resolver in Docker containers (#812)

* Symlink /etc/resolve.conf to systemd-resolved's stub

Since systemd-resolved is managing the DNS configuration, ensure that
/etc/resolv.conf uses it.

* Use systemd-resolved from Docker containers
This commit is contained in:
Kevin McConnell authored and GitHub committed 2025-08-15 15:29:25 +02:00
1 parent 2db5e730a7
commit aca23ad834
4 files changed
+42 -2

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
echo "Ensure DNS resolver configuration is properly symlinked"
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf