1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

update dns

This commit is contained in:
kevin 2023-04-08 11:33:17 +08:00
parent a589db8d23
commit 79cb263f96
4 changed files with 61 additions and 1 deletions

View File

@ -2,6 +2,9 @@ version: "3.8"
services:
dnscrypt-proxy:
image: vimagick/dnscrypt-proxy
build:
args:
- DNSCRYPT_PROXY_ARCH=x86_64
ports:
- "53:53/tcp"
- "53:53/udp"

View File

@ -16,4 +16,4 @@ EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
ENTRYPOINT ["dnsmasq", "--keep-in-foreground", "--user=dnsmasq", "--group=dnsmasq"]

19
dnsmasq/dns/README.md Normal file
View File

@ -0,0 +1,19 @@
How It Works
============
- client: [great firewall](https://en.wikipedia.org/wiki/Great_Firewall)
- dnsmasq: frontend
- dnscrypt-proxy: backend
- internet: [free world](https://en.wikipedia.org/wiki/Free_World)
```
☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭
☭ ┌────────────┐ ┌────────────┐ ┌──────────────────┐ ☭ ┌────────────┐
☭ │ │ │ │ │ │ ☭ │ │
☭ │ client ├──────►│ dnsmasq ├─────►│ dnscrypt-proxy │─────☭────►│ internet │
☭ │ │ │ │ │ │ ☭ │ │
☭ └────────────┘ └────────────┘ └──────────────────┘ ☭ └────────────┘
☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭
```
> Created by <https://asciiflow.com/>

View File

@ -0,0 +1,38 @@
version: "3.8"
services:
dnsmasq:
image: vimagick/dnsmasq
command: >
--cache-size=10000
--interface=eth0
--log-facility=-
--log-queries
--no-dhcp-interface=eth0
--no-hosts
--no-resolv
--server=192.168.99.53
ports:
- "53:53/tcp"
- "53:53/udp"
depends_on:
- dnscrypt-proxy
restart: unless-stopped
dnscrypt-proxy:
image: vimagick/dnscrypt-proxy
volumes:
- ./data:/etc/dnscrypt-proxy
networks:
default:
ipv4_address: 192.168.99.53
restart: unless-stopped
networks:
default:
driver: bridge
ipam:
config:
- subnet: 192.168.99.0/24
gateway: 192.168.99.1