Android 手机中的 dnsmasq.conf 在哪里?

Tri*_*yen 5 dnsmasq android android-intent

在Android的命令行中,有dnsmasq命令。但是所有配置文件(dnsmasq.conf、dnsmasq.pid...)在哪里?

据我尝试创建自己的配置文件并使用以下命令:

dnsmasq --conf-file=the/location/of/my/file
Run Code Online (Sandbox Code Playgroud)

它说:

dnsmasq: 无法打开 pidfile /var/run/dnsmasq.pid: 没有这样的文件或目录

当我创建 pid 文件时,它说:

dnsmasq:无法打开 pidfile dnsmasq.pid:只读文件系统

关于如何控制 dnsmasq(DHCP、DNS 服务器)有什么建议吗?

Mar*_*wan 0

听起来你应该以 root 身份运行它来克服后一个问题。至于前一个问题,我还没有任何想法。解决方法可能是使用脚本启动 dnsmasq,通过命令行传递配置。