add nextdns

This commit is contained in:
kevin 2023-12-06 22:41:32 +08:00
parent 5899d9f23b
commit 77ebc51000
4 changed files with 42 additions and 0 deletions

View File

@ -303,6 +303,7 @@ A collection of delicious docker recipes.
- [x] dnsmasq
- [x] dnsmasq-arm
- [x] ftldns
- [x] nextdns
- [x] passivedns
- [x] pdnsd

22
nextdns/Dockerfile Normal file
View File

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

7
nextdns/README.md Normal file
View File

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

View File

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