zydou/dnscrypt

By zydou

Updated 6 months ago

Dockerized dnscrypt client based on alpine

Image
2

500K+

zydou/dnscrypt repository overview

DNScrypt client based on alpine

Container Registry

Docker CLI

    docker run -d --restart=always \
        --name dnscrypt \
        -p 53:5353 \  # remove this line if you don't need tcp query
        -p 53:5353/udp \
        -v $(pwd)/dnscrypt-proxy.toml:/etc/dnscrypt-proxy/dnscrypt-proxy.toml
        zydou/dnscrypt:latest

Docker Compose

version: "3.9"
services:
  service.dnscrypt:
    image: zydou/dnscrypt:latest
    container_name: dnscrypt
    environment:
      - TZ=Asia/Shanghai  # set desired timezone
    ports:
      - 53:5353  # remove this line if you don't need tcp query
      - 53:5353/udp
    volumes:
      - ./dnscrypt-proxy.toml:/etc/dnscrypt-proxy/dnscrypt-proxy.toml:ro
    restart: always

A minimum dnscrypt-proxy.toml example:

listen_addresses = ['[::]:5353']  # DO NOT change port 5353

See official docs for more configurations.

Additional Features

Adblock

adblock tag is bundled with an anti-AD domain list file and using cron job to update daily. The BLOCKLIST_URL environment variable can be used to choose a different blocklist.

The domain file is located at /app/blocked-names.txt inside the container.

You can add the following lines to your dnscrypt-proxy.toml to enable the adblock feature.

[blocked_names]
blocked_names_file = '/app/blocked-names.txt'
Accelerate Chinese domains

cnlist tag is bundled with a forwarding rule file generated from dnsmasq-china-list's accelerated-domains.china.conf and use cron job to update daily.

The forwarding rule file is located at /app/forwarding-rules.txt inside the container.

You can add the following lines to your dnscrypt-proxy.toml to enable the this feature.

forwarding_rules = '/app/forwarding-rules.txt'

Source code

GitHub (Also contains other tools to bypass the GFW)

LICENSE

MIT

Tag summary

Content type

Image

Digest

sha256:dcdd87c14

Size

7.6 MB

Last updated

6 months ago

docker pull zydou/dnscrypt