Skip to content
Manuel Stahl edited this page Jul 7, 2023 · 2 revisions

rawdns can be easily used with systemd-resolved:

  1. Start rawdns container docker run --rm --name rawdns -v /var/run/docker.sock:/var/run/docker.sock:ro tianon/rawdns
  2. Use docker inspect rawdns to find it's IP address (typically 172.17.0.2 if no other containers are running)
  3. Set DNS and domain for link docker0 (at least on Ubuntu the default docker link is docker0):
sudo resolvectl dns docker0 172.17.0.2
sudo resolvectl domain docker0 docker
  1. Test: ping rawdns.docker
Clone this wiki locally