Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 728 Bytes

File metadata and controls

41 lines (27 loc) · 728 Bytes

DNS Proxy

Simple python DNS proxy with auth and blocklist.

showcase

Docker

git clone https://github.com/dodaucy/dns-proxy.git
cd dns-proxy

docker build -t dns-proxy .

docker run -d \  # Run in background
  -p $(hostname -I | awk '{print $1}'):53:5353/udp \
  -v ./data/config.yaml:/app/config.yaml \
  --name dns-proxy \
  --restart always \
  dns-proxy

nano data/config.yaml  # Edit config

docker logs -f dns-proxy  # Log

Without docker

git clone https://github.com/dodaucy/dns-proxy.git
cd dns-proxy

python3 -m venv venv

venv/bin/pip install -Ur requirements.txt

cp example_config.yaml config.yaml
nano config.yaml  # Edit config

venv/bin/python main.py  # Run