新的公共 dns 9.9.9.9 支持 DNS-over-TLS(T-DNS)

2017-11-17 20:54:04 +08:00
 redsonic
国内不知道多长时间会被玩坏。实测目前 Q9 T-DNS 的疗效不错。

 ./tdns-client-proxy -s 9.9.9.9

main.cc:main:100 : start proxy as direct TLS
main.cc:main:113 : listen ip [127.0.0.1], port [53]
main.cc:main:114 : server ip [9.9.9.9], port [853], upstream [TLS]
client_proxy.cc:start:549 : start
client_proxy.cc:run_ssl:495 : start
client_proxy.cc:connect_server:256 : start
client_proxy.cc:tcp_conn_svr:82 : start
client_proxy.cc:tcp_conn_svr:96 : end
client_proxy.cc:connect_server:258 : tcp socket connected
client_proxy.cc:connect_server:271 : end
client_proxy.cc:run_ssl:499 : successful server connection
client_proxy.cc:clt_read_ev_init:623 : start
client_proxy.cc:clt_read_ev_init:634 : end
client_proxy.cc:ssl_event_cb:289 : start
client_proxy.cc:ssl_event_cb:297 : fd[7] connected
client_proxy.cc:ssl_event_cb:309 : end
client_proxy.cc:ssl_event_cb:289 : start
client_proxy.cc:ssl_event_cb:303 : fd[7] got a close
client_proxy.cc:renew_ssl:318 : start
client_proxy.cc:renew_ssl:324 : clean up ssl
client_proxy.cc:renew_ssl:335 : stop old event
client_proxy.cc:connect_server:256 : start
client_proxy.cc:tcp_conn_svr:82 : start
client_proxy.cc:tcp_conn_svr:96 : end
client_proxy.cc:connect_server:258 : tcp socket connected
client_proxy.cc:connect_server:271 : end
client_proxy.cc:renew_ssl:340 : renew a connection successfully, fd[8]
client_proxy.cc:renew_ssl:343 : new bufferevent
client_proxy.cc:renew_ssl:349 : svr_fd[8]
client_proxy.cc:ssl_event_cb:309 : end
client_proxy.cc:ssl_event_cb:289 : start
client_proxy.cc:ssl_event_cb:297 : fd[8] connected
client_proxy.cc:ssl_event_cb:309 : end


dig www.facebook.com @127.0.0.1 +short
star-mini.c10r.facebook.com.
31.13.95.36

dig www.google.com @127.0.0.1 +short
216.58.219.196

dig www.twitter.com @127.0.0.1 +short
twitter.com.
104.244.42.65
104.244.42.1

@coolcoffee
10581 次点击
所在节点    宽带症候群
5 条回复
lybtongji
2017-11-17 22:48:07 +08:00
tdns-client-proxy 是不是不支持 IPv6 ?
redsonic
2017-11-18 00:26:02 +08:00
@lybtongji 是的,不过改一下 client_proxy.cc 中的 my_udp_fd 相关套接字函数就可以了。可以先去 github 上找找有没有更好的 proxy 再动手不迟。tdns-client-proxy 只是个 hello world
ericbize
2017-11-18 08:30:26 +08:00
64 bytes from 9.9.9.9: icmp_seq=2 ttl=55 time=33.444 ms


1 172.16.0.1 (172.16.0.1) 1.975 ms 1.830 ms 1.651 ms
2 121.122.105.? (121.122.105.1) 28.447 ms 44.248 ms 24.257 ms
3 10.55.49.105 (10.55.49.105) 27.215 ms 27.159 ms 74.455 ms
4 10.55.50.32 (10.55.50.32) 29.788 ms
10.55.50.30 (10.55.50.30) 58.039 ms
10.55.50.32 (10.55.50.32) 30.019 ms
5 10.55.50.58 (10.55.50.58) 26.158 ms
10.55.40.24 (10.55.40.24) 26.288 ms
10.55.40.22 (10.55.40.22) 37.865 ms
6 58.71.243.53 (58.71.243.53) 25.815 ms 26.980 ms 29.663 ms
7 * * *
8 202.122.151.186 (202.122.151.186) 33.225 ms 32.964 ms 33.493 ms
9 42.sgw.equinix.com (27.111.228.1) 35.247 ms 35.505 ms 34.892 ms
10 dns.quad9.net (9.9.9.9) 34.866 ms !Z 36.781 ms !Z 32.645 ms !Z


坐标马来西亚
mytsing520
2017-11-18 11:39:09 +08:00
防黑产供应商之一奇虎 360
thetast
2017-11-18 16:39:10 +08:00
深圳电信去欧洲,深圳移动直接无路由。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/407341

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX