Raspberry Pi Docker Container to send all LAN DNS requests to Cloudflare’s 1.1.1.1 DNS over TLS

I wanted to implement this on a Raspberry Pi that I have running Docker.  However, I wasn’t able to find an image in Docker Hub for the ARM architecture that the Raspberry Pi uses so I made my own based on the x86-64 image, here.

  • Place the Dockerfile and unbound.conf in the same directory.
  • Docker file:

  • unbound.conf:

 

  • Build the Docker image:

 

  • Start a container as a daemon from the above image:

 

  • Configure all clients to point to the IP address of the Docker Host for DNS.

One thought on “Raspberry Pi Docker Container to send all LAN DNS requests to Cloudflare’s 1.1.1.1 DNS over TLS”

Leave a Reply

Your email address will not be published. Required fields are marked *