Skip to content

Commit 87fd802

Browse files
authored
Merge pull request #4 from xtr0py/testing
Update docker-publish.yml
2 parents ce2cc67 + 4155669 commit 87fd802

6 files changed

Lines changed: 260 additions & 153 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v2
2727

2828
- name: Setup default version
29-
run: echo "DNSCRYPT_PROXY_VERSION=2.0.45" >> $GITHUB_ENV
29+
run: echo "DNSCRYPT_PROXY_VERSION=2.1.1" >> $GITHUB_ENV
3030
if: ${{ env.DNSCRYPT_PROXY_VERSION == '' }}
3131

3232
- name: Setup Docker buildx
@@ -50,5 +50,5 @@ jobs:
5050
context: .
5151
platforms: linux/amd64
5252
build-args: VERSION=${{ env.DNSCRYPT_PROXY_VERSION }}
53-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DNSCRYPT_PROXY_VERSION }}
53+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DNSCRYPT_PROXY_VERSION }}
5454
push: true

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:alpine as build
2-
ENV RELEASE_TAG 2.0.45
2+
ENV RELEASE_TAG 2.1.1
33
RUN apk --no-cache add git && \
44
git clone https://github.com/jedisct1/dnscrypt-proxy /go/src/github.com/jedisct1/ && \
55
cd /go/src/github.com/jedisct1/dnscrypt-proxy && \

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/xtr0py/dnscrypt-proxy-2-docker.svg)](https://hub.docker.com/r/xtr0py/dnscrypt-proxy-2-docker)
1+
[![Build](https://github.com/xtr0py/dnscrypt-proxy-2-docker/actions/workflows/docker-publish.yml/badge.svg?branch=testing)](https://github.com/xtr0py/dnscrypt-proxy-2-docker/actions/workflows/docker-publish.yml)
22
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/xtr0py/dnscrypt-proxy-2-docker)
33
[![Docker Pulls](https://img.shields.io/docker/pulls/xtr0py/dnscrypt-proxy-2-docker.svg)](https://hub.docker.com/r/xtr0py/dnscrypt-proxy-2-docker)
44

55
This is a Docker image containing [DNSCrypt Proxy 2.x](https://github.com/jedisct1/dnscrypt-proxy). You can use this to set up a DNS proxy on your local network which resolves queries using DNSCrypt or DNS-over-HTTPS (DoH) rather than sending plaintext DNS queries over the Internet.
66

77
This image comes with a configuration which:
8+
- [x] updated DNScrypt-proxy 2.1.1
89
- [x] Looks up queries via DNS-over-HTTPS (DoH) and DNSCrypt
910
- [x] Use only DNSSEC, no logging, no filtering servers
1011
- [x] Listens on all interfaces
1112
- [x] Excludes Cloudflare, Google, and Yandex servers
12-
- [x] updated DNScrypt-proxy 2.0.45
1313
- [x] Uses public-resolvers v3
14+
- [x] "unstable" branch removed will use "testing" for future development
15+
1416

1517

1618
You can run with this configuration:
1719

1820
`docker run -p 53:53/udp xtr0py/dnscrypt-proxy-2-docker`
1921

22+
2023
If you wish to override the configuration:
2124

2225
`docker run -p 53:53/udp -v /path/to/dnscrypt-proxy.toml:/config/dnscrypt-proxy.toml xtr0py/dnscrypt-proxy-2-docker`

config/dnscrypt-proxy.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ force_tcp = false
7171

7272
## How long a DNS query will wait for a response, in milliseconds
7373

74-
timeout = 2500
74+
timeout = 5000
7575

7676

7777
## Load-balancing strategy: 'p2' (default), 'ph', 'fastest' or 'random'
@@ -110,7 +110,7 @@ cert_refresh_delay = 240
110110
## It will not be used if the configured system DNS works.
111111
## A resolver supporting DNSSEC is recommended. This may become mandatory.
112112

113-
fallback_resolver = '9.9.9.9:53'
113+
bootstrap_resolvers = ['9.9.9.9:53', '1.1.1.1:53']
114114

115115

116116
## Never try to use the system DNS settings; unconditionally use the
@@ -202,7 +202,7 @@ block_ipv6 = true
202202

203203
## Enable a DNS cache to reduce latency and outgoing traffic
204204

205-
cache = true
205+
cache = false
206206

207207

208208
## Cache size
@@ -283,30 +283,30 @@ cache_neg_ttl = 60
283283
## ads*.example.*
284284
## ads*.example[0-9]*.com
285285
##
286-
## Example blacklist files can be found at https://download.dnscrypt.info/blacklists/
287-
## A script to build blacklists from public feeds can be found in the
288-
## `utils/generate-domains-blacklists` directory of the dnscrypt-proxy source code.
286+
## Example blacklist files can be found at https://download.dnscrypt.info/blocklists/
287+
## A script to build blocklist from public feeds can be found in the
288+
## `utils/generate-domains-blocklists` directory of the dnscrypt-proxy source code.
289289

290-
[blacklist]
290+
[blocked_names]
291291

292-
## Path to the file of blocking rules (absolute, or relative to the same directory as the executable file)
292+
## Path to the file of blocking rules (absolute, or relative to the same directory as the config file)
293293

294-
# blacklist_file = 'blacklist.txt'
294+
# blocked_names_file = 'blocked-names.txt'
295295

296296

297-
## Optional path to a file logging blocked queries
297+
## Optional path to a file logging blocked queries
298298

299-
# log_file = 'blocked.log'
299+
# log_file = 'blocked.log'
300300

301301

302-
## Optional log format: tsv or ltsv (default: tsv)
302+
## Optional log format: tsv or ltsv (default: tsv)
303303

304-
# log_format = 'tsv'
304+
# log_format = 'tsv'
305305

306306

307307

308308
###########################################################
309-
# Pattern-based IP blocking (IP blacklists) #
309+
# Pattern-based IP blocking (IP blocklists) #
310310
###########################################################
311311

312312
## IP blacklists are made of one pattern per line. Example of valid patterns:
@@ -315,16 +315,16 @@ cache_neg_ttl = 60
315315
## fe80:abcd:*
316316
## 192.168.1.4
317317

318-
[ip_blacklist]
318+
[blocked_ips]
319319

320-
## Path to the file of blocking rules (absolute, or relative to the same directory as the executable file)
320+
## Path to the file of blocking rules (absolute, or relative to the same directory as the config file)
321321

322-
# blacklist_file = 'ip-blacklist.txt'
322+
# blocked_ips_file = 'blocked-ips.txt'
323323

324324

325-
## Optional path to a file logging blocked queries
325+
## Optional path to a file logging blocked queries
326326

327-
# log_file = 'ip-blocked.log'
327+
# log_file = 'blocked-ips.log'
328328

329329

330330
## Optional log format: tsv or ltsv (default: tsv)

0 commit comments

Comments
 (0)