Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分Google服务大陆可直连,DLC中能否区别开来? #487

Open
wlnirvana opened this issue Jun 11, 2020 · 21 comments
Open

部分Google服务大陆可直连,DLC中能否区别开来? #487

wlnirvana opened this issue Jun 11, 2020 · 21 comments

Comments

@wlnirvana
Copy link

fonts.googleapis.com是很常用的web fonts,大陆已经解封,用国内的DNS会解析到谷歌北京的服务器,使用代理速度反而会变慢不少。

但是DLC中使用了googleapis.com这一域名:

googleapis.com

这会使得fonts子域名也走代理,在配置(尤其是DNS)时很不方便。

PS:除fonts外,还有一些其他服务也已经解封,可参考https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf和https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf

@EpLiar
Copy link
Contributor

EpLiar commented Jun 11, 2020

这个 repo 只是负责收集域名,data/google 里是 Google 公司的。部分域名 ip 在中国无法避免,就像要把油和水分开一样。因此如果要设置的话,在 routing 里设置 "domain": ["googleapis.com"] 为直连可能会好一些,个人建议。

@Cwek
Copy link
Contributor

Cwek commented Jun 11, 2020

或者单独将Google.cn的IP地址拿出来,用路由识别IP来处理。

"203.208.32.0/19",
"203.208.32.0/24",
"203.208.33.0/24",
"203.208.39.0/24",
"203.208.40.0/24",
"203.208.41.0/24",
"203.208.42.0/24",
"203.208.43.0/24",
"203.208.50.0/24",
"203.208.51.0/24",
"203.208.56.0/24",
"203.208.57.0/24",
"203.208.61.0/24"

@wlnirvana
Copy link
Author

wlnirvana commented Jun 11, 2020

@EpLiar 确实,既然是DOMAIN list,逻辑上来说除非分开成多个域名,否则对全球CDN的情况单独处理有些怪怪的。

不过建立这个DLC的目的,应该也主要就是生成geosite数据吧?否则的话,分门别类地统计各个公司下属的域名,好像意义也不是太大。

如果确实是为了GEOsite的话,那CDN的geo就值得考虑了。(未必在DLC里直接考虑,也许也可以在v2ray中的某一层进行配置。)

@wlnirvana
Copy link
Author

@Cwek 我的配置其实在透明代理上DNS的时候就会利用geosite数据进行分流,所以单独配置routing没办法解决其他机器发来的DNS请求。

而且不太确定V2Ray (4.23.4) 对重复domain的多条规则是怎么处理的,比如下面的客户端配置当中,geosite:gelocation-!cngeosite:google-cnfonts.googleapis.com都覆盖了fonts.googleapis.com,但总是会按照geosite:gelocation-!cn匹配,用1.1.1.1来DNS。

  "dns": {
    "servers": [
      {
        "address": "https+local://dns.alidns.com/dns-query",
        "domains": [
          "geosite:cn",
          "geosite:apple-cn",
          "geosite:google-cn",
          "fonts.googleapis.com"
        ]
      },
      {
        "address": "https://1.1.1.1/dns-query",
        "domains": [
          "geosite:geolocation-!cn",
          "geosite:speedtest"
        ]
      },
      "223.5.5.5"
    ]
  }

@Loyalsoldier
Copy link
Contributor

Loyalsoldier commented Jun 11, 2020

@wlnirvana

其实这个项目里 geolocation-!cn 文件内的类别主要也是我维护的。在 Loyalsoldier/v2ray-rules-dat#29 已经解释得挺清楚了。我怀疑是 V2Ray 的 DNS 处理逻辑和处理优先级有 bug(没看过代码,纯粹瞎猜)。建议把完整 V2Ray 配置发一下

@wlnirvana
Copy link
Author

wlnirvana commented Jun 11, 2020

@Loyalsoldier

geolocation-!cn确实是你的项目里的,不过事实上在DLC中已经有了更宽泛的googleapis.com,会把你项目额外加入的fonts.googleapis.com子域名的“覆盖”掉(应该跟V2Ray本身的优先级实现有关),所以只要你的项目中继续使用DLC,哪怕把apple-cn和google-cn都单独列出、从tmp-proxy中移除掉,有可能依然无法正常工作。所以我才在这里和V2Ray core项目都开了issue。

我发出的已经是完整的DNS配置了,替换掉客户端的DNS之后,假如客户端配置好了iptables和tproxy透明代理,应该是可以复现问题的。

@Loyalsoldier
Copy link
Contributor

googleapis.com 域名除了字体服务,还有很多别的服务,IP 不在中国大陆,不太好处理。

@wlnirvana
Copy link
Author

是的,仔细想了想,可能最靠谱的还是需要V2Ray对相互冲突规则的优先级提供更完善的支持。从domain着手好像有点尴尬🤦

@akiirui
Copy link
Contributor

akiirui commented Jul 27, 2020

v2fly/domain-list-community@0971cd4 中添加了

## Google
recaptcha.net
full:fonts.googleapis.com
full:fonts.gstatic.com
full:safebrowsing.googleapis.com
full:storage.googleapis.com

虽然 fonts.googleapis.com 在国内有提供服务, 但是如果用户使用的是境外的 DNS 解析这些域名, 得到的 IP 是无法直连访问的.
这几行会导致使用境外 DNS 解析域名且 geosite:geolocation-cn 直连的用户无法访问这些域名.

建议把这几行删除, 并且在 data/google 中给这几行添加 Attributes, 例如:

## Available on China mainland
recaptcha.net @cn
full:fonts.googleapis.com @cn
full:fonts.gstatic.com @cn
full:safebrowsing.googleapis.com @cn

让有需要的用户以 geosite:google@cn 使用, 而不是直接添加到 geolocation-cn.

@Loyalsoldier
Copy link
Contributor

Loyalsoldier commented Jul 27, 2020

@akiirui

由于之前 Attributes 功能有 bug,所以添加了这几行。今天刚好修复了这个 bug: v2fly/domain-list-community#79

明天开始会处理 Apple、Microsoft、Google 等列表内的类似问题,添加 @cn 或者 @cdn 等 attributes,后续更新请留意 v2fly/domain-list-community 仓库。

@Robot-DaneelOlivaw
Copy link
Contributor

Resolved in v2fly/domain-list-community#118. You can now use these domains in config file with geosite:google@cn.

@Loyalsoldier
Copy link
Contributor

上游已修复 DNS 解析的优先级 bug:v2fly/v2ray-core#94

@wlnirvana
Copy link
Author

Will verify DNS matching when the new version is released

@Loyalsoldier
Copy link
Contributor

Loyalsoldier commented Aug 12, 2020

DNS matching logic is described here: v2fly/v2ray-core#92

And here is the binary release: https://github.com/v2fly/V2FlyBleedingEdgeBinary/releases/tag/unstable-8b4ba03e6fcd20b29702e2ddfe49b9af440b4cb4

@wlnirvana
Copy link
Author

wlnirvana commented Aug 29, 2020

Tested against the current latest v2fly binary, but the DNS resolving is incredibly slow.

DNS config on my tproxy raspi:

  "dns": {
    "hosts": {
      "dns.google": "8.8.8.8",
      "doh.pub": "119.29.29.29"
    },
    "servers": [
      {
        "address": "https+local://doh.pub/dns-query",
        "domains": [
          "geosite:cn",
          "geosite:apple-cn",
          "geosite:google-cn"
          // "fonts.googleapis.com"
        ],
        "expectIPs": [
          "geoip:cn"
        ]
      },
      {
        "address": "https://1.1.1.1/dns-query",
        "domains": [
          "geosite:geolocation-!cn",
          "geosite:speedtest"
        ]
      },
      {
        "address": "https+local://223.5.5.5/dns-query",
        "domains": [
          "geosite:tld-cn"
        ]
      }
    ]
  },

Results:

root@pi:~# time nslookup baidu.com
Server:         10.0.0.1
Address:        10.0.0.1#53

Name:   baidu.com
Address: 220.181.38.148
Name:   baidu.com
Address: 39.156.69.79


real    0m21.494s
user    0m0.038s
sys     0m0.020s
root@pi:~# time nslookup 163.com
Server:         10.0.0.1
Address:        10.0.0.1#53

