Skip to main content

README

PyPI - Version PyPI - License PyPI - Downloads

DNS over TLS Proxy Server.

Install and Run

Via Docker Compose:

# clone project
$ git clone https://github.com/s3rgeym/dot-proxy
$ cd dot-proxy

# edit .env to specify custom dns

# run proxy
$ docker-compose up -d

# test
$ dig www.linux.org.ru @127.0.0.52

; <<>> DiG 9.18.26 <<>> www.linux.org.ru @127.0.0.52
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48430
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; PAD: (403 bytes)
;; QUESTION SECTION:
;www.linux.org.ru.              IN      A

;; ANSWER SECTION:
www.linux.org.ru.       2072    IN      A       178.248.233.6

;; Query time: 100 msec
;; SERVER: 127.0.0.52#53(127.0.0.52) (UDP)
;; WHEN: Sun Apr 28 05:55:31 MSK 2024
;; MSG SIZE  rcvd: 468


# To view logs
$ docker-compose logs -f

Using PIP:

pip install dot-proxy
dot-proxy -h

Configure System DNS

Configure Network Manager:

/etc/NetworkManager/conf.d/dns.conf:

[main]
dns=none

Configure DNS Resolver:

/etc/resolv.conf:

nameserver 127.0.0.52

Test:

$ dig www.linux.org.ru | grep -i server
;; SERVER: 127.0.0.52#53(127.0.0.52) (UDP)

Metadata

Release files for dot-proxy 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dot-proxy 0.3.0
File Size Uploaded
dot_proxy-0.3.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dot-proxy 0.3.0
File Interpreter ABI Platform
dot_proxy-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / dot_proxy-0.3.0.tar.gz

Download URL dot_proxy-0.3.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a32e12a7ff9388c1bfd8cf725c19fc9015d61f3ff0749d6c20cd3261315f8788
BLAKE2b-256 checksum
How to use checksums
bee1585358c88fa700a2989cc8cacd812bc5d597226ebcbacdd93beff75bbe19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / dot_proxy-0.3.0-py3-none-any.whl

Download URL dot_proxy-0.3.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfc54e97c4047e9ed68dd37f5e69ceefb2c35e85536c0467659313dd7a1fb24d
BLAKE2b-256 checksum
How to use checksums
91d8d6273a656ede7412e215dba34ae4e315fc935fdaa670a9372d0cbbbeae56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page