wrouesnel / dns-over-https-proxy Goto Github PK
View Code? Open in Web Editor NEWa DNS agent which forwards queries to Google's beta DNS-over-HTTPS service
License: Apache License 2.0
a DNS agent which forwards queries to Google's beta DNS-over-HTTPS service
License: Apache License 2.0
https://github.com/wrouesnel/dns-over-https-proxy/blob/master/dns-over-https-proxy.go#L6
go run dns_reverse_proxy.go -debug=true -address=127.0.0.1:8500 -log.level=debug
GetFileAttributesEx dns_reverse_proxy.go: The system cannot find the file specified.
should be
go run dns-over-https-proxy.go -debug=true -address=127.0.0.1:8500 -log.level=debug
I haven't test our code together yet. But this works standalone. Will try it shortly.
netstat -lunp|egrep 63
udp 0 0 0.0.0.0:63 0.0.0.0:* 19550/dns-over-http
dig www.facebook.com -p 63
;; Warning: Message parser reports malformed message packet.
; <<>> DiG 9.10.3-P4-Ubuntu <<>> www.facebook.com -p 63
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33103
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: Message has 43 extra bytes at end
;; QUESTION SECTION:
;www.facebook.com. IN A
;; Query time: 634 msec
;; SERVER: 127.0.0.1#63(127.0.0.1)
;; WHEN: Tue Jun 21 18:45:34 CST 2016
;; MSG SIZE rcvd: 105
dns-over-https-proxy -debug=true -address=127.0.0.1:8500 -log.level=debug
time="2017-01-24T20:58:11+08:00" level=debug msg="https://dns.google.com/resolve?edns_client_subnet=0.0.0.0%2F0&name=google.com.&type=1" source="dns-over-https-proxy.go:228"
When I run this on /dns-ver-https-proxy/ directory
go run dns_reverse_proxy.go -address 127.0.0.1:8500 -default 8.8.8.8:53
and dig -p 8500 @127.0.0.1 google.com I get no result
When I try to connect any website it hit this error:
Error sending DNS response: Get 8.8.8.8:53?edns_client_subnet=0.0.0.0%2F0&name=google.com.&type=1: unsupported protocol scheme ""
I don't know where I miss, please help.
Now that Cloudflare is providing a DNS server (at 1.1.1.1) that supports DNS over HTTPS, is there any chance you make that a configurable option?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.