From 77ebc51000b8cd39a957a7ad584da2a6879894eb Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 6 Dec 2023 22:41:32 +0800 Subject: [PATCH] add nextdns --- README.md | 1 + nextdns/Dockerfile | 22 ++++++++++++++++++++++ nextdns/README.md | 7 +++++++ nextdns/docker-compose.yml | 12 ++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 nextdns/Dockerfile create mode 100644 nextdns/README.md create mode 100644 nextdns/docker-compose.yml diff --git a/README.md b/README.md index b616d40..66a7f00 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,7 @@ A collection of delicious docker recipes. - [x] dnsmasq - [x] dnsmasq-arm - [x] ftldns +- [x] nextdns - [x] passivedns - [x] pdnsd diff --git a/nextdns/Dockerfile b/nextdns/Dockerfile new file mode 100644 index 0000000..397a6a6 --- /dev/null +++ b/nextdns/Dockerfile @@ -0,0 +1,22 @@ +# +# Dockerfile for nextdns +# + +FROM alpine:3 +MAINTAINER EasyPi Software Foundation + +ARG NEXTDNS_VERSION=1.41.0 +ARG NEXTDNS_OS_ARCH=linux_amd64 +ARG NEXTDNS_FILE=nextdns_${NEXTDNS_VERSION}_${NEXTDNS_OS_ARCH}.tar.gz +ARG NEXTDNS_URL=https://github.com/nextdns/nextdns/releases/download/v${NEXTDNS_VERSION}/${NEXTDNS_FILE} + +RUN set -xe \ + && apk add --no-cache curl \ + && curl -sSL ${NEXTDNS_URL} | tar xz nextdns -C /usr/local/bin \ + && nextdns version \ + && apk del curl + +EXPOSE 53/tcp 53/tcp + +ENTRYPOINT ["nextdns"] +CMD ["run", "-listen", ":53"] diff --git a/nextdns/README.md b/nextdns/README.md new file mode 100644 index 0000000..4adb2fd --- /dev/null +++ b/nextdns/README.md @@ -0,0 +1,7 @@ +nextdns +======= + +[NextDNS][1] CLI is a command-line tool that allows you to use NextDNS's +DNS-over-HTTPS (DoH) service with advanced capabilities. + +[1]: https://github.com/nextdns/nextdns diff --git a/nextdns/docker-compose.yml b/nextdns/docker-compose.yml new file mode 100644 index 0000000..1136f9d --- /dev/null +++ b/nextdns/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.8" +services: + nextdns: + image: vimagick/nextdns + command: > + run + -listen :53 + -log-queries + ports: + - "5300:53/tcp" + - "5300:53/udp" + restart: unless-stopped