Name:   163.com
Address: 123.58.180.8
Name:   163.com
Address: 123.58.180.7


real    0m16.142s
user    0m0.072s
sys     0m0.022s

Log:

2020/08/29 16:50:00 [Debug] v2ray.com/core/app/log: Logger started
2020/08/29 16:50:00 [Info] v2ray.com/core/app/dns: DNS: created Local DOH client for https://doh.pub/dns-query
2020/08/29 16:50:00 [Info] v2ray.com/core/app/dns: DNS: created Remote DOH client for https://1.1.1.1/dns-query
2020/08/29 16:50:00 [Info] v2ray.com/core/app/dns: DNS: created Local DOH client for https://223.5.5.5/dns-query
2020/08/29 16:50:02 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:12345
2020/08/29 16:50:02 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:1080
2020/08/29 16:50:02 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:1086
2020/08/29 16:50:02 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:12345
2020/08/29 16:50:02 [Info] v2ray.com/core/transport/internet/udp: listening UDP on 0.0.0.0:12345
2020/08/29 16:50:02 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:1080
2020/08/29 16:50:02 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:1086
2020/08/29 16:50:02 [Warning] v2ray.com/core: V2Ray 4.27.1 started
2020/08/29 16:50:03 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] [2043498018] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:52320
2020/08/29 16:50:03 [Info] [2043498018] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:52320
2020/08/29 16:50:03 [Info] [2043498018] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:03 [Info] [2043498018] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain baidu.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain baidu.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: baidu.com.
2020/08/29 16:50:03 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] [419046787] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:38179
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:38179
2020/08/29 16:50:03 [Debug] [2149689853] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34034
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34034
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:07 [Debug] v2ray.com/core/app/dns: domain baidu.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:07 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: baidu.com.
2020/08/29 16:50:07 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:07 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:07 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:07 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:07 [Debug] [2463619260] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:41365
2020/08/29 16:50:07 [Debug] [2798657270] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:46304
2020/08/29 16:50:07 [Info] [2463619260] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:41365
2020/08/29 16:50:07 [Info] [2798657270] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:46304
2020/08/29 16:50:07 [Info] [2463619260] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:07 [Info] [2463619260] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:07 [Info] [2798657270] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:07 [Info] [2798657270] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:07 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:07 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:07 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:07 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:08 [Debug] v2ray.com/core/app/dns: domain baidu.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:08 [Debug] v2ray.com/core/app/dns: domain baidu.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:08 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: baidu.com.
2020/08/29 16:50:08 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:08 [Debug] [3356826698] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:52023
2020/08/29 16:50:08 [Info] [3356826698] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:52023
2020/08/29 16:50:08 [Info] [3356826698] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:08 [Info] [3356826698] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:08 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:08 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:08 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:11 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: baidu.com.
2020/08/29 16:50:11 [Debug] [2169323497] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:53984
2020/08/29 16:50:11 [Info] [2169323497] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:53984
2020/08/29 16:50:11 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:11 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:11 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:11 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:11 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:11 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: doh.pub.
2020/08/29 16:50:11 [Info] [2169323497] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:223.5.5.5:443]
2020/08/29 16:50:11 [Info] [2169323497] v2ray.com/core/proxy/freedom: opening connection to tcp:223.5.5.5:443
2020/08/29 16:50:11 [Info] [2169323497] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:223.5.5.5:443
2020/08/29 16:50:11 [Debug] [4184284649] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:53986
2020/08/29 16:50:11 [Info] [4184284649] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:53986
2020/08/29 16:50:11 [Info] [4184284649] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:223.5.5.5:443]
2020/08/29 16:50:11 [Info] [4184284649] v2ray.com/core/proxy/freedom: opening connection to tcp:223.5.5.5:443
2020/08/29 16:50:11 [Info] [4184284649] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:223.5.5.5:443
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: doh.pub. TypeAAAA -> [] 402.888938ms
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: baidu.com. TypeA -> [220.181.38.148 39.156.69.79] 415.491925ms
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:12 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:12 [Debug] [758503586] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:51062
2020/08/29 16:50:12 [Info] [758503586] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:51062
2020/08/29 16:50:12 [Info] [758503586] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:12 [Info] [758503586] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:12 [Debug] v2ray.com/core/app/dns: domain baidu.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:12 [Debug] v2ray.com/core/app/dns: domain baidu.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: baidu.com.
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:12 [Debug] v2ray.com/core/app/dns: domain baidu.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:12 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: baidu.com.
2020/08/29 16:50:12 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:12 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:12 [Debug] [355475028] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:42022
2020/08/29 16:50:12 [Info] [355475028] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:42022
2020/08/29 16:50:12 [Info] [355475028] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:12 [Info] [355475028] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:12 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:12 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:12 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:12 [Debug] [4221437176] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:53173
2020/08/29 16:50:12 [Info] [4221437176] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:53173
2020/08/29 16:50:12 [Info] [4221437176] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:12 [Info] [4221437176] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:12 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:12 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:13 [Debug] [637188799] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34478
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34478
2020/08/29 16:50:13 [Debug] [329628504] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34476
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34476
2020/08/29 16:50:13 [Debug] [2500881193] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34480
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34480
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/app/dispatcher: sniffed domain: doh.pub
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:doh.pub:443]
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/app/dispatcher: sniffed domain: doh.pub
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/proxy/freedom: opening connection to tcp:doh.pub:443
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:doh.pub:443]
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/proxy/freedom: opening connection to tcp:doh.pub:443
2020/08/29 16:50:13 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:13 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:13 [Info] [329628504] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:13 [Info] [637188799] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/app/dispatcher: sniffed domain: doh.pub
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:doh.pub:443]
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/proxy/freedom: opening connection to tcp:doh.pub:443
2020/08/29 16:50:13 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:13 [Info] [2500881193] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:15 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: foo.bar.
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: foo.bar.
2020/08/29 16:50:15 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: foo.bar. TypeA -> [12.34.56.78] 18.5911ms
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: foo.bar. TypeAAAA -> [] 13.028399ms
2020/08/29 16:50:15 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:16 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:16 [Debug] v2ray.com/core/app/dns: domain baidu.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: baidu.com.
2020/08/29 16:50:16 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:16 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:16 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT baidu.com -> [220.181.38.148 39.156.69.79]
2020/08/29 16:50:16 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:16 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:16 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:16 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:16 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:16 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:16 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:17 [Debug] v2ray.com/core/app/dns: domain baidu.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:17 [Debug] v2ray.com/core/app/dns: domain baidu.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:17 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: baidu.com.
2020/08/29 16:50:17 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:17 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:17 [Debug] [1734402908] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:51667
2020/08/29 16:50:17 [Info] [1734402908] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:51667
2020/08/29 16:50:17 [Debug] [3547886184] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:35746
2020/08/29 16:50:17 [Info] [3547886184] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:35746
2020/08/29 16:50:17 [Info] [1734402908] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:17 [Info] [1734402908] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:17 [Info] [3547886184] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:17 [Info] [3547886184] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:17 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:17 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:17 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:17 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:17 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:17 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:17 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:17 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:17 [Debug] [3774322809] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:59161
2020/08/29 16:50:17 [Info] [3774322809] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:59161
2020/08/29 16:50:17 [Info] [3774322809] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:17 [Info] [3774322809] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:17 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:17 [Debug] [87779419] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:58538
2020/08/29 16:50:17 [Info] [87779419] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:58538
2020/08/29 16:50:17 [Info] [87779419] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:17 [Info] [87779419] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:17 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:20 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: baidu.com.
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: baidu.com. TypeAAAA -> [] 17.805066ms
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:20 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:20 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:20 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [12.34.56.78]
2020/08/29 16:50:20 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:21 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:21 [Debug] v2ray.com/core/app/dns: domain baidu.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: baidu.com.
2020/08/29 16:50:21 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:21 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:21 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:21 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:21 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:21 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:21 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:21 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:21 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:22 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:22 [Debug] [3825295815] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:37771
2020/08/29 16:50:22 [Info] [3825295815] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:37771
2020/08/29 16:50:22 [Info] [3825295815] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:22 [Info] [3825295815] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:22 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:22 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:22 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:22 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:22 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:22 [Debug] [4132534771] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:49625
2020/08/29 16:50:22 [Info] [4132534771] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:49625
2020/08/29 16:50:22 [Debug] [1406681370] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:46464
2020/08/29 16:50:22 [Info] [1406681370] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:46464
2020/08/29 16:50:22 [Info] [4132534771] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:22 [Info] [4132534771] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:22 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:22 [Info] [1406681370] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:22 [Info] [1406681370] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:22 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:25 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT baidu.com -> [] > empty response
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain baidu.com at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:25 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:25 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:25 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [12.34.56.78]
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:25 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:25 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:26 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:26 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:26 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:26 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:26 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:26 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:26 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:26 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:27 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:27 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:27 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:27 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:27 [Debug] [419871251] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:35685
2020/08/29 16:50:27 [Info] [419871251] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:35685
2020/08/29 16:50:27 [Debug] [2793473473] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:59751
2020/08/29 16:50:27 [Info] [419871251] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:27 [Info] [419871251] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:27 [Info] [2793473473] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:59751
2020/08/29 16:50:27 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:27 [Info] [2793473473] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:27 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:27 [Info] [2793473473] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:27 [Debug] [2831743286] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:52089
2020/08/29 16:50:27 [Info] [2831743286] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:52089
2020/08/29 16:50:27 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:27 [Debug] [4162165612] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:44068
2020/08/29 16:50:27 [Info] [4162165612] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:44068
2020/08/29 16:50:27 [Info] [2831743286] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:27 [Info] [2831743286] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:27 [Info] [4162165612] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:27 [Info] [4162165612] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:27 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:27 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:27 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:27 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:27 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:29 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:29 [Info] [329628504] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:29 [Info] [329628504] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:29 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:29 [Info] [637188799] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:29 [Info] [637188799] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:29 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:29 [Info] [2500881193] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:29 [Info] [2500881193] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:30 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:30 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:30 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:30 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [12.34.56.78]
2020/08/29 16:50:30 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:31 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:31 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:31 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:31 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:31 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:31 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:31 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:31 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:31 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:32 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] [3850114629] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:53316
2020/08/29 16:50:32 [Info] [3850114629] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:53316
2020/08/29 16:50:32 [Info] [3850114629] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:32 [Info] [3850114629] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] v2ray.com/core/app/dns: domain 163.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:32 [Debug] v2ray.com/core/app/dns: domain 163.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:32 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: 163.com.
2020/08/29 16:50:32 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] [4112806940] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:57139
2020/08/29 16:50:32 [Info] [4112806940] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:57139
2020/08/29 16:50:32 [Info] [4112806940] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:32 [Info] [4112806940] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] [1049652021] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:52958
2020/08/29 16:50:32 [Info] [1049652021] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:52958
2020/08/29 16:50:32 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:32 [Info] [1049652021] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:32 [Info] [1049652021] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:32 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:32 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] [4030411114] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:47646
2020/08/29 16:50:32 [Info] [4030411114] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:47646
2020/08/29 16:50:32 [Info] [4030411114] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:32 [Info] [4030411114] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:32 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:32 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:32 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:35 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: foo.bar.
2020/08/29 16:50:35 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:35 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:35 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: foo.bar. TypeA -> [12.34.56.78] 19.816191ms
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:36 [Debug] v2ray.com/core/app/dns: domain 163.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:36 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: 163.com.
2020/08/29 16:50:36 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:36 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:36 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:36 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:36 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:36 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:36 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:36 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:36 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:37 [Debug] v2ray.com/core/app/dns: domain 163.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:37 [Debug] v2ray.com/core/app/dns: domain 163.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: 163.com.
2020/08/29 16:50:37 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:37 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:37 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:37 [Debug] [1178077009] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:54451
2020/08/29 16:50:37 [Info] [1178077009] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:54451
2020/08/29 16:50:37 [Debug] [208839180] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:59182
2020/08/29 16:50:37 [Info] [208839180] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:59182
2020/08/29 16:50:37 [Info] [1178077009] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:37 [Info] [1178077009] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:37 [Info] [208839180] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:37 [Info] [208839180] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:37 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:37 [Debug] [1993472167] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:53604
2020/08/29 16:50:37 [Info] [1993472167] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:53604
2020/08/29 16:50:37 [Info] [1993472167] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:37 [Info] [1993472167] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:37 [Debug] [582042602] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34500
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34500
2020/08/29 16:50:37 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:37 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:37 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:37 [Debug] [2422893864] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34466
2020/08/29 16:50:37 [Info] [2422893864] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34466
2020/08/29 16:50:37 [Info] [2422893864] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:37 [Info] [2422893864] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/app/dispatcher: sniffed domain: doh.pub
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:doh.pub:443]
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/proxy/freedom: opening connection to tcp:doh.pub:443
2020/08/29 16:50:37 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:37 [Info] [582042602] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:38 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:38 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:40 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: 163.com.
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: 163.com. TypeA -> [123.58.180.8 123.58.180.7] 17.549758ms
2020/08/29 16:50:40 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:40 [Debug] [3121578917] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:57107
2020/08/29 16:50:40 [Info] [3121578917] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:57107
2020/08/29 16:50:40 [Info] [3121578917] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:40 [Info] [3121578917] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:40 [Debug] v2ray.com/core/app/dns: domain 163.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:40 [Debug] v2ray.com/core/app/dns: domain 163.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: 163.com.
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:40 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:40 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [12.34.56.78]
2020/08/29 16:50:40 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:40 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:40 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:41 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:41 [Debug] v2ray.com/core/app/dns: domain 163.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: 163.com.
2020/08/29 16:50:41 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:41 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:41 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:41 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:41 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:41 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:41 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:41 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:41 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:42 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:42 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:42 [Debug] [1734000818] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:41335
2020/08/29 16:50:42 [Debug] [1535320277] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:52650
2020/08/29 16:50:42 [Info] [1734000818] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:41335
2020/08/29 16:50:42 [Info] [1535320277] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:52650
2020/08/29 16:50:42 [Info] [1535320277] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:42 [Info] [1535320277] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:42 [Info] [1734000818] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:42 [Info] [1734000818] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:42 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:42 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:42 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:42 [Debug] [860847006] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:59875
2020/08/29 16:50:42 [Info] [860847006] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:59875
2020/08/29 16:50:42 [Info] [860847006] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:42 [Info] [860847006] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:42 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:42 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:42 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:44 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:44 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:44 [Debug] v2ray.com/core/app/dns: domain 163.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:44 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: 163.com.
2020/08/29 16:50:44 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:45 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:45 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT 163.com -> [123.58.180.8 123.58.180.7]
2020/08/29 16:50:45 [Debug] v2ray.com/core/app/dns: domain 163.com matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:45 [Debug] v2ray.com/core/app/dns: domain 163.com uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: 163.com.
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:45 [Info] [329628504] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Info] [329628504] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:45 [Info] [637188799] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Info] [637188799] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:45 [Info] [2500881193] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Info] [2500881193] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:45 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [] > empty response
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:45 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:45 [Debug] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT foo.bar -> [12.34.56.78]
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:45 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 cache HIT doh.pub -> [] > empty response
2020/08/29 16:50:45 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:46 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain foo.bar at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: foo.bar.
2020/08/29 16:50:46 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:46 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:46 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain doh.pub at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:46 [Debug] v2ray.com/core/app/dns: domain doh.pub at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:46 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: doh.pub.
2020/08/29 16:50:46 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:46 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:47 [Debug] [1179617869] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34510
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34510
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/app/dispatcher: sniffed domain: doh.pub
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:doh.pub:443]
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/proxy/freedom: opening connection to tcp:doh.pub:443
2020/08/29 16:50:47 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/proxy/freedom: dialing to to tcp:119.29.29.29:443
2020/08/29 16:50:47 [Info] [1179617869] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:119.29.29.29:443
2020/08/29 16:50:48 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:48 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:48 [Debug] [511599736] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:46878
2020/08/29 16:50:48 [Info] [511599736] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:46878
2020/08/29 16:50:48 [Info] [511599736] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:48 [Info] [511599736] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:48 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:48 [Debug] [4208877908] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:56193
2020/08/29 16:50:48 [Info] [4208877908] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:56193
2020/08/29 16:50:48 [Info] [4208877908] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:48 [Info] [4208877908] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:48 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:48 [Debug] v2ray.com/core/transport/internet/udp: UDP original destination: udp:10.0.0.1:53
2020/08/29 16:50:48 [Debug] [96829115] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:37864
2020/08/29 16:50:48 [Debug] [2067929844] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:58334
2020/08/29 16:50:48 [Info] [96829115] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:37864
2020/08/29 16:50:48 [Info] [2067929844] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:58334
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: foo.bar.
2020/08/29 16:50:48 [Info] [2067929844] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:48 [Info] [2067929844] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:48 [Info] [96829115] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:48 [Info] [96829115] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:48 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:48 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOH//1.1.1.1 > context deadline exceeded
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 querying: 163.com.
2020/08/29 16:50:48 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://1.1.1.1/dns-query": context deadline exceeded
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: DOHL//223.5.5.5 got answer: 163.com. TypeAAAA -> [] 25.871386ms
2020/08/29 16:50:48 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOHL//223.5.5.5 > empty response
2020/08/29 16:50:48 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:48 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:foo.bar:12345
2020/08/29 16:50:49 [Error] v2ray.com/core/app/dns: failed to retrieve response > Post "https://doh.pub/dns-query": context deadline exceeded
2020/08/29 16:50:49 [Info] v2ray.com/core/app/dns: failed to lookup ip for domain 163.com at server DOHL//doh.pub > context deadline exceeded
2020/08/29 16:50:49 [Debug] v2ray.com/core/app/dns: domain 163.com at server DOHL//doh.pub idx:0 already lookup failed, just ignore
2020/08/29 16:50:49 [Info] v2ray.com/core/app/dns: DOH//1.1.1.1 querying: 163.com.
2020/08/29 16:50:49 [Info] v2ray.com/core/common/mux: dispatching request to tcp:1.1.1.1:443
2020/08/29 16:50:50 [Debug] v2ray.com/core/app/log: Logger closing

