This repository contains a Dockerfile that spins up a container running a BIND server. This BIND server relays queries to dnscrypt-proxy, which resolves the queries via DoH (DNS-over-HTTPS) using custom resolvers.
- Docker installed on your machine.
- Clone this repository:
git clone https://github.com/sbarbett/uddr_docker_relay
- Build the Docker container:
docker build -t dns-relay .
- Run the container, passing your UDDR client UID (install key) as an environment variable and opening port 53:
docker run -d --name dns-relay -e CLIENT_ID=your_client_id -p 53:53/udp -p 53:53/tcp dns-relay
Now, you can test it by using dig or nslookup to perform a DNS query:
dig @localhost example.com
This script is provided under the MIT License. See the LICENSE.md for the full declaration.