Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/modem7/dnscrypt-proxy
Docker DNSCrypt
https://github.com/modem7/dnscrypt-proxy
Last synced: 1 day ago
JSON representation
Docker DNSCrypt
- Host: GitHub
- URL: https://github.com/modem7/dnscrypt-proxy
- Owner: modem7
- License: mit
- Created: 2020-04-25T12:02:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T10:03:56.000Z (5 months ago)
- Last Synced: 2024-06-17T11:29:53.593Z (5 months ago)
- Language: Dockerfile
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DNSCrypt-Proxy
[![Docker Pulls](https://img.shields.io/docker/pulls/modem7/dnscrypt-proxy)](https://hub.docker.com/r/modem7/dnscrypt-proxy)
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/modem7/dnscrypt-proxy/latest)
[![Build Status](https://drone.modem7.com/api/badges/modem7/Dnscrypt-Proxy/status.svg)](https://drone.modem7.com/modem7/Dnscrypt-Proxy)
[![GitHub last commit](https://img.shields.io/github/last-commit/modem7/Dnscrypt-Proxy)](https://github.com/modem7/Dnscrypt-Proxy)[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/modem7)
A DNS server container which utilises several anonymised, non-logging, non-filtering DNS over HTTPS servers by utilizing DNSCrypt Proxy (https://github.com/jedisct1/dnscrypt-proxy, https://dnscrypt.info/).
In this config, tcp and udp port 53 must be free on the host:
```bash
docker run -dt --dns 127.0.0.1 -p 53:53/udp 53:53/tcp --name dnscrypt-proxy --restart unless-stopped modem7/dnscrypt-proxy
```## Docker-compose
```bash
services:#DNSCrypt-Proxy - Non-caching, Non-logging, DNSSEC DNS Resolver
dnscrypt-proxy:
image: modem7/dnscrypt-proxy:latest
container_name: Dnscrypt-proxy
hostname: DNSCrypt
dns:
- 127.0.0.1
ports:
- "53:53"
volumes:
#- $USERDIR/DNSCrypt/dnscrypt-proxy.toml:/etc/dnscrypt-proxy/dnscrypt-proxy.toml # Uncomment if you want to define your own dnscrypt-proxy.toml file
- /etc/localtime:/etc/localtime:ro
restart: always
mem_limit: 100m
mem_reservation: 30m
```# Environment Variables
| Variable | Description | Default |
| :----: | --- | --- |
| LOG_LEVEL | Log level (0-6, default: 2 - 0 is very verbose, 6 only contains fatal errors) | 2 |
| TZ | Timezone | Europe/London |---------------
## Modifications
If you want to modify the server list being used or other parameters you can clone the repo, modify the configuration files, build your own image, and run from that build.Alternatively: Uncomment the value in volumes to substitute your own local configuration.
Clone Repo:
git clone https://github.com/modem7/Dnscrypt-Proxy.gitModify DNSCrypt-Proxy config:
dnscrypt/dnscrypt-proxy.tomlModify servers to meet your needs, adjust other params if desired. For more detail around those settings, see: https://github.com/jedisct1/dnscrypt-proxy/wiki/Configuration-Sources
Run the build:
```bash
docker build -f dnscrypt-proxy/Dockerfile dnscrypt-proxy/ -t dnscrypt-proxy-build
```Run a container from the build:
```bash
docker run -dt --dns 127.0.0.1 -p 53:53/udp -p 53:53/tcp --name dnscrypt-proxy --restart unless-stopped dnscrypt-proxy-build
```## Troubleshooting
If you run into issues after updating, remove the container and volume and recreate to get the latest config