Skip to content

werekraken/docker-dnscache

Repository files navigation

dnscache

Build Status

Overview

Dockerfile for dnscache, part of the djbdns project.

Usage

Start a dnscache instance (recursive)

$ 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

Use a Dockerfile instead of volumes (recursive)

FROM werekraken/dnscache

RUN touch /etc/dnscache/root/ip/192.168.0

Start a dnscache instance (forwarding)

$ 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

Use a Dockerfile instead of volumes (forwarding)

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

About

Dockerfile for dnscache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages