Code Monkey home page Code Monkey logo

Comments (4)

GangZhuo avatar GangZhuo commented on June 24, 2024 1

不确定是不是代理自身的问题,可以关闭试试。

第 2 个问题,未测试,不过有可能:

  1. 规则是:有国内 IP 的,优先选择国内 IP
  2. 有时候虽然设置了 ECS,谷歌服务器返回的却不是离它最近的 IP,这可能和 DNS 解析配置有关系。

from cleandns.

GangZhuo avatar GangZhuo commented on June 24, 2024

dns server 使用的是 UDP,请确认下代理支持 UDP。或者 dns_server 换用 tcp 模式:tcp://8.8.8.8:53。

from cleandns.

pexcn avatar pexcn commented on June 24, 2024

tcp://8.8.8.8:53 也试过了,还是不行,路由器的 shadowsocks 代理我在 luci 界面开启了 “代理自身”,请问跟这个有关系吗?会不会导致死循环之类的...?

from cleandns.

pexcn avatar pexcn commented on June 24, 2024

顺便一提,好像有个小问题:我的国内 IP 和国外 IP 分别填的是**大陆和美国洛杉矶,测试了其它网站都没有问题,但是测试 facebook 的时候不知道为什么会返回距离**大陆位置近的 IP

C:\Users\Administrator>dig www.facebook.com @192.168.1.1 -p 5354

; <<>> DiG 9.14.1 <<>> www.facebook.com @192.168.1.1 -p 5354
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61156
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; CLIENT-SUBNET: <洛杉矶 VPS 的 IP>/24/0
;; QUESTION SECTION:
;www.facebook.com.              IN      A

;; ANSWER SECTION:
www.facebook.com.       3497    IN      CNAME   star-mini.c10r.facebook.com.
star-mini.c10r.facebook.com. 7  IN      A       31.13.95.36

;; Query time: 16 msec
;; SERVER: 192.168.1.1#5354(192.168.1.1)
;; WHEN: Fri Aug 09 21:21:11 **标准时间 2019
;; MSG SIZE  rcvd: 156

返回的结果 31.13.95.36 是 facebook 香港 CDN 的 IP, 为什么不是接近洛杉矶的 CDN IP?

EDIT:
似乎是 8.8.8.8:53 的问题,改成 tcp://8.8.8.8:53 再 dig 结果又正常了

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.