GithubHelp home page GithubHelp logo

dnsproxy's Introduction

dnsProxy

DNS proxy server that listens to conventional DNS and sends it over TLS

Implementation

Starts a TCP server on port number 6565 and proxies it to cloudflare DNS server over TLS Used Following for reference:

Security Concerns before go live for production

In traditional DNS requests are generally sent as UDP packets, where we might have failures with the order of the packets. Also the same is being transferred as plain request over the web where one can sniff the packet and pretend as the DNS server, resulting in data exposure.

Possible Improvements

  • Single DNS values are hardcoded, for practical usage to deploy on production, we can leverage advantage of configuration files to provide multiple DNS servers for redundancy.
  • Only listens on TCP, we can make it listen on both TCP/UDP
  • Can implement instrumentation to get the metrics monitor Hit/Miss ration for monitoring purposes.
  • Currently it servers as single thread, we can use socketserver's ThreadingMixIn and run it as threaded application to support multiple requests at the same time.

Installation

  • Build docker image docker build -t dns-proxy .
  • Start container using the image docker run -it -p6565:6565 dns-proxy
  • Send DNS query dig @127.0.0.1 -p 6565 google.com +tcp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.