Public Repository

Last pushed: 6 months ago
Short Description
Dockerfile for dnscache
Full Description

Source Repository

werekraken/docker-dnscache

dnscache

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
Docker Pull Command
Owner
werekraken