Dockerfile for dnscache, part of the djbdns project.
$ docker run \
--name some-dnscache \
-p 192.168.0.254:53:53/udp \
-p 192.168.0.254:53:53 \
-v /docker/host/dir/empty_file:/etc/dnscache/root/ip/192.168.0:ro \
-d werekraken/dnscache
FROM werekraken/dnscache
RUN touch /etc/dnscache/root/ip/192.168.0
$ docker run \
--name some-dnscache \
-p 192.168.0.254:53:53/udp \
-p 192.168.0.254:53:53 \
-v /docker/host/dir/empty_file:/etc/dnscache/root/ip/192.168.0:ro \
-v /docker/host/dir/@:/etc/dnscache/root/servers/@:ro \
-v /docker/host/dir/FORWARDONLY:/etc/dnscache/env/FORWARDONLY:ro \
-d werekraken/dnscache
FROM werekraken/dnscache
RUN touch /etc/dnscache/root/ip/192.168.0
RUN echo '8.8.8.8' > /etc/dnscache/root/servers/@
RUN echo '1' > /etc/dnscache/env/FORWARDONLY