ndc resolver flushdefaultif
和 ndc resolver flushif wlan0
需要 root
出自 How can I flush the DNS Cache?
Addresses are cached for 600 seconds (10 minutes) by default. Failed lookups are cached for 10 seconds.
出自 How can I flush the DNS Cache?
ndc (Native Daemon Connector),为开发者提供了一个用于管理的接口
查询可用命令表 ndc interface list
留意一下 tether 命令
出自 Android Netd ndc (Native Daemon Connector)
ndc resolver flushif -- flushes old DNS servers
ndc resolver flushdefaultif -- flush resolver
ndc resolver setifdns <iface> <domains> <dns1> <dns2> ... -- Add the new servers
ndc resolver setdefaultif -- Set as the default device
出自 [Q][DNS] Set DNS on Android 4.3 and 4.4
回头再补充
与本文主题无关
am start -n com.android.settings/com.android.settings.TestingSettings
需要 root
效果与拨号盘输入*#*#4636#*#*
相同