@Loyalsoldier
Copy link
Contributor

@wlnirvana

Please place this DNS to the first:

{
        "address": "https+local://223.5.5.5/dns-query",
        "domains": [
          "geosite:tld-cn"
        ]
      }

@Loyalsoldier
Copy link
Contributor

@Vigilans

The log above shows that the DOH tries to resolve itself. Is it a bug?

@Vigilans
Copy link

Vigilans commented Aug 29, 2020

Investigating, Edit: Successfully reproduced on raspi, tproxy & proxy requests sent from raspi itself.

2020/08/29 16:50:03 [Debug] [419046787] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:38179
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:38179
2020/08/29 16:50:03 [Debug] [2149689853] v2ray.com/core/proxy/dokodemo: processing connection from: 10.0.0.11:34034
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/proxy/dokodemo: received request for 10.0.0.11:34034
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:03 [Info] [2149689853] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:10.0.0.1:53]
2020/08/29 16:50:03 [Info] [419046787] v2ray.com/core/proxy/dns: handling DNS traffic to udp:10.0.0.1:53
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: DOHL//doh.pub querying: doh.pub.

This is weird, two requests are made to resolve doh.pub:

  • Session id: 419046787, port: 38179
  • Session id: 2149689853, port: 34034

Yet one is returned by static host, one falls through priority matching:

