Skip to content

johri21/dns-client-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS-Over-TLS

The implementation is based on an awesome dns library from Miek Gieben. The implementation starts a tcp and a udp server on 53 port and uses Cloudflare DNS over TLS as a upstream DNS resolver.

Build

To build the project Makefile is provided. cd into the directory and run the following command.

$ make build

The above command builds the project and creates a docker image abhinav/dns-client-proxy. Thereafter removing the build binary.

Run

To run the container use the following command.

$ sudo docker run -d --rm -p53:53 -p53:53/udp abhinav/dns-client-proxy

This will start the server on 127.0.0.1:53 binding localhost 53 port.

Test

To test the application on linux you can use dig command.

$ dig @127.0.0.1 www.zomato.com

If everything goes well you may see the dig output. The dig is communicating to localhost at 53 port which in turn uses cloudflare DNS for resolution

About

Proxy for DNS using DNS over TLS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published