dnsdist container

master
Yann Verry 2021-05-06 20:51:46 +07:00
commit 0dcc701b6c
Signed by: yann
GPG Key ID: 19754E8692B8416C
4 changed files with 31 additions and 0 deletions

@ -0,0 +1,13 @@
#
# Dockerfile
#
FROM alpine:edge
MAINTAINER Yann Verry <docker@verry.org>
RUN apk add --no-cache dnsdist
COPY config/dnsdist.conf /etc/dnsdist.conf
CMD /usr/bin/dnsdist -u nobody -g nobody -C /etc/dnsdist.conf --supervised

@ -0,0 +1,8 @@
all: pull build
pull:
docker pull alpine:edge
build:
docker build -t dnsdist .

@ -0,0 +1,3 @@
# DNSDist on Docker
This repository contains a Docker image of PowerDNS [dnsdist](http://dnsdist.org/).

@ -0,0 +1,7 @@
setLocal('[::]:53')
addACL('::/0')
addACL('0.0.0.0/0')
newServer({address="2620:fe::fe", qps=10, name="quad9", checkInterval="60"})
addAction(MaxQPSIPRule(50), DropAction())
setServerPolicy(firstAvailable)
addDOHLocal("[::]:8053", nil, nil, "/", { reusePort=true })