Installs nextdns client in a alpine image: https://github.com/nextdns/nextdns
You can set a few variables depending on your needs:
NEXTDNS_ID=ff0000
: Set to the ID of your NextDNS configurationNEXTDNS_ARGUMENTS
: set to the arguments for therun
command.
This container will listen on 53 tcp and udp. Most likely you want to bind it to a local port:
docker run -p 53:53/tcp -p 53:53/udp
-e NEXTDNS_ID=000000 \
--name nextdns \
nlucas2/nextdns
NOTE: this image does not include a DNS server with anything like caching. For
that you should link this to an instance of dnsmasq
or unbound
.