zungmou
V2EX  ›  问与答

DNS 查询协议被严重劫持

  •  
  •   zungmou · Oct 19, 2015 · 4745 views
    This topic created in 4045 days ago, the information mentioned may be changed or developed.
    宽带:浙江电信

    nslookup twitter.com
    服务器: vrouter
    Address: 192.168.88.1

    非权威应答:
    名称: twitter.com
    Address: 159.106.121.75
    --------------------------
    nslookup twitter.com 8.8.4.4
    服务器: google-public-dns-b.google.com
    Address: 8.8.4.4

    非权威应答:
    名称: twitter.com
    Address: 159.106.121.75
    --------------------------
    nslookup twitter.com 208.67.222.222
    DNS request timed out.
    timeout was 2 seconds.
    服务器: UnKnown
    Address: 208.67.222.222

    非权威应答:
    名称: twitter.com
    Address: 159.106.121.75

    从各个 DNS 服务器返回的地址不约而同指向 159.106.121.75 这个 IP 地址,当然这个并不是 twitter 的 IP 地址,现只能通过修改本地 HOST 来解决这个问题(用 Google 和 OpenDNS 均已被劫持),但是大量的域名被劫持后修改起来很麻烦,请问大家有什么破解之道?
    13 replies  •  2015-10-19 18:46:29 +08:00
    yexm0
    yexm0
    Oct 19, 2015 via Android
    1
    我直接上中科大的 dns ,简单方便。
    hgc81538
    hgc81538
    Oct 19, 2015 via iPhone❤️1
    2
    用 opendns 的 dnscrypt
    kttde
    kttde
    Oct 19, 2015
    3
    nslookup -vc twitter.com 8.8.4.4
    这样就不会劫持了
    feibaoxiu
    feibaoxiu
    Oct 19, 2015
    4
    -vc

    Always use a virtual circuit when sending requests to the server

    什么是虚电路?
    zungmou
    zungmou
    OP
    Oct 19, 2015
    5
    @kttde 这个参数是什么意思?另外即便这样劫持不了,系统调用的时候还是被劫持呀。
    feibaoxiu
    feibaoxiu
    Oct 19, 2015
    6
    知道了, 就是用 tcp 协议直连 8.8.4.4
    feibaoxiu
    feibaoxiu
    Oct 19, 2015
    7
    类似于
    dig +tcp twitter.com @8.8.4.4
    Smirnoff
    Smirnoff
    Oct 19, 2015
    8
    @kttde +1
    Smirnoff
    Smirnoff
    Oct 19, 2015
    9
    @kttde 头像 -1
    zungmou
    zungmou
    OP
    Oct 19, 2015
    10
    @feibaoxiu 可是用 TCP 只能通过 nslookup 命令,系统又不支持。
    ScotGu
    ScotGu
    Oct 19, 2015
    11
    估计 LZ 的运营商劫持了 UDP 53 端口吧。
    那样的话,还是建议自建 DNS , 使用 TCP 协议获取 DNS 解析结果。
    gamexg
    gamexg
    Oct 19, 2015
    12
    twitter.com 很早就被劫持了啊,统计 GWF 错误 ip 时就使用这个域名做测试。
    yingluck
    yingluck
    Oct 19, 2015
    13
    sudo iptables -A INPUT -s 8.8.8.8 -p udp -sport 53 -m tos --tos 0x0 -j DROP
    sudo iptables -A INPUT -s 8.8.8.8 -p udp -sport 53 -m tos --tos 0x10 -j DROP
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2047 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 12:53 · PVG 20:53 · LAX 04:53 · JFK 07:53
    ♥ Do have faith in what you're doing.