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

Are you considering adding custom DNS query to hev_task_dns_server_getaddrinfo ? such as dot, doh #11

Open
jeesk opened this issue Feb 11, 2025 · 3 comments

Comments

@jeesk
Copy link

jeesk commented Feb 11, 2025

Andorid may need to use socks to proxy all requests in order to address DNS pollution issues. So DOH is also very necessary.

@heiher
Copy link
Owner

heiher commented Feb 14, 2025

Could you please provide more details on the use case or specific scenario where this feature would be applied?

@jeesk
Copy link
Author

jeesk commented Feb 14, 2025

Could you please provide more details on the use case or specific scenario where this feature would be applied?

我的意思是, 各个客户端有很多socks的场景, hev_task_dns_server_getaddrinfo() 这里的都是使用int getaddrinfo( const char *hostname, const char *service, const struct addrinfo *hints, struct addrinfo **result ); 查询dns, 现在网络污染太严重, 可能需要增强查询, 提供另外一种 getaddrinfo的实现方式, 如果打开这个开关,然后各个平台自己去实现这个getaddrinfo的查询。

流程是:

  1. 提供开启自己实现的getaddrinfo的开关, 如果打开这个开关,就使用自己的查询。
  2. 各个平台自己实现 getaddrinfo的实现
if enableCustomGetAddrinfo {
    // 假设这里是android 的实现binding. 
     getaddrinfoEnhance() 
}else{
 // 使用系统的查询
   getaddrinfo()
}

@heiher
Copy link
Owner

heiher commented Feb 14, 2025

明白。我考虑一下怎么处理比较合适

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

2 participants