A Simple DNS Proxy like DNSMasq but with Modern DNS Protocol Support. This DNS Proxy / Forwarder support DNS Upstream with non UDP/TCP like DNS-Over-TLS (DoT) and DNS-Over-HTTPS (DoH) protocol.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment section for notes on how to deploy the project on a live system.
Prequisites packages:
- Go (Go Programming Language)
- GoReleaser (Go Automated Binaries Build)
- Make (Automated Execution using Makefile)
Optional packages:
- Docker (Application Containerization)
-
Install Docker CE based on the manual documentation
-
Run the following command on your Terminal or PowerShell
docker run -d \
-p <UDP_PORT>:<UDP_PORT> \
-v ./<CONFIG_YAML_FILE>:/usr/app/dns-proxy/<CONFIG_YAML_FILE> \
--name dns-proxy \
--rm dimaskiddo/dns-proxy:latest \
dns-proxy -config <CONFIG_YAML_FILE>
# Example of Usage
docker run -d \
-p 5353:5353 \
-v ./dns-proxy.yaml:/usr/app/dns-proxy/dns-proxy.yaml \
--name dns-proxy \
--rm dimaskiddo/dns-proxy:latest \
dns-proxy -config ./dns-proxy.yaml-
Download Pre-Build Binaries from the release page
-
Extract the zipped file
-
Run the pre-build binary
# MacOS / Linux
chmod 755 dns-proxy
# -- Example of Usage
# -- ./dns-proxy -config ./dns-proxy.yaml
mv dns-proxy.yaml.example dns-proxy.yaml
./dns-proxy -config ./dns-proxy.yaml
# Windows
# You can double click it or using PowerShell
# -- Example of Usage
# -- .\dns-proxy.exe -config .\dns-proxy.yaml
ren dns-proxy.yaml.example dns-proxy.yaml
.\dns-proxy.exe -config .\dns-proxy.yamlBelow is the instructions to make this source code running:
- Create a Go Workspace directory and export it as the extended GOPATH directory
cd <your_go_workspace_directory>
export GOPATH=$GOPATH:"`pwd`"- Under the Go Workspace directory create a source directory
mkdir -p src/github.com/dimaskiddo/dns-proxy- Move to the created directory and pull codebase
cd src/github.com/dimaskiddo/dns-proxy
git clone -b master https://github.com/dimaskiddo/dns-proxy.git .- Run following command to pull vendor packages
make vendor- Until this step you already can run this code by using this command
make run- (Optional) Use following command to build this code into binary spesific platform
make build- (Optional) To make mass binaries distribution you can use following command
make releaseCurrently the test is not ready yet :)
- Go - Go Programming Languange
- GoReleaser - Go Automated Binaries Build
- Make - GNU Make Automated Execution
- Docker - Application Containerization
- Dimas Restu Hidayanto - Initial Work - DimasKiddo
See also the list of contributors who participated in this project
You can seek more information for the make command parameters in the Makefile
Copyright (C) 2026 Dimas Restu Hidayanto
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.