GithubHelp home page GithubHelp logo

simoncpu / dns-proxy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

A DNS Proxy server that forwards queries to Google's DNS-over-HTTPS (DoH) service.

License: BSD 2-Clause "Simplified" License

Python 75.03% Shell 24.97%

dns-proxy's Introduction

dns-proxy

A DNS Proxy server that forwards queries to Google's DNS-over-HTTPS (DoH) service.

Overview

I created this because even though Chrome and Firefox support DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT), Safari doesn’t yet. I managed to get around this using the Cloudflare app and also with Quad9's mobile provisioning profile. So technically, I didn't need to make my own DNS proxy, but I decided to do it for teh lulz. This version is just the beginning. I'll be learning more about DoT and how to proxy it. Currently, it only supports a handful of common record types, but I'll update it as needed.

Usage

Run the shell script

$ sudo ./proxy.sh

Test the DNS proxy

$ dig @localhost google.com

; <<>> DiG 9.10.6 <<>> @localhost google.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32761
;; flags: qr aa rd ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; ANSWER SECTION:
google.com.		60	IN	A	142.250.206.206

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct 10 10:04:17 PST 2023
;; MSG SIZE  rcvd: 38

dns-proxy's People

Contributors

simoncpu avatar

Watchers

 avatar

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.