dnsdist container

This commit is contained in:
Yann Verry 2021-05-06 20:51:46 +02:00
commit 0dcc701b6c
Signed by: yann
GPG key ID: 19754E8692B8416C
4 changed files with 31 additions and 0 deletions

13
dnsdist/Dockerfile Normal file
View file

@ -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

8
dnsdist/Makefile Normal file
View file

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

3
dnsdist/README.md Normal file
View file

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

View file

@ -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 })