dnsdist container
This commit is contained in:
commit
0dcc701b6c
13
dnsdist/Dockerfile
Normal file
13
dnsdist/Dockerfile
Normal 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
8
dnsdist/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
all: pull build
|
||||||
|
|
||||||
|
|
||||||
|
pull:
|
||||||
|
docker pull alpine:edge
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t dnsdist .
|
3
dnsdist/README.md
Normal file
3
dnsdist/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# DNSDist on Docker
|
||||||
|
|
||||||
|
This repository contains a Docker image of PowerDNS [dnsdist](http://dnsdist.org/).
|
7
dnsdist/config/dnsdist.conf
Normal file
7
dnsdist/config/dnsdist.conf
Normal 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 })
|
Loading…
Reference in a new issue