Firefly开源社区

打印 上一主题 下一主题

[Android] How to config dns based on android11 RK3399/RK3568 ppp/wwan network card???

11

积分

0

威望

0

贡献

技术小白

积分
11

How to config dns based on android11 RK3399/RK3568 ppp/wwan network card???

发表于 2022-2-18 17:22:28      浏览:4889 | 回复:3        打印      只看该作者   [复制链接] 楼主
本帖最后由 Buck 于 2022-2-18 19:09 编辑

Dear:

How to config dns at android11?? It failed that ping www.baidu.com.

Log as below:

#ip rule add from all lookup main
#ndc resolver setdefaultif wwan0
500 0 Command not recongnized
#ndc resolver setifdns  wwan0 "114.114.114.114" "8.8.8.8"
500 0 Command not recongnized
#ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=249 time=146 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=249 time=64.7 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=249 time=37.5 ms
#ping www.baidu.com
ping: unknown host www.baidu.com
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

发表于 2022-2-19 15:00:29        只看该作者  沙发
have not try these in android, try to ref android source
https://source.android.com/devic ... system/dns-resolver
回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2022-2-19 16:25:54        只看该作者  板凳
Thank you for your professional answer.  
I also find the source code about dns which located at packages/modules/DnsResolver for android11 SDK.
But I don't know how to use by new way, and kindly, could you help to support this new issue based on rk3399/rk3399pro/rk3568 board?
回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2022-2-19 16:29:29        只看该作者  地板
zhansb 发表于 2022-2-19 15:00
have not try these in android, try to ref android source
https://source.android.com/devices/archite ...

Thank you for your professional answer.  
I also find the source code about dns which located at packages/modules/DnsResolver for android11 SDK.
But I don't know how to use by new way, and kindly, could you help to support this new issue based on rk3399/rk3399pro/rk3568 board?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表