2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub matches following rules: [geosite:cn(DNS idx:0)]
2020/08/29 16:50:03 [Info] v2ray.com/core/app/dns: returning 1 IPs for domain doh.pub
2020/08/29 16:50:03 [Debug] v2ray.com/core/app/dns: domain doh.pub uses following DNS first: [DOHL//doh.pub]

@Vigilans
Copy link

Vigilans commented Aug 29, 2020

@wlnirvana Root cause found. I doubt whether your config works in older version...

Use error log to trace the resolving of doh.pub in dns outbound (I manually prepended stack trace to help understand):

[Info] v2ray.com/core/proxy/dns: TypeA: doh.pub.
[Info] v2ray.com/core/app/dns: /features/dns/IPv4Lookup.LookupIPv4(domain)
[Info] v2ray.com/core/app/dns: server/Server.LookupIPv4(domain)
[Info] v2ray.com/core/app/dns: server/Server.lookupInternal(domain, option)
[Info] v2ray.com/core/app/dns: server/Server.lookupStatic(domain, option, depth)
[Info] v2ray.com/core/app/dns: hosts/StaticHosts.LookupIP(domain, option)
[Info] v2ray.com/core/app/dns: Before filtering: doh.pub[119.29.29.29]
[Info] v2ray.com/core/app/dns: hosts/filterIP(ips, option)
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 true      // ip.Family().IsIPv4()
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 true      // option.IPv4Enable
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 false     // ip.Family().IsIPv6()
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 false     // option.IPv6Enable
[Info] v2ray.com/core/app/dns: After filtering: doh.pub[119.29.29.29]

[Info] v2ray.com/core/proxy/dns: TypeAAAA: doh.pub.
[Info] v2ray.com/core/app/dns: /features/dns/IPv4Lookup.LookupIPv6(domain)
[Info] v2ray.com/core/app/dns: server/Server.LookupIPv6(domain)
[Info] v2ray.com/core/app/dns: server/Server.lookupInternal(domain, option)
[Info] v2ray.com/core/app/dns: server/Server.lookupStatic(domain, option, depth)
[Info] v2ray.com/core/app/dns: hosts/StaticHosts.LookupIP(domain, option)
[Info] v2ray.com/core/app/dns: Before filtering: doh.pub[119.29.29.29]
[Info] v2ray.com/core/app/dns: hosts/filterIP(ips, option)
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 true      // ip.Family().IsIPv4()
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 false     // option.IPv4Enable
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 false     // ip.Family().IsIPv6()
[Info] v2ray.com/core/app/dns: hosts/filterIP: 119.29.29.29 true      // option.IPv6Enable
[Info] v2ray.com/core/app/dns: After filtering: doh.pub[]

So the workflow is as follows:

  • nslookup baidu.com, caught by tproxy:
    • v2ray uses doh.pub for resolving.
    • v2ray sends out TypeA and TypeAAAA request for doh.pub directly.
  • TypeA request caught by tproxy:
    • dns outbound delegates request to built-in DNS with IPv4Lookup.
    • 119.29.29.29 found in hosts, and not filtered, because (true && true) || (false && false) (see above) returns true.
    • 1 static ip 119.29.29.29 is returned.
  • TypeAAAA request caught by tproxy:
    • dns outbound delegates request to built-in DNS with IPv6Lookup.
    • 119.29.29.29 found in hosts, but filtered, because (true && false) || (false && true) (see above) returns false.
    • Nil is returned, and built-in DNS try to use doh.pub to resolve doh.pub.

Thus the offered log is produced.

Since only 1 ip could be provided to static host, I used following entry to attach an ipv6 address to doh.pub (this workaround only works after 4.27.1~ with v2fly/v2ray-core#94):

"regexp:doh\\.pub": "64:ff9b::771d:1d1d"

And this made built-in DNS try to use 119.29.29.29:443. The IPv6 address of DNSPod is found somewhere in search engine and may not be correct.


Some improvements that may be done to static hosts:

  • an entry may support supplying an array of 0 or more ipv4/ipv6/domain instead of 1 and only 1 ip/domain;
  • when static host returns an empty array instead of nil, built-in DNS should use it as empty response instead of regarding it as lookup failed. This made TypeAAAA request could return empty response when using static host.

@wlnirvana
Copy link
Author

If I recall correctly, similar configs started to work after v4.23.0 merges the DNS optimization PR, except for the fonts.googleapis.com issue originally reported in this issue.

By the way, since domains are being handled with attributes now, would it be better to close this issue and move further discussions to v2ray-core repo, which might be more relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@akiirui @wlnirvana @Cwek @Loyalsoldier @Robot-DaneelOlivaw @Vigilans @EpLiar and others