Code Monkey home page Code Monkey logo

Comments (11)

GangZhuo avatar GangZhuo commented on June 17, 2024 1

嗯,能用就好。单上游的话,有时候好像用不上 ECS 传入的子网,8.8.8.8 响应包中的 SCOPE 意思就是本次解析使用了几位子网,有时候会是 0,有时候又正常,感觉不是太稳定。因此最好加一个国内上游。

from cleandns.

GangZhuo avatar GangZhuo commented on June 17, 2024

你这日志很奇怪呢。每次都会向 8.8.8.8 发送两次请求(两个子网),应该接收到正常的结果,再加上 gfw 抢答的。你这每次都是接收到两条结果... 网络干净吗?

from cleandns.

GangZhuo avatar GangZhuo commented on June 17, 2024

一般来说,ECS 带有** ip 的请求,谷歌返回中也应该带有 ECS 的;ECS 带有国外 ip 的,谷歌可能会不进行距离判断,直接返回不带有 ECS 的结果。

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

我这里的代理服务器用的是 aliyun.com 的,IP 的归属地显示是**的,但实际上是在新加坡的,跟这个关系大吗?
另外,网络干净的意思指的是?

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

所以我的启动命令 -f <VPS的IP>/24 其实是把 VPS 的 IP 修改成了新加坡本土的原生 IP, 并不是真的是我 VPS 的 IP.

from cleandns.

GangZhuo avatar GangZhuo commented on June 17, 2024

和 ip 没关系,我的意思是你机器到 8.8.8.8 之间有没有劫持或啥的。看日志,收到的 8.8.8.8 的响应包,看起来像是被处理过的。不行的话,走代理通道吧。理论上,走代理通道和不走是一样的,因为已经有 ECS 了

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

和 ip 没关系,我的意思是你机器到 8.8.8.8 之间有没有劫持或啥的。看日志,收到的 8.8.8.8 的响应包,看起来像是被处理过的。不行的话,走代理通道吧。理论上,走代理通道和不走是一样的,因为已经有 ECS 了

应该是有劫持了,不太懂,具体应该怎么看呢?
如果走了代理,访问 www.163.com 就会返回香港 CDN 的 IP 了。

from cleandns.

GangZhuo avatar GangZhuo commented on June 17, 2024

你自己没有配的话,怎么监测我也不懂。

你走通道时,然后再加一个国内上游吧。

我刚才测试下,走隧道的话,两次不同的 ECS 子网, 8.8.8.8 都返回了同样的 IP,都是国外的。不知道谷歌是怎么做的。

我加了一个国内上游后,优先选的是国内 DNS 解析的结果。

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

好的,我明天再试试

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

刚刚测试了(0.3.1 版本),现在上游是 127.0.0.1:5300,223.5.5.5:53. 192.168.1.1:5354 是 cleandns 的端口,结果终于正常了。

dig google.com @192.168.1.1 -p 5354 # 正常
dig www.google.com @192.168.1.1 -p 5354 # 正常
dig facebook.com @192.168.1.1 -p 5354 # 正常
dig www.facebook.com @192.168.1.1 -p 5354 # 正常
dig youtube.com @192.168.1.1 -p 5354 # 正常
dig www.youtube.com @192.168.1.1 -p 5354 # 正常
dig instagram.com @192.168.1.1 -p 5354 # 正常
dig www.instagram.com @192.168.1.1 -p 5354 # 正常

dig baidu.com @192.168.1.1 -p 5354 # 正常
dig www.baidu.com @192.168.1.1 -p 5354 # 正常
dig qq.com @192.168.1.1 -p 5354 # 正常
dig www.qq.com @192.168.1.1 -p 5354 # 正常
dig taobao.com @192.168.1.1 -p 5354 # 正常
dig www.taobao.com @192.168.1.1 -p 5354 # 正常
dig 163.com @192.168.1.1 -p 5354 # 正常
dig www.163.com @192.168.1.1 -p 5354 # 正常
dig alipay.com @192.168.1.1 -p 5354 # 正常
dig www.alipay.com @192.168.1.1 -p 5354 # 正常

但是还有一些问题,我多次 dig scontent-sin6-2.cdninstagram.com @192.168.1.1 -p 5354, 它能返回结果,但都是需要 4 秒多。
而我也把 ChinaDNS 的上游设置成 127.0.0.1:5300,223.5.5.5:53, 端口为 192.168.1.1:5353, 再多次测试了 dig scontent-sin6-2.cdninstagram.com @192.168.1.1 -p 5353, 返回结果只需要 50ms 以内(和 VPS 的延迟差不多。)

from cleandns.

pexcn avatar pexcn commented on June 17, 2024

看了一下日志,是国内的 DNS 查不出来,超时了:

2019-04-16 14:58:45 request scontent-sin6-2.cdninstagram.com. from 192.168.1.161:59883
2019-04-16 14:58:45 send msg to '127.0.0.1:5300' with '<China IP>/24'
2019-04-16 14:58:45 send msg to '223.5.5.5:53' with '<China IP>/24'
2019-04-16 14:58:45 send msg to '127.0.0.1:5300' with '<VPS IP>/24'
2019-04-16 14:58:45 send msg to '223.5.5.5:53' with '<VPS IP>/24'
2019-04-16 14:58:45 recv response scontent-sin6-2.cdninstagram.com. from 127.0.0.1:5300 (foreign): 157.240.13.52
2019-04-16 14:58:45 recv response scontent-sin6-2.cdninstagram.com. from 127.0.0.1:5300 (china): 157.240.13.52
2019-04-16 14:58:50 timeout: questions=scontent-sin6-2.cdninstagram.com.
2019-04-16 14:58:50 best answers come from '127.0.0.1:5300'
2019-04-16 14:58:50 send msg to '192.168.1.161:59883': questions=scontent-sin6-2.cdninstagram.com., answers=157.240.13.52
2019-04-16 14:58:50 send answers to '192.168.1.161:59883'

from cleandns.

Related Issues (13)

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.