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

Domain Sniffing Cannot Handle Domains That Cannot Be Resolved #1913

Closed
changyp6 opened this issue Sep 30, 2019 · 6 comments · Fixed by v2fly/v2ray-core#89
Closed

Domain Sniffing Cannot Handle Domains That Cannot Be Resolved #1913

changyp6 opened this issue Sep 30, 2019 · 6 comments · Fixed by v2fly/v2ray-core#89

Comments

@changyp6
Copy link

Please read the instruction and answer the following questions before submitting your issue. Thank you.
Please answer all the questions with enough information. All issues not following this template will be closed immediately.
If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.

  1. What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?
    Latest Git version

  2. What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.

V2ray in Router, proxy all

  1. What did you see? (Please describe in detail, such as timeout, fake TLS certificate etc)

Yeelight lamp tried to connect to "Mijia Cloud", "Mijia Cloud" is sniffed by V2ray, however, "Mijia Cloud" cannot be resolved by ordinary DNS server.
That's because the IP address of "Mijia Cloud" is hard coded into the Yeelight lamp, it is not using the DNS server to resolve the IP address. In this case, the domain sniffed by v2ray is a dummy domain, which cannot be resolved.

When it cannot be resolved, the lamp is disconnected from the cloud.

  1. What's your expectation?
    When the Domain Name cannot be resolved, just use the original IP address, to make it work.
@kslr
Copy link
Contributor

kslr commented Oct 8, 2019

But the scope of use is very small, I suggest you try https://v2ray.com/chapter_02/03_routing.html

@changyp6
Copy link
Author

changyp6 commented Oct 8, 2019 via email

@kslr kslr closed this as completed Oct 29, 2019
@coppercash
Copy link

coppercash commented Apr 25, 2020

I tried freedom + AsIs.
But v2ray still went with tcp:Mijia Cloud:443.
Apparently, no DNS knows what the hell "Mijia Cloud" is (so ugly).

Now I am using:

{
  "tag": "mijia_cloud",
  "protocol": "freedom",
  "redirect": "58.83.177.143:0",
  
}

I got the IP address with tcpdump.
Anyone knows how to let v2ray go with the IP directly?
So that I won't need to hard code it in my config.

@wych42
Copy link

wych42 commented Jun 12, 2020

But the scope of use is very small, I suggest you try https://v2ray.com/chapter_02/03_routing.html

But routing does not work, v2ray would dispatch connect to 'Mijia Cloud:443' not its original address 'ip:443'.

@rhhu
Copy link

rhhu commented Jul 1, 2020

I encountered the same problem. Could anyone tell me how to solve this?

@rockxsj
Copy link

rockxsj commented Aug 20, 2022

I tried freedom + AsIs. But v2ray still went with tcp:Mijia Cloud:443. Apparently, no DNS knows what the hell "Mijia Cloud" is (so ugly).

Now I am using:

{
  "tag": "mijia_cloud",
  "protocol": "freedom",
  "redirect": "58.83.177.143:0",
  
}

I got the IP address with tcpdump. Anyone knows how to let v2ray go with the IP directly? So that I won't need to hard code it in my config.

Hi, I get the same problem, could you share me your full config please? 💯

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

Successfully merging a pull request may close this issue.

6 participants