V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
redsonic
V2EX  ›  宽带症候群

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

  •  
  •   redsonic · 2017-11-17 20:54:04 +08:00 · 10569 次点击
    这是一个创建于 2344 天前的主题,其中的信息可能已经有所发展或是发生改变。
    国内不知道多长时间会被玩坏。实测目前 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
    lybtongji
        1
    lybtongji  
       2017-11-17 22:48:07 +08:00
    tdns-client-proxy 是不是不支持 IPv6 ?
    redsonic
        2
    redsonic  
    OP
       2017-11-18 00:26:02 +08:00
    @lybtongji 是的,不过改一下 client_proxy.cc 中的 my_udp_fd 相关套接字函数就可以了。可以先去 github 上找找有没有更好的 proxy 再动手不迟。tdns-client-proxy 只是个 hello world
    ericbize
        3
    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
        4
    mytsing520  
       2017-11-18 11:39:09 +08:00
    防黑产供应商之一奇虎 360
    thetast
        5
    thetast  
       2017-11-18 16:39:10 +08:00
    深圳电信去欧洲,深圳移动直接无路由。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2736 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:52 · PVG 20:52 · LAX 05:52 · JFK 08:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.