dns-over-https icon indicating copy to clipboard operation
dns-over-https copied to clipboard

[Feature Request] DnsOverTls support

Open pawankanumalli opened this issue 3 years ago • 6 comments

Hi,

I've been using this great app to serve doh for all my devices. It is a fantastic app.

Is there any way we can extend this to listen to DnsOverTLS requests also? Or has anyone already forked and extended this to perform DOT also?

pawankanumalli avatar May 12 '21 14:05 pawankanumalli

DoT and DoH are completely different protocols. Implementing DoT would require around 30% of work.

However, I will not implement DoT by myself. The reason is simple: This protocol cannot work in China. DoT has very obvious traffic pattern and can be easily detected and blocked by a nationwide firewall.

I understand that DoT can still work in most other countries and regions. I would leave the task to others because by making sure all features I included are well tested, I can maintain the high quality of the software.

m13253 avatar May 12 '21 14:05 m13253

Hi, Thank you for the quick reply. Much appreciated. I will keep following this thread to see if anyone is interested in implementing DOT. Happy to donate if some one comes forward...

pawankanumalli avatar May 12 '21 14:05 pawankanumalli

We use unbound for DoT and this project for DoH which works fine.

Showfom avatar May 12 '21 14:05 Showfom

If you need the DoT and you are using Nginx as proxy is pretty simple, just add this in your nginx.conf file:

stream {
        server {
                listen                  *:853 ssl;
                proxy_pass              ipofyourdnsresolver:port  #127.0.0.1:53
        }


        ssl_certificate /etc/letsencrypt/live/site.yourdomain/fullchain.pem; 
        ssl_certificate_key /etc/letsencrypt/live/site.yourdomain/privkey.pem; 

}

w14w16 avatar Jun 30 '21 14:06 w14w16

If you need the DoT and you are using Nginx as proxy is pretty simple, just add this in your nginx.conf file:

Wow! So easy!

m13253 avatar Jun 30 '21 14:06 m13253

The DoT service can also be provided by running a STunnel instance to wrap dnsmasq (or any other resolver of your choice listening on TCP port). So we don't need to have a standalone daemon to provide DoT service.

Suggest closing this issue.

alicaccs avatar Jun 02 '22 09:06 alicaccs

I have added the instructions here: #133

Thanks!

gdm85 avatar Sep 03 '22 08:09 gdm85