Skip to content

arontsang/rust-doh-nut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rusty Doh Nut

A simple Rust project to tunnel DNS requests over Http/SPDY/QUIC

At present, because Cloudflare only supports Http/2.0 on 1.1.1.1, this is what this project targets.

This is a DNS stub resolver that uses a DOH server to recursively resolve DNS queries.

Parameters

-p UDP Port to serve on. Defaults to port 15353.

-s DOH POST server address to resolve. Defaults to Cloudflare.

You can also switch to https://dns.google/dns-query

Performance

I've been able to get the overhead down to about 3ms on requests over plan DNS.

aron@htpc:~$ dig reddit.com +noall +stats @172.20.3.1 -p 15354

; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> reddit.com +noall +stats @172.20.3.1 -p 15354
;; global options: +cmd
;; Query time: 8 msec
;; SERVER: 172.20.3.1#15354(172.20.3.1)
;; WHEN: Sat May 30 22:52:22 HKT 2020
;; MSG SIZE  rcvd: 103

aron@htpc:~$ dig reddit.com +noall +stats @8.8.8.8

; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> reddit.com +noall +stats @8.8.8.8
;; global options: +cmd
;; Query time: 5 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat May 30 22:52:26 HKT 2020
;; MSG SIZE  rcvd: 103

About

UDP DNS to Http/2 DOH proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages