Change name from doh-proxy to dohproxy

This commit is contained in:
Afonso Franco 2024-09-01 15:25:30 +01:00
parent b9ea131d05
commit 4412ca7097
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
2 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
# DNS-over-HTTPS Proxy (`doh-proxy`) # DNS-over-HTTPS Proxy (`dohproxy`)
A simple DNS-over-HTTPS (DoH) proxy server written in Go. This tool acts as an intermediary between a DNS client and one or more DNS-over-HTTPS servers, forwarding DNS queries over HTTP/2 and handling responses. A simple DNS-over-HTTPS (DoH) proxy server written in Go. This tool acts as an intermediary between a DNS client and one or more DNS-over-HTTPS servers, forwarding DNS queries over HTTP/2 and handling responses.
@ -19,21 +19,21 @@ A simple DNS-over-HTTPS (DoH) proxy server written in Go. This tool acts as an i
1. Clone this repository: 1. Clone this repository:
```sh ```sh
git clone https://git.olympuslab.net/afonso/doh-proxy git clone https://git.olympuslab.net/afonso/dohproxy
cd doh-proxy cd dohproxy
``` ```
2. Build the Go executable: 2. Build the Go executable:
```sh ```sh
go build doh-proxy.go go build dohproxy.go
``` ```
### Usage ### Usage
Run the `doh-proxy` with the following options: Run the `dohproxy` with the following options:
```sh ```sh
./doh-proxy [options] ./dohproxy [options]
``` ```
#### Options #### Options
@ -49,13 +49,13 @@ Run the `doh-proxy` with the following options:
To start the proxy on `localhost` at port `5353`, listening on both TCP and UDP (uses both by default), with two upstream DoH servers and logging enabled: To start the proxy on `localhost` at port `5353`, listening on both TCP and UDP (uses both by default), with two upstream DoH servers and logging enabled:
```sh ```sh
./doh-proxy -l 127.0.0.1 -p 5353 -tcp -udp -log -u https://dns.quad9.net/dns-query -u https://1.1.1.1/dns-query ./dohproxy -l 127.0.0.1 -p 5353 -tcp -udp -log -u https://dns.quad9.net/dns-query -u https://1.1.1.1/dns-query
``` ```
### Important Note ### Important Note
- You need to run doh-proxy as root to use lower ports (such as 53). - You need to run dohproxy as root to use lower ports (such as 53).
- At least one upstream DoH server URL is required for the proxy to function. - At least one upstream DoH server URL is required for the proxy to function.
- If this proxy is used as your system's default DNS resolver and the upstream server URL is a domain name, at least one other DNS server must be specified as an IP address to avoid circular dependency issues. - If this proxy is used as your system's default DNS resolver and the upstream server URL is a domain name, at least one other DNS server must be specified as an IP address to avoid circular dependency issues.